summaryrefslogtreecommitdiffstats
path: root/frontends/php/charts.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/charts.php
parent960f15d24df774d5853ad8e8cbcaf81f0c61d56d (diff)
- 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/charts.php')
-rw-r--r--frontends/php/charts.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/frontends/php/charts.php b/frontends/php/charts.php
index c8e00f12..7420d92a 100644
--- a/frontends/php/charts.php
+++ b/frontends/php/charts.php
@@ -64,13 +64,22 @@
{
$result=DBselect("select name from graphs where graphid=".$HTTP_GET_VARS["graphid"]);
$row=DBfetch($result);
+ $str="";
+ if(isset($HTTP_GET_VARS["from"]))
+ {
+ $str=$str."&from=".$HTTP_GET_VARS["from"];
+ }
+ if(isset($HTTP_GET_VARS["period"]))
+ {
+ $str=$str."&period=".$HTTP_GET_VARS["period"];
+ }
if(isset($HTTP_GET_VARS["fullscreen"]))
{
- $map="<a href=\"charts.php?graphid=".$HTTP_GET_VARS["graphid"]."\">".$row["name"]."</a>";
+ $map="<a href=\"charts.php?graphid=".$HTTP_GET_VARS["graphid"]."$str\">".$row["name"]."</a>";
}
else
{
- $map="<a href=\"charts.php?graphid=".$HTTP_GET_VARS["graphid"]."&fullscreen=1\">".$row["name"]."</a>";
+ $map="<a href=\"charts.php?graphid=".$HTTP_GET_VARS["graphid"]."&fullscreen=1$str\">".$row["name"]."</a>";
}
}
else