Files

29 lines
908 B
PHP
Raw Permalink Normal View History

2011-04-29 16:32:55 +00:00
<?php
foreach ($datas as $type) {
2019-04-11 23:26:42 -05:00
$type = basename($type);
2015-07-13 20:10:26 +02:00
if ($type != 'overview') {
2019-04-11 23:26:42 -05:00
if (is_file("includes/html/pages/routing/overview/$type.inc.php")) {
$g_i++;
if (!is_integer($g_i / 2)) {
2019-06-23 00:29:12 -05:00
$row_colour = \LibreNMS\Config::get('list_colour.even');
2016-08-18 20:28:22 -05:00
} else {
2019-06-23 00:29:12 -05:00
$row_colour = \LibreNMS\Config::get('list_colour.odd');
}
2011-04-29 16:32:55 +00:00
echo '<div style="background-color: '.$row_colour.';">';
echo '<div style="padding:4px 0px 0px 8px;"><span class=graphhead>'.$type_text[$type].'</span>';
2011-04-29 16:32:55 +00:00
2019-04-11 23:26:42 -05:00
include "includes/html/pages/routing/overview/$type.inc.php";
2012-04-06 13:56:23 +00:00
echo '</div>';
echo '</div>';
2016-08-18 20:28:22 -05:00
} else {
$graph_title = $type_text[$type];
$graph_type = 'device_'.$type;
2012-04-06 13:56:23 +00:00
2019-04-11 23:26:42 -05:00
include 'includes/html/print-device-graph.php';
}
2011-04-29 16:32:55 +00:00
}
}