diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-12-31 13:47:57 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-12-31 13:47:57 +0000 |
| commit | 917670d0342a6e939e295636cda76beae6931d0d (patch) | |
| tree | 415163e489f325bbf0db38a8e5da72a937192975 /frontends/php/queue.html | |
| parent | a680e05e150133e5c42f9ae1d548ae375847c477 (diff) | |
| download | zabbix-917670d0342a6e939e295636cda76beae6931d0d.tar.gz zabbix-917670d0342a6e939e295636cda76beae6931d0d.tar.xz zabbix-917670d0342a6e939e295636cda76beae6931d0d.zip | |
- added column "soft" to services_links (Alexei)
- added function DBfetch to frontends/php/include/db.inc (Alexei)
- srv_status.html accessible without password (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@272 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/queue.html')
| -rw-r--r-- | frontends/php/queue.html | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/frontends/php/queue.html b/frontends/php/queue.html index 78960857..dc45ff53 100644 --- a/frontends/php/queue.html +++ b/frontends/php/queue.html @@ -21,29 +21,14 @@ echo "<tr><td><b>Next time to check</b></td><td><b>Host</b></td><td><b>Description</b></td></tr>"; echo "\n"; $col=0; - for($i=0;$i<DBnum_rows($result);$i++) + while($row=DBfetch($result)) { - $itemid=DBget_field($result,$i,0); - $time=DBget_field($result,$i,1); - $description=DBget_field($result,$i,2); - $host=DBget_field($result,$i,3); - - $time=date("m.d.Y H:i:s",$time); - - if($col==1) - { - echo "<tr bgcolor=#EEEEEE>"; - $col=0; - } else - { - echo "<tr bgcolor=#DDDDDD>"; - $col=1; - } - echo "\n"; - echo "<td>$time</td><td>$host</td><td>$description</td>"; - echo "\n"; + if($col++%2==0) { echo "<tr bgcolor=#EEEEEE>"; } + else { echo "<tr bgcolor=#DDDDDD>"; } + echo "<td>".date("m.d.Y H:i:s",$row["nextcheck"])."</td>"; + echo "<td>".$row["host"]."</td>"; + echo "<td>".$row["description"]."</td>"; echo "</tr>"; - echo "\n"; } echo "</table>"; ?> |
