summaryrefslogtreecommitdiffstats
path: root/frontends/php/sysmaps.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-07 15:09:44 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-07 15:09:44 +0000
commit339b138a0d94e66adfc8fc4310c768d372c34083 (patch)
tree2b1df46007bdf87773cf0ebd7c1d85154cf8e66c /frontends/php/sysmaps.php
parentf879f49aafc3e2ae6a754c19ef1ee3b915c3b99a (diff)
downloadzabbix-339b138a0d94e66adfc8fc4310c768d372c34083.tar.gz
zabbix-339b138a0d94e66adfc8fc4310c768d372c34083.tar.xz
zabbix-339b138a0d94e66adfc8fc4310c768d372c34083.zip
Improvements of the PHP GUI.
git-svn-id: svn://svn.zabbix.com/trunk@2496 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/sysmaps.php')
-rw-r--r--frontends/php/sysmaps.php54
1 files changed, 28 insertions, 26 deletions
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 @@
?>
<?php
- show_table_header("CONFIGURATION OF NETWORK MAPS");
- echo "<br>";
+ $h1=S_CONFIGURATION_OF_NETWORK_MAPS;
+ $h2="<input class=\"button\" type=\"submit\" name=\"form\" value=\"".S_CREATE_MAP."\">";
+ show_header2($h1, $h2, "<form name=\"selection\" method=\"get\" action=\"sysmaps.php\">", "</form>");
?>
<?php
- show_table_header("NETWORK MAPS");
- $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(!isset($_REQUEST["form"]))
{
- if(!check_right("Network map","U",$row["sysmapid"]))
- {
- continue;
- }
-
- $table->addRow(array(
- $row["sysmapid"],
- "<a href=\"sysmap.php?sysmapid=".$row["sysmapid"]."\">".$row["name"]."</a>",
- $row["width"],
- $row["height"],
- "<A HREF=\"sysmaps.php?sysmapid=".$row["sysmapid"]."#form\">Change</A>"
- ));
- }
- $table->show();
-?>
+ $table = new Ctable(S_NO_MAPS_DEFINED);
+ $table->setHeader(array(S_ID,S_NAME,S_WIDTH,S_HEIGHT,S_ACTIONS));
-<?php
- echo "<a name=\"form\"></a>";
+ $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"],
+ "<a href=\"sysmap.php?sysmapid=".$row["sysmapid"]."\">".$row["name"]."</a>",
+ $row["width"],
+ $row["height"],
+ "<A HREF=\"sysmaps.php?sysmapid=".$row["sysmapid"]."#form\">Change</A>"
+ ));
+ }
+ $table->show();
+ }
+ else
+ {
if(isset($_REQUEST["sysmapid"]))
{
@@ -209,6 +210,7 @@
echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete\" onClick=\"return Confirm('Delete system map?');\">";
}
+ }
show_table2_header_end();
?>