2009-09-07 11:07:59 +00:00
|
|
|
<?php
|
2007-06-24 15:46:47 +00:00
|
|
|
|
2010-03-07 22:22:29 +00:00
|
|
|
if ($config['overview_show_sysDescr'])
|
|
|
|
{
|
|
|
|
echo('<div style="font-family: courier, serif; margin: 10px";><strong>' . $device['sysDescr'] . "</strong></div>");
|
2010-02-21 14:58:46 +00:00
|
|
|
}
|
2007-06-24 15:46:47 +00:00
|
|
|
|
2010-02-13 07:40:43 +00:00
|
|
|
$uptime = $device['uptime'];
|
|
|
|
|
2010-03-07 22:22:29 +00:00
|
|
|
if(is_file("images/devices/" . $device['hardware'] . ".gif"))
|
|
|
|
{
|
2008-09-25 13:54:58 +00:00
|
|
|
$dev_img = "<div style='float: left;'><img src='images/devices/" . $device['hardware'] . ".gif' align=absmiddle></img></div>";
|
2010-03-07 22:22:29 +00:00
|
|
|
}
|
|
|
|
elseif (is_file("images/devices/" . $device['hardware'] . ".jpg"))
|
|
|
|
{
|
2008-09-25 13:54:58 +00:00
|
|
|
$dev_img = "<div style='float: left;'><img src='images/devices/" . $device['hardware'] . ".jpg' align=absmiddle></img></div>";
|
2010-03-07 22:22:29 +00:00
|
|
|
}
|
|
|
|
elseif (is_file("images/devices/" . $device['hardware'] . ".png"))
|
|
|
|
{
|
|
|
|
$dev_img = "<div style='float: left;'><img src='images/devices/" . $device['hardware'] . ".png' align=absmiddle></img></div>";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$dev_img = '';
|
|
|
|
}
|
2010-02-21 17:02:20 +00:00
|
|
|
|
2010-03-07 22:22:29 +00:00
|
|
|
if ($device['os'] == "ios") { formatCiscoHardware($device); }
|
|
|
|
if ($device['features']) { $device['features'] = "(".$device['features'].")"; }
|
|
|
|
$device['os_text'] = $os_text[$device['os']];
|
2008-03-19 19:16:16 +00:00
|
|
|
|
2010-03-07 22:22:29 +00:00
|
|
|
echo($dev_img . '
|
|
|
|
<table width="100%">');
|
2010-02-21 17:02:20 +00:00
|
|
|
|
2010-03-07 22:22:29 +00:00
|
|
|
if($device['hardware'])
|
|
|
|
{
|
|
|
|
echo('<tr>
|
|
|
|
<td class="list-bold">Hardware</td>
|
|
|
|
<td>' . $device['hardware']. '</td>
|
|
|
|
</tr>');
|
|
|
|
}
|
2007-06-24 16:45:18 +00:00
|
|
|
|
2010-03-07 22:22:29 +00:00
|
|
|
echo('<tr>
|
|
|
|
<td class="list-bold">Operating System</td>
|
|
|
|
<td>' . $device['os_text'] . ' ' . $device['version'] . ' ' . $device['features'] . ' </td>
|
|
|
|
</tr>');
|
2008-03-19 19:16:16 +00:00
|
|
|
|
2010-03-07 22:22:29 +00:00
|
|
|
if($device['sysContact'])
|
|
|
|
{
|
|
|
|
echo('<tr>
|
|
|
|
<td class="list-bold">Contact</td>
|
|
|
|
<td>' . htmlspecialchars($device['sysContact']). '</td>
|
|
|
|
</tr>');
|
|
|
|
}
|
2008-03-19 19:16:16 +00:00
|
|
|
|
2010-03-07 22:22:29 +00:00
|
|
|
if($device['location'])
|
|
|
|
{
|
|
|
|
echo('<tr>
|
|
|
|
<td class="list-bold">Location</td>
|
|
|
|
<td>' . $device['location']. '</td>
|
|
|
|
</tr>');
|
|
|
|
}
|
2007-06-24 15:46:47 +00:00
|
|
|
|
2010-03-07 22:22:29 +00:00
|
|
|
if($uptime)
|
|
|
|
{
|
|
|
|
echo('<tr>
|
|
|
|
<td class="list-bold">Uptime</td>
|
|
|
|
<td>' . formatUptime($uptime) . '</td>
|
|
|
|
</tr>');
|
|
|
|
}
|
2007-06-24 15:46:47 +00:00
|
|
|
|
2010-03-07 22:22:29 +00:00
|
|
|
echo('
|
|
|
|
</table>');
|
2007-06-24 15:46:47 +00:00
|
|
|
?>
|