summaryrefslogtreecommitdiffstats
path: root/frontends/php/history.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-10-31 11:28:41 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-10-31 11:28:41 +0000
commit8dfc37f2248bff23f8328f714b06418fcfaaa8dc (patch)
tree3acf1b9eb362a37f407abf267428c26b6157fe22 /frontends/php/history.php
parent5e4063517c2aba730d1aa2273754a85891375282 (diff)
downloadzabbix-8dfc37f2248bff23f8328f714b06418fcfaaa8dc.tar.gz
zabbix-8dfc37f2248bff23f8328f714b06418fcfaaa8dc.tar.xz
zabbix-8dfc37f2248bff23f8328f714b06418fcfaaa8dc.zip
- [DEV-54] added zoom for graphs (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@4951 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/history.php')
-rw-r--r--frontends/php/history.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/frontends/php/history.php b/frontends/php/history.php
index 2f8aae59..6a6149da 100644
--- a/frontends/php/history.php
+++ b/frontends/php/history.php
@@ -26,7 +26,7 @@
$page["file"] = "history.php";
$page["title"] = "S_HISTORY";
$page['hist_arg'] = array('hostid','grouid','graphid','period','dec','inc','left','right','stime');
- $page['scripts'] = array('prototype.js','url.js','gmenu.js','scrollbar.js','sbinit.js');
+ $page['scripts'] = array('prototype.js','url.js','gmenu.js','scrollbar.js','sbox.js','sbinit.js');
if(isset($_REQUEST['plaintext']) || isset($_REQUEST['fullscreen']))
{
@@ -350,7 +350,7 @@ include_once "include/page_header.php";
}
else
{
- echo "<PRE>\n";
+ echo "<pre>\n";
}
while($row=DBfetch($result))
@@ -438,7 +438,7 @@ include_once "include/page_header.php";
if(!isset($_REQUEST["plaintext"]))
$table->ShowEnd(); // to solve memory leak we call 'Show' method by steps
else
- echo "</PRE>";
+ echo "</pre>";
}
else
{
@@ -464,7 +464,7 @@ include_once "include/page_header.php";
}
else
{
- echo "<PRE>\n";
+ echo "<pre>\n";
}
COpt::profiling_start("history");
@@ -524,7 +524,8 @@ COpt::profiling_stop("history");
}
$script = 'scrollinit(0,0,0,'.$effectiveperiod.','.$stime.',0,'.$bstime.');
- showgraphmenu("graph");';
+ showgraphmenu("graph");
+ graph_zoom_init('.$bstime.','.$effectiveperiod.',ZBX_G_WIDTH, 200);';
zbx_add_post_js($script);