diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-09-10 17:47:32 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-09-10 17:47:32 +0000 |
| commit | f7f74958b31cb3c8009d5946497911bfcf00cac0 (patch) | |
| tree | 4555db9646840429880875d36cae0f8b0de13b2d /frontends/php/sysmaps.php | |
| parent | d037e4b58b4c81f46d68c1dab66c22e130599d35 (diff) | |
| download | zabbix-f7f74958b31cb3c8009d5946497911bfcf00cac0.tar.gz zabbix-f7f74958b31cb3c8009d5946497911bfcf00cac0.tar.xz zabbix-f7f74958b31cb3c8009d5946497911bfcf00cac0.zip | |
- added support for custom multiplier (Alexei)
- added column items.formula (Alexei)
- added support of SNMPv3 (Alexei)
- added columns snmpv3_* to table items (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1420 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/sysmaps.php')
| -rw-r--r-- | frontends/php/sysmaps.php | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/frontends/php/sysmaps.php b/frontends/php/sysmaps.php index c520630e..a3038fd7 100644 --- a/frontends/php/sysmaps.php +++ b/frontends/php/sysmaps.php @@ -36,23 +36,25 @@ ?> <?php - if(isset($_GET["register"])) + if(isset($_POST["register"])) { - if($_GET["register"]=="add") + if($_POST["register"]=="add") { - $result=add_sysmap($_GET["name"],$_GET["width"],$_GET["height"]); + $result=add_sysmap($_POST["name"],$_POST["width"],$_POST["height"],$_FILES["background"]); show_messages($result,"Network map added","Cannot add network map"); + print_r($_FILES); + echo $_FILES["background"]["tmp_name"]; } - if($_GET["register"]=="update") + if($_POST["register"]=="update") { - $result=update_sysmap($_GET["sysmapid"],$_GET["name"],$_GET["width"],$_GET["height"]); + $result=update_sysmap($_POST["sysmapid"],$_POST["name"],$_POST["width"],$_POST["height"]); show_messages($result,"Network map updated","Cannot update network map"); } - if($_GET["register"]=="delete") + if($_POST["register"]=="delete") { - $result=delete_sysmap($_GET["sysmapid"]); + $result=delete_sysmap($_POST["sysmapid"]); show_messages($result,"Network map deleted","Cannot delete network map"); - unset($_GET["sysmapid"]); + unset($_POST["sysmapid"]); } } ?> @@ -64,7 +66,8 @@ <?php show_table_header("NETWORK MAPS"); - echo "<TABLE BORDER=0 align=center COLS=4 WIDTH=100% BGCOLOR=\"#CCCCCC\" cellspacing=1 cellpadding=3>"; + echo "<TABLE BORDER=0 align=center COLS=4 WIDTH=100% BGCOLOR=\"#AAAAAA\" cellspacing=1 cellpadding=3>"; + echo "<TR BGCOLOR=\"#CCCCCC\">"; echo "<TD WIDTH=3% NOSAVE><B>Id</B></TD>"; echo "<TD><B>Name</B></TD>"; echo "<TD WIDTH=5% NOSAVE><B>Width</B></TD>"; @@ -129,7 +132,7 @@ echo "New system map"; show_table2_v_delimiter(); - echo "<form method=\"get\" action=\"sysmaps.php\">"; + echo "<form method=\"post\" enctype=\"multipart/form-data\" action=\"sysmaps.php\">"; if(isset($_GET["sysmapid"])) { echo "<input class=\"biginput\" name=\"sysmapid\" type=\"hidden\" value=".$_GET["sysmapid"].">"; @@ -148,6 +151,12 @@ show_table2_h_delimiter(); echo "<input class=\"biginput\" name=\"height\" size=5 value=\"$height\">"; + show_table2_v_delimiter(); + echo "Background image"; + show_table2_h_delimiter(); + echo "<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"10000000\">"; + echo "<input class=\"biginput\" type=\"file\" name=\"background\">"; + show_table2_v_delimiter2(); echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add\">"; if(isset($_GET["sysmapid"])) |
