From 20c099bd8e24ff1918b1f16c3c404f064a0dc9cf Mon Sep 17 00:00:00 2001 From: osmiy Date: Tue, 1 Aug 2006 11:12:25 +0000 Subject: - developed aggrigated graphs (Eugene) - fixed graphs drawing (Eugene) - fixed graph min value calculation (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@3081 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/forms.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'frontends/php/include/forms.inc.php') diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php index 0eb22249..3eee027a 100644 --- a/frontends/php/include/forms.inc.php +++ b/frontends/php/include/forms.inc.php @@ -22,6 +22,7 @@ // TODO !!! Correcr the help links !!! TODO include_once "include/defines.inc.php"; + include_once "include/classes/graph.inc.php"; include_once "include/db.inc.php"; function insert_new_message_form() @@ -963,7 +964,7 @@ { $frmGItem->AddVar("periods_cnt",$periods_cnt); - $cmbFnc = new CComboBox("calc_fnc",$calc_fnc); + $cmbFnc = new CComboBox("calc_fnc",$calc_fnc,'submit();'); $cmbFnc->AddItem(CALC_FNC_ALL, S_ALL_SMALL); $cmbFnc->AddItem(CALC_FNC_MIN, S_MIN_SMALL); $cmbFnc->AddItem(CALC_FNC_AVG, S_AVG_SMALL); @@ -972,7 +973,10 @@ $cmbType = new CComboBox("drawtype",$drawtype); $cmbType->AddItem(0,get_drawtype_description(0)); - $cmbType->AddItem(1,get_drawtype_description(1)); + + if($calc_fnc != CALC_FNC_ALL) + $cmbType->AddItem(1,get_drawtype_description(1)); + $cmbType->AddItem(2,get_drawtype_description(2)); $cmbType->AddItem(3,get_drawtype_description(3)); $frmGItem->AddRow(S_DRAW_STYLE, $cmbType); -- cgit