From 0104e81aae631857655787ec52015ae0412cbf01 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Mon, 27 Sep 2004 18:52:41 +0000 Subject: Frontend improvements. git-svn-id: svn://svn.zabbix.com/trunk@1434 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/queue.php | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'frontends/php/queue.php') 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 @@ 'status' order by i.nextcheck"); - echo ""; - echo "\n"; - echo ""; - 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, - "", - ""); - table_td(date("m.d.Y H:i:s",$row["nextcheck"]),""); - table_td($row["host"],""); - table_td($row["description"],""); - echo ""; - 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, "", ""); - echo "
".S_NEXT_CHECK."".S_HOST."".S_DESCRIPTION."
".S_THE_QUEUE_IS_EMPTY."
"; + + table_end(); ?>