diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-09 15:26:41 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-09 15:26:41 +0000 |
commit | 5b55267c6a4676398d9645df59cf1750aeec4fe3 (patch) | |
tree | 8d7ee855e63088cd214465811de095d8df6f1ab7 /frontends/php/sysmap.php | |
parent | 6109c98ca6880cf3b0c6aebaa99b78b22fccdb0f (diff) | |
download | zabbix-5b55267c6a4676398d9645df59cf1750aeec4fe3.tar.gz zabbix-5b55267c6a4676398d9645df59cf1750aeec4fe3.tar.xz zabbix-5b55267c6a4676398d9645df59cf1750aeec4fe3.zip |
Frontend improvements.
git-svn-id: svn://svn.zabbix.com/trunk@2501 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/sysmap.php')
-rw-r--r-- | frontends/php/sysmap.php | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php index 22e3e235..27f9dad6 100644 --- a/frontends/php/sysmap.php +++ b/frontends/php/sysmap.php @@ -196,7 +196,7 @@ $col=0; show_table2_v_delimiter($col++); - echo "<form method=\"get\" action=\"sysmap.php\">"; + echo "<form name=\"host\" method=\"get\" action=\"sysmap.php\">"; if(isset($_REQUEST["shostid"])) { echo "<input name=\"shostid\" type=\"hidden\" value=".$_REQUEST["shostid"].">"; @@ -207,23 +207,26 @@ } echo "Host"; show_table2_h_delimiter(); - $result=DBselect("select hostid,host from hosts where status not in (".HOST_STATUS_DELETED.") order by host"); - echo "<select class=\"biginput\" name=\"hostid\" size=1>"; - while($row=DBfetch($result)) - { - $hostid_=$row["hostid"]; - $host_=$row["host"]; - if(isset($_REQUEST["shostid"]) && ($hostid==$hostid_)) -// if(isset($_REQUEST["hostid"]) && ($_REQUEST["hostid"]==$hostid_)) - { - echo "<OPTION VALUE='$hostid_' SELECTED>$host_"; - } - else - { - echo "<OPTION VALUE='$hostid_'>$host_"; - } - } - echo "</SELECT>"; + echo "<input class=\"biginput\" readonly name=\"host\" size=32 value=\"\">"; + echo "<input name=\"hostid\" type=\"hidden\" value =\"0\">"; + echo "<input title=\"Select [Alt+T]\" accessKey=\"T\" type=\"button\" class=\"button\" value='Select' name=\"btn1\" onclick=\"window.open('popup.php?form=host&field1=hostid&field2=host','new_win','width=450,height=450,resizable=1,scrollbars=1');\">"; +// +// $result=DBselect("select hostid,host from hosts where status not in (".HOST_STATUS_DELETED.") order by host"); +// echo "<select class=\"biginput\" name=\"hostid\" size=1>"; +// while($row=DBfetch($result)) +// { +// $hostid_=$row["hostid"]; +// $host_=$row["host"]; +// if(isset($_REQUEST["shostid"]) && ($hostid==$hostid_)) +// { +// echo "<OPTION VALUE='$hostid_' SELECTED>$host_"; +// } +// else +// { +// echo "<OPTION VALUE='$hostid_'>$host_"; +// } +// } +// echo "</SELECT>"; show_table2_v_delimiter($col++); echo "Icon (OFF)"; |