From 476316f7f8782a4d8d9037ff534376a860806f7f Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sun, 10 Jan 2010 20:20:18 +0000 Subject: [PATCH] html fixes on locations page git-svn-id: http://www.observium.org/svn/observer/trunk@665 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/topnav.inc | 1 - html/pages/locations.php | 25 +++++++++++-------------- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/html/includes/topnav.inc b/html/includes/topnav.inc index a7e960737..ff676125a 100644 --- a/html/includes/topnav.inc +++ b/html/includes/topnav.inc @@ -85,5 +85,4 @@ if($services['down']) { $services['bgcolour'] = "#ffcccc"; } else { $services['b ) - diff --git a/html/pages/locations.php b/html/pages/locations.php index e6a10ed50..8c44c27e7 100644 --- a/html/pages/locations.php +++ b/html/pages/locations.php @@ -1,5 +1,5 @@ "); +echo(''); if($_SESSION['userlevel'] == '10') { $sql = "SELECT `location` FROM `devices` GROUP BY `location` ORDER BY `location`"; @@ -27,21 +27,18 @@ while($device = mysql_fetch_array($device_query)) { $hostalerts = mysql_result(mysql_query("SELECT COUNT(device_id) FROM devices AS D, devices_perms AS P WHERE location = '" . $device['location'] . "' AND status = '0'"),0); } - if($hostalerts) { $alert = ""; } else { $alert = ""; } + if($hostalerts) { $alert = 'alert'; } else { $alert = ""; } - $loc = $device[location]; - - if($loc != "") { - echo("
- - - - - - - + if($device['location'] != "") { + echo(' + + + + + + - "); + '); $done = "yes"; }
$loc$alert$num devices$net network$srv servers$fwl firewalls
' . $device['location'] . '' . $alert . '' . $num . ' devices' . $net . ' network' . $srv . ' servers' . $fwl . ' firewalls