summaryrefslogtreecommitdiffstats
path: root/frontends/php/sysmap.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-07-22 19:56:19 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-07-22 19:56:19 +0000
commit18f62b7d06dedf74b30899302019e847ab287183 (patch)
tree61763d9536c379a7c5c4345c9f407dbbac81005a /frontends/php/sysmap.php
parent7c725b2e2f3c03b6bbcc99e67e6e1c347bdc7c74 (diff)
downloadzabbix-18f62b7d06dedf74b30899302019e847ab287183.tar.gz
zabbix-18f62b7d06dedf74b30899302019e847ab287183.tar.xz
zabbix-18f62b7d06dedf74b30899302019e847ab287183.zip
- added frontends/php/chart3.php (Alexei)
- small fix for form "Configuration of network map" (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@439 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/sysmap.php')
-rw-r--r--frontends/php/sysmap.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php
index 191bde33..cb6b23d7 100644
--- a/frontends/php/sysmap.php
+++ b/frontends/php/sysmap.php
@@ -269,9 +269,16 @@
echo "<select name=\"shostid1\" size=1>";
for($i=0;$i<DBnum_rows($result);$i++)
{
- $shostid=DBget_field($result,$i,0);
+ $shostid_=DBget_field($result,$i,0);
$label=DBget_field($result,$i,1);
- echo "<OPTION VALUE='$shostid'>$label";
+ if(isset($shostid)&&($shostid==$shostid_))
+ {
+ echo "<OPTION VALUE='$shostid_' SELECTED>$label";
+ }
+ else
+ {
+ echo "<OPTION VALUE='$shostid_'>$label";
+ }
}
echo "</SELECT>";
@@ -283,9 +290,9 @@
echo "<select name=\"shostid2\" size=1>";
for($i=0;$i<DBnum_rows($result);$i++)
{
- $shostid=DBget_field($result,$i,0);
+ $shostid_=DBget_field($result,$i,0);
$label=DBget_field($result,$i,1);
- echo "<OPTION VALUE='$shostid'>$label";
+ echo "<OPTION VALUE='$shostid_'>$label";
}
echo "</SELECT>";