Commit version 24.12.13800
This commit is contained in:
@ -4,37 +4,34 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage web
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage web
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$g_i = 0;
|
||||
foreach ($datas as $type)
|
||||
{
|
||||
if ($type != "overview")
|
||||
{
|
||||
$filename = $config['html_dir'] . '/pages/routing/overview/'.$type.'.inc.php';
|
||||
if (is_file($filename))
|
||||
{
|
||||
$g_i++;
|
||||
$row_colour = !is_intnum($g_i / 2) ? OBS_COLOUR_LIST_A : OBS_COLOUR_LIST_B;
|
||||
foreach ($datas as $type) {
|
||||
if ($type != "overview") {
|
||||
$filename = $config['html_dir'] . '/pages/routing/overview/' . $type . '.inc.php';
|
||||
if (is_file($filename)) {
|
||||
$g_i++;
|
||||
$row_colour = !is_intnum($g_i / 2) ? OBS_COLOUR_LIST_A : OBS_COLOUR_LIST_B;
|
||||
|
||||
echo('<div style="background-color: '.$row_colour.';">');
|
||||
echo('<div style="padding:4px 0px 0px 8px;"><span class=graphhead>'.$type_text[$type].'</span>');
|
||||
echo('<div style="background-color: ' . $row_colour . ';">');
|
||||
echo('<div style="padding:4px 0px 0px 8px;"><span class=graphhead>' . $type_text[$type] . '</span>');
|
||||
|
||||
include($filename);
|
||||
include($filename);
|
||||
|
||||
echo('</div>');
|
||||
echo('</div>');
|
||||
} else {
|
||||
$graph_title = $type_text[$type];
|
||||
$graph_type = "device_".$type;
|
||||
echo('</div>');
|
||||
echo('</div>');
|
||||
} else {
|
||||
$graph_title = $type_text[$type];
|
||||
$graph_type = "device_" . $type;
|
||||
|
||||
include($config['html_dir'] . "/includes/print-device-graph.php");
|
||||
include($config['html_dir'] . "/includes/print-device-graph.php");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
Reference in New Issue
Block a user