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/chart.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/chart.php')
| -rw-r--r-- | frontends/php/chart.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/frontends/php/chart.php b/frontends/php/chart.php index e8ccabbe..8d4e92bb 100644 --- a/frontends/php/chart.php +++ b/frontends/php/chart.php @@ -59,6 +59,14 @@ include_once "include/page_header.php"; $graph = new Chart(); + $effectiveperiod = navigation_bar_calc(); + + $_REQUEST['period'] = get_request('period',get_profile('web.item['.$_REQUEST['itemid'].'].graph.period', ZBX_PERIOD_DEFAULT)); + if($_REQUEST['period'] >= ZBX_MIN_PERIOD){ + update_profile('web.item['.$_REQUEST['itemid'].'].graph.period',$_REQUEST['period']); + } + + if(isset($_REQUEST["period"])) $graph->SetPeriod($_REQUEST["period"]); if(isset($_REQUEST["from"])) $graph->SetFrom($_REQUEST["from"]); if(isset($_REQUEST["width"])) $graph->SetWidth($_REQUEST["width"]); |
