device/health -> db*

git-svn-id: http://www.observium.org/svn/observer/trunk@2335 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-16 11:01:48 +00:00
parent 69fc727785
commit d9439aaf65
5 changed files with 12 additions and 20 deletions
+1 -2
View File
@@ -6,9 +6,8 @@ echo("<div style='margin-top: 5px; padding: 0px;'>");
echo("<table width=100% cellpadding=6 cellspacing=0>");
$i = '1';
$mempools = mysql_query("SELECT * FROM `mempools` WHERE device_id = '" . $device['device_id'] . "'");
while ($mempool = mysql_fetch_assoc($mempools))
foreach (dbFetchRows("SELECT * FROM `mempools` WHERE device_id = ?", array($device['device_id'])) as $mempool)
{
if (!is_integer($i/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }