Juniper Netscreen additons

git-svn-id: http://www.observium.org/svn/observer/trunk@172 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2008-03-19 19:16:16 +00:00
parent c2298401a3
commit 5e925ef03f
55 changed files with 19743 additions and 20 deletions

View File

@ -4,28 +4,36 @@
$uptime = @mysql_result(mysql_query("SELECT `attrib_value` FROM `devices_attribs` WHERE `device_id` = '" . $device['device_id'] . "' AND `attrib_type` = 'uptime'"), 0);
# if(strtolower($device['os']) == "ios") {
echo("
<table width=100%>
<tr>
<td class=list-bold>Operating System</td>
<td>" . $device['os'] . " " . $device['version'] . " ( " . $device['features'] . " )</td>
</tr>
<tr>
</tr>");
if($device['hardware']) {echo("<tr>
<td class=list-bold>Hardware</td>
<td>" . $device['hardware']. "</td>
</tr>");
</tr>"); }
if($uptime) {
echo("<tr>
if($device['sysContact']) {echo("<tr>
<td class=list-bold>Contact</td>
<td>" . htmlspecialchars($device['sysContact']). "</td>
</tr>"); }
if($device['location']) {echo("<tr>
<td class=list-bold>Location</td>
<td>" . $device['location']. "</td>
</tr>"); }
if($uptime) { echo("<tr>
<td class=list-bold>Uptime</td>
<td>" . formatUptime($uptime) . "</td>
</tr>");
}
</tr>"); }
echo("
</table>");
# }
?>