"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mrbs-1.9.4/web/edit_area.php" between
mrbs-1.9.4.tar.gz and mrbs-1.10.0.tar.gz

About: MRBS is a web application for booking meeting rooms or other resources (using PHP and MySQL/pgsql).

edit_area.php  (mrbs-1.9.4):edit_area.php  (mrbs-1.10.0)
skipping to change at line 145 skipping to change at line 145
// Timezone // Timezone
$field = new FieldSelect(); $field = new FieldSelect();
$field->setLabel(get_vocab('timezone')) $field->setLabel(get_vocab('timezone'))
->setControlAttributes(array('id' => 'area_timezone', ->setControlAttributes(array('id' => 'area_timezone',
'name' => 'area_timezone')) 'name' => 'area_timezone'))
->addSelectOptions(get_timezone_options(), $timezone, true); ->addSelectOptions(get_timezone_options(), $timezone, true);
$fieldset->addElement($field); $fieldset->addElement($field);
// Default type // Default type
$field = new FieldSelect(); $options = get_type_options(false);
$field->setLabel(get_vocab('default_type')) if (count($options)>0)
->setControlAttribute('name', 'area_default_type') {
->addSelectOptions(get_type_options(), $data['default_type'], true); $field = new FieldSelect();
$fieldset->addElement($field); $field->setLabel(get_vocab('default_type'))
->setControlAttribute('name', 'area_default_type')
->addSelectOptions($options, $data['default_type'], true);
$fieldset->addElement($field);
}
// Status - Enabled or Disabled // Status - Enabled or Disabled
$options = array('0' => get_vocab('enabled'), $options = array('0' => get_vocab('enabled'),
'1' => get_vocab('disabled')); '1' => get_vocab('disabled'));
$value = ($data['disabled']) ? '1' : '0'; $value = ($data['disabled']) ? '1' : '0';
$field = new FieldInputRadioGroup(); $field = new FieldInputRadioGroup();
$field->setAttribute('id', 'status') $field->setAttribute('id', 'status')
->setLabel(get_vocab('status')) ->setLabel(get_vocab('status'))
->setLabelAttributes(array('title' => get_vocab('disabled_area_note'))) ->setLabelAttributes(array('title' => get_vocab('disabled_area_note')))
->addRadioOptions($options, 'area_disabled', $value, true); ->addRadioOptions($options, 'area_disabled', $value, true);
skipping to change at line 716 skipping to change at line 720
} }
function get_fieldset_submit_buttons() function get_fieldset_submit_buttons()
{ {
$fieldset = new ElementFieldset(); $fieldset = new ElementFieldset();
// The back and submit buttons // The back and submit buttons
$field = new FieldInputSubmit(); $field = new FieldInputSubmit();
$back = new ElementInputSubmit(); $back = new ElementInputSubmit();
$back->setAttributes(array('value' => get_vocab('backadmin'), $back->setAttributes(array('value' => get_vocab('back'),
'formaction' => multisite('admin.php'))); 'formaction' => multisite('admin.php')));
$field->addLabelClass('no_suffix') $field->addLabelClass('no_suffix')
->addLabelElement($back) ->addLabelElement($back)
->setControlAttribute('value', get_vocab('change')); ->setControlAttribute('value', get_vocab('save'));
$fieldset->addElement($field); $fieldset->addElement($field);
return $fieldset; return $fieldset;
} }
// Check the user is authorised for this page // Check the user is authorised for this page
checkAuthorised(this_page()); checkAuthorised(this_page());
$context = array( $context = array(
'view' => $view, 'view' => $view,
 End of changes. 3 change blocks. 
7 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)