From 339b138a0d94e66adfc8fc4310c768d372c34083 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sat, 7 Jan 2006 15:09:44 +0000 Subject: Improvements of the PHP GUI. git-svn-id: svn://svn.zabbix.com/trunk@2496 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/sysmaps.php | 54 ++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 26 deletions(-) (limited to 'frontends/php/sysmaps.php') diff --git a/frontends/php/sysmaps.php b/frontends/php/sysmaps.php index 6c35e2bf..cd11c7d1 100644 --- a/frontends/php/sysmaps.php +++ b/frontends/php/sysmaps.php @@ -59,37 +59,38 @@ ?> "; + $h1=S_CONFIGURATION_OF_NETWORK_MAPS; + $h2=""; + show_header2($h1, $h2, "
", "
"); ?> setHeader(array(S_ID,S_NAME,S_WIDTH,S_HEIGHT,S_ACTIONS)); - - $result=DBselect("select s.sysmapid,s.name,s.width,s.height from sysmaps s order by s.name"); - $col=0; - while($row=DBfetch($result)) + if(!isset($_REQUEST["form"])) { - if(!check_right("Network map","U",$row["sysmapid"])) - { - continue; - } - - $table->addRow(array( - $row["sysmapid"], - "".$row["name"]."", - $row["width"], - $row["height"], - "Change" - )); - } - $table->show(); -?> + $table = new Ctable(S_NO_MAPS_DEFINED); + $table->setHeader(array(S_ID,S_NAME,S_WIDTH,S_HEIGHT,S_ACTIONS)); -"; + $result=DBselect("select s.sysmapid,s.name,s.width,s.height from sysmaps s order by s.name"); + $col=0; + while($row=DBfetch($result)) + { + if(!check_right("Network map","U",$row["sysmapid"])) + { + continue; + } + + $table->addRow(array( + $row["sysmapid"], + "".$row["name"]."", + $row["width"], + $row["height"], + "Change" + )); + } + $table->show(); + } + else + { if(isset($_REQUEST["sysmapid"])) { @@ -209,6 +210,7 @@ echo ""; } + } show_table2_header_end(); ?> -- cgit