git-svn-id: http://www.observium.org/svn/observer/trunk@2336 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-16 12:48:50 +00:00
parent d9439aaf65
commit fc40257da9
18 changed files with 125 additions and 125 deletions
+4 -3
View File
@@ -2,7 +2,9 @@
$graph_type = "storage_usage";
if (mysql_result(mysql_query("SELECT count(storage_id) from storage WHERE device_id = '" . $device['device_id'] . "'"),0))
$drives = dbFetchRows("SELECT * FROM `storage` WHERE device_id = ? ORDER BY `storage_descr` ASC", array($device['device_id']));
if (count($drives))
{
echo("<div style='background-color: #eeeeee; margin: 5px; padding: 5px;'>");
echo("<p style='padding: 0px 5px 5px;' class=sectionhead>");
@@ -11,8 +13,7 @@ if (mysql_result(mysql_query("SELECT count(storage_id) from storage WHERE device
echo("<table width=100% cellspacing=0 cellpadding=5>");
$drive_rows = '0';
$drives = mysql_query("SELECT * FROM `storage` WHERE device_id = '" . $device['device_id'] . "' ORDER BY storage_descr ASC");
while ($drive = mysql_fetch_assoc($drives))
foreach ($drives as $drive)
{
$skipdrive = 0;