From bb776bd6809de09f42f8ef5f930b9033a30ef8d7 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Wed, 29 Sep 2004 10:48:52 +0000 Subject: Frentend improvements. git-svn-id: svn://svn.zabbix.com/trunk@1442 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/graphs.php | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'frontends/php/graphs.php') diff --git a/frontends/php/graphs.php b/frontends/php/graphs.php index 49472e95..0512bd80 100644 --- a/frontends/php/graphs.php +++ b/frontends/php/graphs.php @@ -78,14 +78,8 @@ "; - echo ""; - echo "".S_ID.""; - echo "".S_NAME.""; - echo "".S_WIDTH.""; - echo "".S_HEIGHT.""; - echo "".S_ACTIONS.""; - echo ""; + table_begin(); + table_header(array(S_ID,S_NAME,S_WIDTH,S_HEIGHT,S_ACTIONS)); $result=DBselect("select g.graphid,g.name,g.width,g.height from graphs g order by g.name"); $col=0; @@ -95,15 +89,14 @@ { continue; } - if($col++%2==0) { echo ""; } - else { echo ""; } - echo "".$row["graphid"].""; - echo "".$row["name"].""; - echo "".$row["width"].""; - echo "".$row["height"].""; - echo "Change"; - echo ""; + table_row(array( + $row["graphid"], + "".$row["name"]."", + $row["width"], + $row["height"], + "Change" + ),$col++); } if(DBnum_rows($result)==0) { @@ -111,7 +104,7 @@ echo "".S_NO_GRAPHS_DEFINED.""; echo ""; } - echo ""; + table_end(); ?>