summaryrefslogtreecommitdiffstats
path: root/frontends/php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-02-26 17:54:41 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-02-26 17:54:41 +0000
commitce4b7a91ed557315d7bd0dffebdc79a66d01cc72 (patch)
tree395ceb8097739b257eb82dee8ed82a6067076b04 /frontends/php
parent7cbbb41fc1db47f50b4bf333c0c58db556021312 (diff)
downloadzabbix-ce4b7a91ed557315d7bd0dffebdc79a66d01cc72.tar.gz
zabbix-ce4b7a91ed557315d7bd0dffebdc79a66d01cc72.tar.xz
zabbix-ce4b7a91ed557315d7bd0dffebdc79a66d01cc72.zip
- fixed mouse navigation for multiple maps in one screen (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1678 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
-rw-r--r--frontends/php/include/config.inc.php2
-rw-r--r--frontends/php/maps.php2
-rw-r--r--frontends/php/screens.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 14b4c4a7..c5312d2d 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -4459,7 +4459,7 @@ echo "</head>";
function get_map_imagemap($sysmapid)
{
- $map="\n<map name=links$sysmapid"."_".rand(0,100000).">";
+ $map="\n<map name=links$sysmapid>";
$result=DBselect("select h.host,sh.shostid,sh.sysmapid,sh.hostid,sh.label,sh.x,sh.y,h.status,sh.icon,sh.url from sysmaps_hosts sh,hosts h where sh.sysmapid=$sysmapid and h.hostid=sh.hostid");
for($i=0;$i<DBnum_rows($result);$i++)
{
diff --git a/frontends/php/maps.php b/frontends/php/maps.php
index eeda2555..8a2fe70c 100644
--- a/frontends/php/maps.php
+++ b/frontends/php/maps.php
@@ -126,7 +126,7 @@
if(isset($_GET["sysmapid"]))
{
echo get_map_imagemap($_GET["sysmapid"]);
- echo "<IMG SRC=\"map.php?noedit=1&sysmapid=".$_GET["sysmapid"]."\" border=0 usemap=#links>";
+ echo "<IMG SRC=\"map.php?noedit=1&sysmapid=".$_GET["sysmapid"]."\" border=0 usemap=#links".$_GET["sysmapid"].">";
}
else
{
diff --git a/frontends/php/screens.php b/frontends/php/screens.php
index ba73def7..c51d8693 100644
--- a/frontends/php/screens.php
+++ b/frontends/php/screens.php
@@ -131,7 +131,7 @@
else if($resource == 2)
{
echo get_map_imagemap($resourceid);
- echo "<img src='map.php?sysmapid=$resourceid&noedit=true&border=1' border=0 usemap=#links>";
+ echo "<img src='map.php?sysmapid=$resourceid&noedit=true&border=1' border=0 usemap=#links$resourceid>";
}
else if($resource == 3)
{