default to normal devices layout

git-svn-id: http://www.observium.org/svn/observer/trunk@2456 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-09-14 13:50:41 +00:00
parent 83e466a4bd
commit a7b7dc8f4d
+6 -3
View File
@@ -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('<table cellpadding="7" cellspacing="0" class="devicetable sortable" width="100%">');
# <tr class="tablehead"><th></th><th>Device</th><th></th><th>Operating System</th><th>Platform</th><th>Uptime/Location</th></tr>');
if($subformat = "detail")
{
echo('<tr class="tablehead"><th></th><th>Device</th><th></th><th>Operating System</th><th>Platform</th><th>Uptime/Location</th></tr>');
}
foreach (dbFetchRows($query, $sql_param) as $device)
{