From 4f8410a4fc67884ad17f49131435e0e00869718e Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 8 Mar 2012 18:05:23 +0000 Subject: [PATCH] colour bar on device list. yay or nay? git-svn-id: http://www.observium.org/svn/observer/trunk@2889 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/hostbox.inc.php | 5 +++++ 1 file changed, 5 insertions(+) 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'] . ''