summaryrefslogtreecommitdiffstats
path: root/frontends/php/popup.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-30 11:21:15 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-30 11:21:15 +0000
commit1911c670de385a295b404edcf8a3764d64c25614 (patch)
tree3615108eaec5c722e91ae220585626ebd676665b /frontends/php/popup.php
parent99334a88dbac754adc43e82dbfe1027b28c4d9de (diff)
- Frontend improvements (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2572 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/popup.php')
-rw-r--r--frontends/php/popup.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/frontends/php/popup.php b/frontends/php/popup.php
index ce9e40d6..995af0b2 100644
--- a/frontends/php/popup.php
+++ b/frontends/php/popup.php
@@ -93,10 +93,14 @@
{
continue;
}
-// $host ="<a href=\"#\" onclick='send_back('Accounts','9ca3e791-4bc9-7808-f70c-4374c24de0df');'>".$row["host"]."</a>";
-// $host ="<a href=\"#\" onclick=\"zzz();\">".$row["host"]."</a>";
- $host ="<a href=\"#\" onclick=\"window.opener.document.".$_REQUEST["form"].".".$_REQUEST["field1"].".value='".$row["hostid"]."'; window.opener.document.".$_REQUEST["form"].".".$_REQUEST["field2"].".value='".$row["host"]."'; window.close();\">".$row["host"]."</a>";
-// $host="<a href=\"popup.php?hostid=".$row["hostid"]."\">".$row["host"]."</a>";
+
+ $host ="<a href=\"#\" onclick='".
+ " window.opener.document.forms[\"".$_REQUEST["form"]."\"].".$_REQUEST["field1"].
+ ".value=\"".$row["hostid"]."\";".
+ " window.opener.document.forms[\"".$_REQUEST["form"]."\"].".$_REQUEST["field2"].
+ ".value=\"".$row["host"]."\";".
+ " window.close();".
+ "'>".$row["host"]."</a>";
if($row["useip"]==1)
{