diff --git a/html/css/styles.css b/html/css/styles.css index 88c2444aa6..1cc76f3086 100644 --- a/html/css/styles.css +++ b/html/css/styles.css @@ -330,6 +330,10 @@ A.orange:visited, a.orange, .orange { color: #FF7400; } font-weight: bold; } +.row-alert { + border: 2px solid red; +} + .device-head, .list-device { color: #000ccc; } diff --git a/html/includes/hostbox.inc.php b/html/includes/hostbox.inc.php index 233119af8d..f531f45974 100644 --- a/html/includes/hostbox.inc.php +++ b/html/includes/hostbox.inc.php @@ -4,7 +4,7 @@ if ($bg == $list_colour_b) { $bg = $list_colour_a; } else { $bg = $list_colour_b if ($device['status'] == '0') { - $tr = "bordercolor=#cc0000"; + $tr = "row-alert"; $class = "list-device-down"; } else { $class = "list-device"; unset ($tr); @@ -26,7 +26,7 @@ $device['os_text'] = $config['os'][$device['os']]['text']; $port_count = mysql_result(mysql_query("SELECT COUNT(*) FROM `ports` WHERE `device_id` = '".$device['device_id']."'"),0); $sensor_count = mysql_result(mysql_query("SELECT COUNT(*) FROM `sensors` WHERE `device_id` = '".$device['device_id']."'"),0); -echo(' ' . $image . ' ' . generate_device_link($device) . '