summaryrefslogtreecommitdiffstats
path: root/frontends/php/history.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-11-01 15:20:30 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-11-01 15:20:30 +0000
commitd6c398a22edb09dffc3f7589635897c78b1fae62 (patch)
treee8156cb24679a71056b0312c5dbe953fb1911b14 /frontends/php/history.php
parentc5b41261327759f046d89ed339e309b9535213e5 (diff)
downloadzabbix-d6c398a22edb09dffc3f7589635897c78b1fae62.tar.gz
zabbix-d6c398a22edb09dffc3f7589635897c78b1fae62.tar.xz
zabbix-d6c398a22edb09dffc3f7589635897c78b1fae62.zip
- [DEV-54] added zoom for screens (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@4965 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/history.php')
-rw-r--r--frontends/php/history.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontends/php/history.php b/frontends/php/history.php
index 6a6149da..b851a5e3 100644
--- a/frontends/php/history.php
+++ b/frontends/php/history.php
@@ -228,6 +228,7 @@ include_once "include/page_header.php";
<?php
if($_REQUEST["action"]=="showgraph" && $item_type != ITEM_VALUE_TYPE_LOG)
{
+ $dom_graph_id = 'graph';
show_history($_REQUEST["itemid"],$_REQUEST["from"],$_REQUEST["stime"],$effectiveperiod);
}
elseif($_REQUEST["action"]=="showvalues" || $_REQUEST["action"]=="showlatest")
@@ -506,7 +507,7 @@ COpt::profiling_start("history");
if(!isset($_REQUEST["plaintext"]))
$table->ShowEnd(); // to solve memory leak we call 'Show' method by steps
else
- echo "</PRE>";
+ echo "</pre>";
COpt::profiling_stop("history");
}
}
@@ -525,7 +526,7 @@ COpt::profiling_stop("history");
$script = 'scrollinit(0,0,0,'.$effectiveperiod.','.$stime.',0,'.$bstime.');
showgraphmenu("graph");
- graph_zoom_init('.$bstime.','.$effectiveperiod.',ZBX_G_WIDTH, 200);';
+ graph_zoom_init("'.$dom_graph_id.'",'.$bstime.','.$effectiveperiod.',ZBX_G_WIDTH, 200);';
zbx_add_post_js($script);