From eccdbb7eb91dcee5c1b3a8c2620185961ac496ef Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 10 Nov 2006 14:11:09 +0000 Subject: - fix for start time in graph navigation (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@3451 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/chart.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'frontends/php/chart.php') diff --git a/frontends/php/chart.php b/frontends/php/chart.php index e0e0d243..1c230996 100644 --- a/frontends/php/chart.php +++ b/frontends/php/chart.php @@ -37,7 +37,8 @@ include_once "include/page_header.php"; "from"=> array(T_ZBX_INT, O_OPT, null, '{}>=0', null), "width"=> array(T_ZBX_INT, O_OPT, null, '{}>0', null), "height"=> array(T_ZBX_INT, O_OPT, null, '{}>0', null), - "border"=> array(T_ZBX_INT, O_OPT, null, IN('0,1'), null) + "border"=> array(T_ZBX_INT, O_OPT, null, IN('0,1'), null), + "stime"=> array(T_ZBX_STR, O_OPT, P_SYS, null, null) ); check_fields($fields); @@ -57,6 +58,7 @@ include_once "include/page_header.php"; if(isset($_REQUEST["width"])) $graph->SetWidth($_REQUEST["width"]); if(isset($_REQUEST["height"])) $graph->SetHeight($_REQUEST["height"]); if(isset($_REQUEST["border"])) $graph->SetBorder(0); + if(isset($_REQUEST["stime"])) $graph->setSTime($_REQUEST["stime"]); $graph->AddItem($_REQUEST["itemid"], GRAPH_YAXIS_SIDE_RIGHT, CALC_FNC_ALL); -- cgit