diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-12-27 15:03:19 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-12-27 15:03:19 +0000 |
commit | a95958e564bcd16f44395ed7d45f7994b198e9b2 (patch) | |
tree | 11d574d75d9d132f569fbfa3f4dc387b03a78703 /frontends/php/sysmap.php | |
parent | aecf783b642e2f37d349daf2190e2e9dc7e9cee9 (diff) | |
download | zabbix-a95958e564bcd16f44395ed7d45f7994b198e9b2.tar.gz zabbix-a95958e564bcd16f44395ed7d45f7994b198e9b2.tar.xz zabbix-a95958e564bcd16f44395ed7d45f7994b198e9b2.zip |
- added severity to pre-defined triggers (Alexei)
- many misc changes (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@610 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/sysmap.php')
-rw-r--r-- | frontends/php/sysmap.php | 68 |
1 files changed, 35 insertions, 33 deletions
diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php index 7d6de98e..f52d3730 100644 --- a/frontends/php/sysmap.php +++ b/frontends/php/sysmap.php @@ -271,48 +271,50 @@ <?php echo "<br>"; - show_table2_header_begin(); - echo "New connector"; - - show_table2_v_delimiter(); - echo "<form method=\"post\" action=\"sysmap.php?sysmapid=".$HTTP_GET_VARS["sysmapid"].">"; - echo "Host 1"; - show_table2_h_delimiter(); $result=DBselect("select shostid,label from sysmaps_hosts where sysmapid=".$HTTP_GET_VARS["sysmapid"]." order by label"); - echo "<select class=\"biginput\" name=\"shostid1\" size=1>"; - for($i=0;$i<DBnum_rows($result);$i++) + if(DBnum_rows($result)>1) { - $shostid_=DBget_field($result,$i,0); - $label=DBget_field($result,$i,1); - if(isset($HTTP_GET_VARS["shostid"])&&($HTTP_GET_VARS["shostid"]==$shostid_)) + show_table2_header_begin(); + echo "New connector"; + + show_table2_v_delimiter(); + echo "<form method=\"post\" action=\"sysmap.php?sysmapid=".$HTTP_GET_VARS["sysmapid"]."\">"; + echo "Host 1"; + show_table2_h_delimiter(); +// $result=DBselect("select shostid,label from sysmaps_hosts where sysmapid=".$HTTP_GET_VARS["sysmapid"]." order by label"); + echo "<select class=\"biginput\" name=\"shostid1\" size=1>"; + for($i=0;$i<DBnum_rows($result);$i++) { - echo "<OPTION VALUE='$shostid_' SELECTED>$label"; + $shostid_=DBget_field($result,$i,0); + $label=DBget_field($result,$i,1); + if(isset($HTTP_GET_VARS["shostid"])&&($HTTP_GET_VARS["shostid"]==$shostid_)) + { + echo "<OPTION VALUE='$shostid_' SELECTED>$label"; + } + else + { + echo "<OPTION VALUE='$shostid_'>$label"; + } } - else + echo "</SELECT>"; + + show_table2_v_delimiter(); +// echo "<form method=\"get\" action=\"sysmap.php?sysmapid=".$HTTP_GET_VARS["sysmapid"].">"; + echo "Host 2"; + show_table2_h_delimiter(); + echo "<select class=\"biginput\" name=\"shostid2\" size=1>"; + for($i=0;$i<DBnum_rows($result);$i++) { + $shostid_=DBget_field($result,$i,0); + $label=DBget_field($result,$i,1); echo "<OPTION VALUE='$shostid_'>$label"; } - } - echo "</SELECT>"; + echo "</SELECT>"; - show_table2_v_delimiter(); - echo "<form method=\"get\" action=\"sysmap.php?sysmapid=".$HTTP_GET_VARS["sysmapid"].">"; - echo "Host 2"; - show_table2_h_delimiter(); - $result=DBselect("select shostid,label from sysmaps_hosts where sysmapid=".$HTTP_GET_VARS["sysmapid"]." order by label"); - echo "<select class=\"biginput\" name=\"shostid2\" size=1>"; - for($i=0;$i<DBnum_rows($result);$i++) - { - $shostid_=DBget_field($result,$i,0); - $label=DBget_field($result,$i,1); - echo "<OPTION VALUE='$shostid_'>$label"; + show_table2_v_delimiter2(); + echo "<input type=\"submit\" name=\"register\" value=\"add link\">"; + show_table2_header_end(); } - echo "</SELECT>"; - - show_table2_v_delimiter2(); - echo "<input type=\"submit\" name=\"register\" value=\"add link\">"; - - show_table2_header_end(); ?> <?php |