diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-10-05 16:59:02 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-10-05 16:59:02 +0000 |
commit | 062537835fa9c5abc662e56420dff80edb13d91d (patch) | |
tree | 6e94e638f766a8b2b409335aee6e2ae6736c4b03 /frontends/php/history.php | |
parent | a3ee144e22596c3aea1fab644ed4c93e4466608a (diff) | |
download | zabbix-062537835fa9c5abc662e56420dff80edb13d91d.tar.gz zabbix-062537835fa9c5abc662e56420dff80edb13d91d.tar.xz zabbix-062537835fa9c5abc662e56420dff80edb13d91d.zip |
- [DEV-1] added new graph navigation-bar (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@4839 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/history.php')
-rw-r--r-- | frontends/php/history.php | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/frontends/php/history.php b/frontends/php/history.php index 8e09a988..76a1e343 100644 --- a/frontends/php/history.php +++ b/frontends/php/history.php @@ -25,7 +25,8 @@ $page["file"] = "history.php"; $page["title"] = "S_HISTORY"; - + $page['scripts'] = array('prototype.js','url.js','gmenu.js','scrollbar.js','sbinit.js'); + if(isset($_REQUEST['plaintext']) || isset($_REQUEST['fullscreen'])) { define('ZBX_PAGE_NO_MENU', 1); @@ -512,9 +513,22 @@ COpt::profiling_stop("history"); if(!isset($_REQUEST["plaintext"])) { - if(in_array($_REQUEST["action"],array("showvalues","showgraph"))) - { - navigation_bar("history.php",$to_save_request); + if(in_array($_REQUEST["action"],array("showvalues","showgraph"))){ + + $stime = get_min_itemclock_by_itemid($_REQUEST["itemid"]); + $bstime = time()-$effectiveperiod; + + if(isset($_REQUEST['stime'])){ + $bstime = $_REQUEST['stime']; + $bstime = mktime(substr($bstime,8,2),substr($bstime,10,2),0,substr($bstime,4,2),substr($bstime,6,2),substr($bstime,0,4)); + } + + $script = 'scrollinit(0,0,0,'.$effectiveperiod.','.$stime.',0,'.$bstime.'); + showgraphmenu("graph");'; + + zbx_add_post_js($script); + + // navigation_bar("history.php",$to_save_request); } } ?> |