summaryrefslogtreecommitdiffstats
path: root/frontends/php/screenedit.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-08-16 07:05:49 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-08-16 07:05:49 +0000
commit09aea2874df0ffc5a2600640862e3874b05083ce (patch)
treecdb3fe09d8d4bd5feb8f5f1ecf97aa3ad9981f62 /frontends/php/screenedit.php
parentc8a9bbeef8c4daff678aae52fecae8536ed9787d (diff)
downloadzabbix-09aea2874df0ffc5a2600640862e3874b05083ce.tar.gz
zabbix-09aea2874df0ffc5a2600640862e3874b05083ce.tar.xz
zabbix-09aea2874df0ffc5a2600640862e3874b05083ce.zip
Improvements for screen handling code.
git-svn-id: svn://svn.zabbix.com/trunk@926 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/screenedit.php')
-rw-r--r--frontends/php/screenedit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/screenedit.php b/frontends/php/screenedit.php
index 6fad8c19..e0d6e8d7 100644
--- a/frontends/php/screenedit.php
+++ b/frontends/php/screenedit.php
@@ -56,7 +56,6 @@
if($HTTP_GET_VARS["register"]=="delete")
{
$result=delete_screen_item($HTTP_GET_VARS["screenitemid"]);
- $result=delete_screen_graph($HTTP_GET_VARS["screengraphid"]);
show_messages($result,"Item deleted","Cannot delete item");
unset($HTTP_GET_VARS["x"]);
}
@@ -109,7 +108,7 @@
if(isset($HTTP_GET_VARS["x"])&&($HTTP_GET_VARS["x"]==$c)&&($HTTP_GET_VARS["y"]==$r))
{
$resource=@iif(isset($HTTP_GET_VARS["resource"]),$HTTP_GET_VARS["resource"],$resource);
- $resourceid=@iif(isset($HTTP_GET_VARS["resource"]),$HTTP_GET_VARS["resourceid"],$resourceid);
+ $resourceid=@iif(isset($HTTP_GET_VARS["resourceid"]),$HTTP_GET_VARS["resourceid"],$resourceid);
$screenitemid=@iif(isset($HTTP_GET_VARS["screenitemid"]),$HTTP_GET_VARS["screenitemid"],$screenitemid);
$width=@iif(isset($HTTP_GET_VARS["width"]),$HTTP_GET_VARS["width"],$width);
$height=@iif(isset($HTTP_GET_VARS["height"]),$HTTP_GET_VARS["height"],$height);
@@ -118,10 +117,11 @@
echo "Screen cell configuration";
echo "<input name=\"screenid\" type=\"hidden\" value=$screenid>";
+ echo "<input name=\"screenitemid\" type=\"hidden\" value=$screenitemid>";
echo "<input name=\"x\" type=\"hidden\" value=$c>";
echo "<input name=\"y\" type=\"hidden\" value=$r>";
// echo "<input name=\"resourceid\" type=\"hidden\" value=$resourceid>";
- echo "<input name=\"resource\" type=\"hidden\" value='$resource'>";
+// echo "<input name=\"resource\" type=\"hidden\" value='$resource'>";
show_table2_v_delimiter();
echo "Resource";