diff --git a/html/includes/hostbox.inc.php b/html/includes/hostbox.inc.php index 43597c875..8591bda38 100644 --- a/html/includes/hostbox.inc.php +++ b/html/includes/hostbox.inc.php @@ -5,8 +5,10 @@ if ($bg == $list_colour_b) { $bg = $list_colour_a; } else { $bg = $list_colour_b if ($device['status'] == '0') { $class = "list-device-down"; + $table_tab_colour = "#cc0000"; } else { $class = "list-device"; + $table_tab_colour = "#00cc00"; } if ($device['ignore'] == '1') { @@ -14,11 +16,13 @@ if ($device['ignore'] == '1') if ($device['status'] == '1') { $class = "list-device-ignored-up"; + $table_tab_colour = "black"; } } if ($device['disabled'] == '1') { $class = "list-device-disabled"; + $table_tab_colour = "#aaaaaa"; } $type = strtolower($device['os']); @@ -33,6 +37,7 @@ $sensor_count = dbFetchCell("SELECT COUNT(*) FROM `sensors` WHERE `device_id` = echo(' + ' . $image . ' ' . generate_device_link($device) . '
' . $device['sysName'] . ''