From 09d54a611278067800e431a966c66f3c5f142ea1 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Fri, 20 Mar 2009 13:25:19 +0000 Subject: [PATCH] device searching git-svn-id: http://www.observium.org/svn/observer/trunk@360 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/print-interface.inc | 2 +- html/pages/device.php | 2 +- html/pages/devices.php | 87 ++++++++++++++++++++++++++++++- html/pages/edituser.php | 4 +- 4 files changed, 90 insertions(+), 5 deletions(-) diff --git a/html/includes/print-interface.inc b/html/includes/print-interface.inc index b267263400..5575996e30 100644 --- a/html/includes/print-interface.inc +++ b/html/includes/print-interface.inc @@ -28,7 +28,7 @@ # $graph_url = "graph.php?if=$if_id&from=$twoday&to=$now&width=400&height=120&type=bits"; - echo(" + echo(" "); echo(" diff --git a/html/pages/device.php b/html/pages/device.php index f17100f6b4..2a0975ff43 100644 --- a/html/pages/device.php +++ b/html/pages/device.php @@ -41,7 +41,7 @@ if(@mysql_result(mysql_query("select count(vlan_id) from vlans WHERE device_id = echo("
  • - VLANs + VLANs
  • "); } diff --git a/html/pages/devices.php b/html/pages/devices.php index 7fba3f8df5..96481b623b 100644 --- a/html/pages/devices.php +++ b/html/pages/devices.php @@ -1,5 +1,89 @@ + + + + + + + + + + +
    + + + +
    + +
    + +
    + +
    + + + + +
    + "); + +$device_query = mysql_query($sql); while($device = mysql_fetch_array($device_query)) { if( devicepermitted($device['device_id']) ) { $device['uptime'] = @mysql_result(mysql_query("SELECT `attrib_value` FROM `devices_attribs` WHERE `device_id` = '" . $device['device_id'] ."' AND `attrib_type` = 'uptime'"), 0); diff --git a/html/pages/edituser.php b/html/pages/edituser.php index dd2154234c..c761f608b1 100644 --- a/html/pages/edituser.php +++ b/html/pages/edituser.php @@ -1,4 +1,4 @@ - +