diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-09-27 18:52:41 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-09-27 18:52:41 +0000 |
commit | 0104e81aae631857655787ec52015ae0412cbf01 (patch) | |
tree | 9111932464f7178f3ef3ead084b70a014c2746b4 /frontends/php/queue.php | |
parent | 70e80218f9d5d36433bfeab80c59c551995cd313 (diff) | |
download | zabbix-0104e81aae631857655787ec52015ae0412cbf01.tar.gz zabbix-0104e81aae631857655787ec52015ae0412cbf01.tar.xz zabbix-0104e81aae631857655787ec52015ae0412cbf01.zip |
Frontend improvements.
git-svn-id: svn://svn.zabbix.com/trunk@1434 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/queue.php')
-rw-r--r-- | frontends/php/queue.php | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/frontends/php/queue.php b/frontends/php/queue.php index 5c404a69..41b31f4c 100644 --- a/frontends/php/queue.php +++ b/frontends/php/queue.php @@ -41,10 +41,8 @@ <?php $now=time(); $result=DBselect("select i.itemid, i.nextcheck, i.description, h.host,h.hostid from items i,hosts h where i.status=0 and i.type not in (2) and h.status=0 and i.hostid=h.hostid and i.nextcheck<$now and i.key_<>'status' order by i.nextcheck"); - echo "<table border=0 width=100% bgcolor='#AAAAAA' cellspacing=1 cellpadding=3>"; - echo "\n"; - echo "<tr bgcolor='#CCCCCC'><td><b>".S_NEXT_CHECK."</b></td><td><b>".S_HOST."</b></td><td><b>".S_DESCRIPTION."</b></td></tr>"; - echo "\n"; + table_begin(); + table_header(array(S_NEXT_CHECK,S_HOST,S_DESCRIPTION)); $col=0; while($row=DBfetch($result)) { @@ -52,19 +50,14 @@ { continue; } - iif_echo($col++%2==0, - "<tr bgcolor=#EEEEEE>", - "<tr bgcolor=#DDDDDD>"); - table_td(date("m.d.Y H:i:s",$row["nextcheck"]),""); - table_td($row["host"],""); - table_td($row["description"],""); - echo "</tr>"; - cr(); + $elements=array(date("m.d.Y H:i:s",$row["nextcheck"]),$row["host"],$row["description"]); + table_row($elements,$col++); } iif_echo(DBnum_rows($result)==0, "<TR BGCOLOR=#EEEEEE><TD COLSPAN=3 ALIGN=CENTER>".S_THE_QUEUE_IS_EMPTY."</TD><TR>", ""); - echo "</table>"; + + table_end(); ?> <?php show_table_header(S_TOTAL.":$col"); |