diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-05-22 08:13:08 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-05-22 08:13:08 +0000 |
commit | 0878829606af062244fbd1077fda07cb72af77e3 (patch) | |
tree | a42a1936e0bfafff5b90554eabf76b531d4b031f /frontends/php/chart7.php | |
parent | f1772af2dc84a86ceee17ca21532e7143dbcab65 (diff) | |
download | zabbix-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/chart7.php')
-rw-r--r-- | frontends/php/chart7.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/frontends/php/chart7.php b/frontends/php/chart7.php index 30e67fec..df6d0e6a 100644 --- a/frontends/php/chart7.php +++ b/frontends/php/chart7.php @@ -62,7 +62,17 @@ include_once "include/page_header.php"; access_deny(); } } + + + $effectiveperiod = navigation_bar_calc(); + if(count($items) == 1){ + $_REQUEST['period'] = get_request('period',get_profile('web.item['.$items['itemid'].'].graph.period', ZBX_PERIOD_DEFAULT)); + if($_REQUEST['period'] >= ZBX_MIN_PERIOD){ + update_profile('web.item['.$items['itemid'].'].graph.period',$_REQUEST['period']); + } + } + $graph = new Pie(get_request("graphtype" ,GRAPH_TYPE_NORMAL)); $graph->SetHeader($host["host"].":".get_request("name","")); |