diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-03 10:03:54 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-03 10:03:54 +0000 |
commit | 26905a61d0cec458a04a971a6751e18a021d1c92 (patch) | |
tree | 5f601cc98feb07330cfc0ba280841929d1a042fe /frontends/php/screenconf.php | |
parent | bebbe1e18bdd25e6f976f8a39a308e65728b957d (diff) | |
download | zabbix-26905a61d0cec458a04a971a6751e18a021d1c92.tar.gz zabbix-26905a61d0cec458a04a971a6751e18a021d1c92.tar.xz zabbix-26905a61d0cec458a04a971a6751e18a021d1c92.zip |
PHP code cleanup. Use of class Ctable.
git-svn-id: svn://svn.zabbix.com/trunk@2484 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/screenconf.php')
-rw-r--r-- | frontends/php/screenconf.php | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/frontends/php/screenconf.php b/frontends/php/screenconf.php index 0b7e1733..2513a775 100644 --- a/frontends/php/screenconf.php +++ b/frontends/php/screenconf.php @@ -65,32 +65,25 @@ <?php show_table_header("SCREENS"); - table_begin(); - table_header(array(S_ID,S_NAME,S_COLUMNS,S_ROWS,S_ACTIONS)); + $table = new Ctable(S_NO_SCREENS_DEFINED); + $table->setHeader(array(S_ID,S_NAME,S_COLUMNS,S_ROWS,S_ACTIONS)); $result=DBselect("select screenid,name,cols,rows from screens order by name"); - $col=0; while($row=DBfetch($result)) { if(!check_right("Screen","R",$row["screenid"])) { continue; } - table_row(array( + $table->addRow(array( $row["screenid"], "<a href=\"screenedit.php?screenid=".$row["screenid"]."\">".$row["name"]."</a>", $row["cols"], $row["rows"], "<A HREF=\"screenconf.php?screenid=".$row["screenid"]."#form\">".S_CHANGE."</A>" - ),$col++); - } - if(DBnum_rows($result)==0) - { - echo "<TR BGCOLOR=#EEEEEE>"; - echo "<TD COLSPAN=5 ALIGN=CENTER>".S_NO_SCREENS_DEFINED."</TD>"; - echo "<TR>"; + )); } - table_end(); + $table->show(); ?> <?php |