summaryrefslogtreecommitdiffstats
path: root/frontends/php/screenedit.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-07-20 18:15:21 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-07-20 18:15:21 +0000
commitedb44e0293222987bcbaf6409c021c767c6faeec (patch)
treebaee5dd84d6b408971e24c1ba72e6ec6bb2411bb /frontends/php/screenedit.php
parent960f15d24df774d5853ad8e8cbcaf81f0c61d56d (diff)
downloadzabbix-edb44e0293222987bcbaf6409c021c767c6faeec.tar.gz
zabbix-edb44e0293222987bcbaf6409c021c767c6faeec.tar.xz
zabbix-edb44e0293222987bcbaf6409c021c767c6faeec.zip
- support for changing of graph items (Alexei)
- menu will not require more than three lines (Alexei) - fixed dividion by zero in chart2.php (Alexei) - period and start of interval are preserved in full-screen mode (Alexei) - added units in graph legends (Alexei) - table-like legend for user graphs (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@853 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/screenedit.php')
-rw-r--r--frontends/php/screenedit.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/frontends/php/screenedit.php b/frontends/php/screenedit.php
index e042418c..55b7255e 100644
--- a/frontends/php/screenedit.php
+++ b/frontends/php/screenedit.php
@@ -24,10 +24,11 @@
{
if($HTTP_GET_VARS["register"]=="add")
{
- if(isset($HTTP_GET_VARS["screenitemid"]))
- {
- delete_screen_item($HTTP_GET_VARS["screenitemid"]);
- }
+// if(isset($HTTP_GET_VARS["screenitemid"]))
+// {
+// delete_screen_item($HTTP_GET_VARS["screenitemid"]);
+// unset($HTTP_GET_VARS["screenitemid"]);
+// }
if($HTTP_GET_VARS["resource"]==0)
{
$result=add_screen_graph($HTTP_GET_VARS["screenid"],$HTTP_GET_VARS["x"],$HTTP_GET_VARS["y"],$HTTP_GET_VARS["itemid"],$HTTP_GET_VARS["width"],$HTTP_GET_VARS["height"]);
@@ -36,6 +37,7 @@
{
$result=add_screen_item($HTTP_GET_VARS["screenid"],$HTTP_GET_VARS["x"],$HTTP_GET_VARS["y"],$HTTP_GET_VARS["graphid"],$HTTP_GET_VARS["width"],$HTTP_GET_VARS["height"]);
}
+ unset($HTTP_GET_VARS["x"]);
show_messages($result,"Item added","Cannot add item");
}
if($HTTP_GET_VARS["register"]=="delete")
@@ -113,6 +115,7 @@
echo "<input name=\"x\" type=\"hidden\" value=$c>";
echo "<input name=\"y\" type=\"hidden\" value=$r>";
echo "<input name=\"screenitemid\" type=\"hidden\" value=$screenitemid>";
+ echo "<input name=\"screengraphid\" type=\"hidden\" value=$screengraphid>";
echo "<input name=\"resource\" type=\"hidden\" value=$resource>";
show_table2_v_delimiter();
@@ -137,7 +140,7 @@
$host_=DBget_field($result,$i,0);
$description_=DBget_field($result,$i,1);
$itemid_=DBget_field($result,$i,2);
- echo "<OPTION VALUE='$itemid_ ".iif($itemid==$itemid_,"selected","")."'>$host_: $description_";
+ echo "<OPTION VALUE='$itemid_' ".iif($itemid==$itemid_,"selected","")."'>$host_: $description_";
}
echo "</SELECT>";
}