diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-04-28 10:03:56 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-04-28 10:03:56 +0000 |
| commit | 55d8804ff83518a46e6742ebd0ba6e0fa6df2d8b (patch) | |
| tree | 497b1375f551fd74294265a401b95a2c093d297b /frontends/php/config.php | |
| parent | 55963f6c918d2503019875cac9307091b908eaaa (diff) | |
| download | zabbix-55d8804ff83518a46e6742ebd0ba6e0fa6df2d8b.tar.gz zabbix-55d8804ff83518a46e6742ebd0ba6e0fa6df2d8b.tar.xz zabbix-55d8804ff83518a46e6742ebd0ba6e0fa6df2d8b.zip | |
- improved graphs, added 'Working time' displaying (Eugene)
- added 'Working time' configuration (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2786 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/config.php')
| -rw-r--r-- | frontends/php/config.php | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/frontends/php/config.php b/frontends/php/config.php index 7844628c..856c086a 100644 --- a/frontends/php/config.php +++ b/frontends/php/config.php @@ -46,15 +46,17 @@ $fields=array( // VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION - "config"=> array(T_ZBX_INT, O_OPT, NULL, IN("0,1,3,4,5,6"), NULL), + "config"=> array(T_ZBX_INT, O_OPT, NULL, IN("0,1,3,4,5,6,7"), NULL), // other form "alert_history"=> array(T_ZBX_INT, O_NO, NULL, BETWEEN(0,65535), - 'in_array({config},array(0,5))&&({save}=="Save")'), + 'in_array({config},array(0,5,7))&&({save}=="Save")'), "alarm_history"=> array(T_ZBX_INT, O_NO, NULL, BETWEEN(0,65535), - 'in_array({config},array(0,5))&&({save}=="Save")'), + 'in_array({config},array(0,5,7))&&({save}=="Save")'), "refresh_unsupported"=> array(T_ZBX_INT, O_NO, NULL, BETWEEN(0,65535), - 'in_array({config},array(0,5))&&({save}=="Save")'), + 'in_array({config},array(0,5,7))&&({save}=="Save")'), + "work_period"=> array(T_ZBX_STR, O_NO, NULL, NULL, + 'in_array({config},array(0,5,7))&&({save}=="Save")'), // media form "mediatypeid"=> array(T_ZBX_INT, O_NO, P_SYS, BETWEEN(0,65535), @@ -257,14 +259,14 @@ show_messages($result, S_AUTOREGISTRATION_DELETED, S_AUTOREGISTRATION_WAS_NOT_DELETED); } } - elseif(isset($_REQUEST["save"])&&in_array($_REQUEST["config"],array(0,5))) + elseif(isset($_REQUEST["save"])&&in_array($_REQUEST["config"],array(0,5,7))) { /* OTHER ACTIONS */ $result=update_config($_REQUEST["alarm_history"],$_REQUEST["alert_history"], - $_REQUEST["refresh_unsupported"]); + $_REQUEST["refresh_unsupported"],$_REQUEST["work_period"]); show_messages($result, S_CONFIGURATION_UPDATED, S_CONFIGURATION_WAS_NOT_UPDATED); if($result) @@ -346,6 +348,7 @@ $cmbConfig->AddItem(3,S_IMAGES); $cmbConfig->AddItem(4,S_AUTOREGISTRATION); $cmbConfig->AddItem(6,S_VALUE_MAPPING); + $cmbConfig->AddItem(7,S_WORKING_TIME); $cmbConfig->AddItem(5,S_OTHER); $form->AddItem($cmbConfig); switch($_REQUEST["config"]) @@ -380,6 +383,10 @@ { insert_other_parameters_form(); } + elseif($_REQUEST["config"]==7) + { + insert_work_period_form(); + } elseif($_REQUEST["config"]==1) { if(isset($_REQUEST["form"])) |
