diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-08-01 11:12:25 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-08-01 11:12:25 +0000 |
| commit | 20c099bd8e24ff1918b1f16c3c404f064a0dc9cf (patch) | |
| tree | 88f6c06febb7a7fea118de3bbcd37f49d8f2016d /frontends/php/include/forms.inc.php | |
| parent | 2d43875da97cbac5613fff6b24314cfc924df5dc (diff) | |
| download | zabbix-20c099bd8e24ff1918b1f16c3c404f064a0dc9cf.tar.gz zabbix-20c099bd8e24ff1918b1f16c3c404f064a0dc9cf.tar.xz zabbix-20c099bd8e24ff1918b1f16c3c404f064a0dc9cf.zip | |
- 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
Diffstat (limited to 'frontends/php/include/forms.inc.php')
| -rw-r--r-- | frontends/php/include/forms.inc.php | 8 |
1 files changed, 6 insertions, 2 deletions
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); |
