summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart2.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-22 08:13:08 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-22 08:13:08 +0000
commit0878829606af062244fbd1077fda07cb72af77e3 (patch)
treea42a1936e0bfafff5b90554eabf76b531d4b031f /frontends/php/chart2.php
parentf1772af2dc84a86ceee17ca21532e7143dbcab65 (diff)
downloadzabbix-0878829606af062244fbd1077fda07cb72af77e3.tar.gz
zabbix-0878829606af062244fbd1077fda07cb72af77e3.tar.xz
zabbix-0878829606af062244fbd1077fda07cb72af77e3.zip
- [DEV-170] improved charts period & start time selection (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5722 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart2.php')
-rw-r--r--frontends/php/chart2.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php
index 9d81e933..ac050628 100644
--- a/frontends/php/chart2.php
+++ b/frontends/php/chart2.php
@@ -54,7 +54,15 @@ include_once 'include/page_header.php';
if(!graph_accessible($_REQUEST['graphid'])){
access_deny();
}
-
+
+ $effectiveperiod = navigation_bar_calc();
+
+ if(($_REQUEST['graphid']>0) && ($_REQUEST['period'] >= ZBX_MIN_PERIOD)){
+ update_profile('web.graph['.$_REQUEST['graphid'].'].period',$_REQUEST['period']);
+ }
+
+ update_profile('web.charts.graphid',$_REQUEST['graphid']);
+
$sql = 'SELECT g.*,h.host,h.hostid '.
' FROM graphs g '.
' LEFT JOIN graphs_items gi ON g.graphid=gi.graphid '.