mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
some formatting cleanups, introduce some more FIXMEs to look at, plus replace mysql_fetch_array by mysql_fetch_assoc, for great justice
git-svn-id: http://www.observium.org/svn/observer/trunk@2029 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -14,7 +14,7 @@ echo('<table cellspacing="0" cellpadding="5" width="100%">');
|
||||
|
||||
$row = 1;
|
||||
|
||||
while ($drive = mysql_fetch_array($query))
|
||||
while ($drive = mysql_fetch_assoc($query))
|
||||
{
|
||||
if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ 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_array($mempools))
|
||||
while ($mempool = mysql_fetch_assoc($mempools))
|
||||
{
|
||||
if (!is_integer($i/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ echo("<table width=100% cellpadding=6 cellspacing=0>");
|
||||
|
||||
$i = '1';
|
||||
$procs = mysql_query("SELECT * FROM `processors` WHERE device_id = '" . $device['device_id'] . "'");
|
||||
while ($proc = mysql_fetch_array($procs))
|
||||
while ($proc = mysql_fetch_assoc($procs))
|
||||
{
|
||||
$proc_url = "device/".$device['device_id']."/health/processors/";
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ echo("<table cellspacing=0 cellpadding=5 width=100%>");
|
||||
|
||||
$row = 1;
|
||||
|
||||
while ($temp = mysql_fetch_array($query))
|
||||
while ($temp = mysql_fetch_assoc($query))
|
||||
{
|
||||
if (!is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ echo("<tr class=tablehead>
|
||||
|
||||
$row = 1;
|
||||
|
||||
while ($drive = mysql_fetch_array($query))
|
||||
while ($drive = mysql_fetch_assoc($query))
|
||||
{
|
||||
if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user