From a7b7dc8f4d6b8ec4395b2d7e831015ca4f863ac7 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 14 Sep 2011 13:50:41 +0000 Subject: [PATCH] default to normal devices layout git-svn-id: http://www.observium.org/svn/observer/trunk@2456 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/devices.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/html/pages/devices.inc.php b/html/pages/devices.inc.php index 91805b46a..83e37f3d7 100644 --- a/html/pages/devices.inc.php +++ b/html/pages/devices.inc.php @@ -2,9 +2,9 @@ ### Set Defaults here -$sql_param = array(); +if(!isset($vars['format'])) { $vars['format'] = "list_detail"; } -if(!isset($graph)) { $graph = "bits"; } +$sql_param = array(); if ($vars['hostname']) { $where .= " AND hostname LIKE ?"; $sql_param[] = "%".$vars['hostname']."%"; } if ($vars['os']) { $where .= " AND os = ?"; $sql_param[] = $vars['os']; } @@ -261,7 +261,10 @@ if($format == "graph") } else { echo(''); -# '); + if($subformat = "detail") + { + echo(''); + } foreach (dbFetchRows($query, $sql_param) as $device) {
DeviceOperating SystemPlatformUptime/Location
DeviceOperating SystemPlatformUptime/Location