tidied things

git-svn-id: http://www.observium.org/svn/observer/trunk@252 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2008-09-25 13:54:58 +00:00
parent d0f2fddd02
commit 8a059f80d3
10 changed files with 74 additions and 44 deletions

View File

@@ -4,7 +4,15 @@
$uptime = @mysql_result(mysql_query("SELECT `attrib_value` FROM `devices_attribs` WHERE `device_id` = '" . $device['device_id'] . "' AND `attrib_type` = 'uptime'"), 0);
echo("
if(is_file("images/devices/" . $device['hardware'] . ".gif")) {
$dev_img = "<div style='float: left;'><img src='images/devices/" . $device['hardware'] . ".gif' align=absmiddle></img></div>";
} elseif (is_file("images/devices/" . $device['hardware'] . ".jpg")) {
$dev_img = "<div style='float: left;'><img src='images/devices/" . $device['hardware'] . ".jpg' align=absmiddle></img></div>";
} else { unset($dev_img); }
echo("$ddev_img
<table width=100%>
<tr>
<td class=list-bold>Operating System</td>