diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-09-29 10:48:52 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-09-29 10:48:52 +0000 |
| commit | bb776bd6809de09f42f8ef5f930b9033a30ef8d7 (patch) | |
| tree | 3c99ae34ad4ac84dee019d0c407c43c809b3e2af /frontends/php/graphs.php | |
| parent | 912e94abef222ad26380220fdb601e2b400ed849 (diff) | |
| download | zabbix-bb776bd6809de09f42f8ef5f930b9033a30ef8d7.tar.gz zabbix-bb776bd6809de09f42f8ef5f930b9033a30ef8d7.tar.xz zabbix-bb776bd6809de09f42f8ef5f930b9033a30ef8d7.zip | |
Frentend improvements.
git-svn-id: svn://svn.zabbix.com/trunk@1442 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/graphs.php')
| -rw-r--r-- | frontends/php/graphs.php | 27 |
1 files changed, 10 insertions, 17 deletions
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 @@ <?php show_table_header("GRAPHS"); - echo "<TABLE BORDER=0 COLS=4 WIDTH=100% BGCOLOR=\"#AAAAAA\" cellspacing=1 cellpadding=3>"; - echo "<TR BGCOLOR=\"#CCCCCC\">"; - echo "<TD WIDTH=5% NOSAVE><B>".S_ID."</B></TD>"; - echo "<TD><B>".S_NAME."</B></TD>"; - echo "<TD WIDTH=5% NOSAVE><B>".S_WIDTH."</B></TD>"; - echo "<TD WIDTH=5% NOSAVE><B>".S_HEIGHT."</B></TD>"; - echo "<TD WIDTH=10% NOSAVE><B>".S_ACTIONS."</B></TD>"; - echo "</TR>"; + 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 "<TR BGCOLOR=#EEEEEE>"; } - else { echo "<TR BGCOLOR=#DDDDDD>"; } - echo "<TD>".$row["graphid"]."</TD>"; - echo "<TD><a href=\"graph.php?graphid=".$row["graphid"]."\">".$row["name"]."</a></TD>"; - echo "<TD>".$row["width"]."</TD>"; - echo "<TD>".$row["height"]."</TD>"; - echo "<TD><A HREF=\"graphs.php?graphid=".$row["graphid"]."#form\">Change</A></TD>"; - echo "</TR>"; + table_row(array( + $row["graphid"], + "<a href=\"graph.php?graphid=".$row["graphid"]."\">".$row["name"]."</a>", + $row["width"], + $row["height"], + "<A HREF=\"graphs.php?graphid=".$row["graphid"]."#form\">Change</A>" + ),$col++); } if(DBnum_rows($result)==0) { @@ -111,7 +104,7 @@ echo "<TD COLSPAN=5 ALIGN=CENTER>".S_NO_GRAPHS_DEFINED."</TD>"; echo "<TR>"; } - echo "</TABLE>"; + table_end(); ?> <?php |
