use new meta HTML

This commit is contained in:
Roland Gruber 2010-06-11 19:41:19 +00:00
parent f697a2946e
commit d806ab41b6
1 changed files with 48 additions and 76 deletions

View File

@ -174,86 +174,57 @@ class inetOrgPerson extends baseModule implements passwordService {
$return['profile_mappings']['inetOrgPerson_st'] = 'st'; $return['profile_mappings']['inetOrgPerson_st'] = 'st';
} }
// configuration settings // configuration settings
$return['config_options']['all'] = array( $configContainer = new htmlTable();
array( $configContainerHead = new htmlTable();
array('kind' => 'text', 'text' => '<b>' . _('Hidden options') . ":</b> ", 'td' => array('valign' => 'top')), $configContainerHead->addElement(new htmlOutputText(_('Hidden options')));
array('kind' => 'table', 'value' => array( $configContainerHead->addElement(new htmlHelpLink('hiddenOptions'));
array( $configContainerOptions = new htmlTable();
array('kind' => 'input', 'name' => 'inetOrgPerson_hideDescription', 'type' => 'checkbox'), $configContainer->addElement($configContainerHead, true);
array('kind' => 'text', 'text' => _('Description')), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideDescription', false, _('Description'), null, false));
array('kind' => 'text', 'text' => '&nbsp;'), $configContainerOptions->addElement(new htmlOutputText(' '));
array('kind' => 'input', 'name' => 'inetOrgPerson_hideStreet', 'type' => 'checkbox'), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideStreet', false, _('Street'), null, false));
array('kind' => 'text', 'text' => _('Street')), $configContainerOptions->addElement(new htmlOutputText(' '));
array('kind' => 'text', 'text' => '&nbsp;'), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hidePostOfficeBox', false, _('Post office box'), null, false));
array('kind' => 'input', 'name' => 'inetOrgPerson_hidePostOfficeBox', 'type' => 'checkbox'), $configContainerOptions->addNewLine();
array('kind' => 'text', 'text' => _('Post office box')), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hidePostalCode', false, _('Postal code'), null, false));
), $configContainerOptions->addElement(new htmlOutputText(' '));
array( $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideLocation', false, _('Location'), null, false));
array('kind' => 'input', 'name' => 'inetOrgPerson_hidePostalCode', 'type' => 'checkbox'), $configContainerOptions->addElement(new htmlOutputText(' '));
array('kind' => 'text', 'text' => _('Postal code')), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideState', false, _('State'), null, false));
array('kind' => 'text', 'text' => '&nbsp;'), $configContainerOptions->addNewLine();
array('kind' => 'input', 'name' => 'inetOrgPerson_hideLocation', 'type' => 'checkbox'), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hidePostalAddress', false, _('Postal address'), null, false));
array('kind' => 'text', 'text' => _('Location')), $configContainerOptions->addElement(new htmlOutputText(' '));
array('kind' => 'text', 'text' => '&nbsp;'), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideOfficeName', false, _('Office name'), null, false));
array('kind' => 'input', 'name' => 'inetOrgPerson_hideState', 'type' => 'checkbox'), $configContainerOptions->addElement(new htmlOutputText(' '));
array('kind' => 'text', 'text' => _('State')), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideRoomNumber', false, _('Room number'), null, false));
), $configContainerOptions->addNewLine();
array( $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideTelephoneNumber', false, _('Telephone number'), null, false));
array('kind' => 'input', 'name' => 'inetOrgPerson_hidePostalAddress', 'type' => 'checkbox'), $configContainerOptions->addElement(new htmlOutputText(' '));
array('kind' => 'text', 'text' => _('Postal address')), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideHomeTelephoneNumber', false, _('Home telephone number'), null, false));
array('kind' => 'text', 'text' => '&nbsp;'), $configContainerOptions->addElement(new htmlOutputText(' '));
array('kind' => 'input', 'name' => 'inetOrgPerson_hideOfficeName', 'type' => 'checkbox'), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideMobileNumber', false, _('Mobile number'), null, false));
array('kind' => 'text', 'text' => _('Office name')), $configContainerOptions->addNewLine();
array('kind' => 'text', 'text' => '&nbsp;'), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideFaxNumber', false, _('Fax number'), null, false));
array('kind' => 'input', 'name' => 'inetOrgPerson_hideRoomNumber', 'type' => 'checkbox'), $configContainerOptions->addElement(new htmlOutputText(' '));
array('kind' => 'text', 'text' => _('Room number')), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideEMailAddress', false, _('Email address'), null, false));
), $configContainerOptions->addElement(new htmlOutputText(' '));
array( $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideJobTitle', false, _('Job title'), null, false));
array('kind' => 'input', 'name' => 'inetOrgPerson_hideTelephoneNumber', 'type' => 'checkbox'), $configContainerOptions->addNewLine();
array('kind' => 'text', 'text' => _('Telephone number')), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideCarLicense', false, _('Car license'), null, false));
array('kind' => 'text', 'text' => '&nbsp;'), $configContainerOptions->addElement(new htmlOutputText(' '));
array('kind' => 'input', 'name' => 'inetOrgPerson_hideHomeTelephoneNumber', 'type' => 'checkbox'), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideEmployeeType', false, _('Employee type'), null, false));
array('kind' => 'text', 'text' => _('Home telephone number')), $configContainerOptions->addElement(new htmlOutputText(' '));
array('kind' => 'text', 'text' => '&nbsp;'), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideBusinessCategory', false, _('Business category'), null, false));
array('kind' => 'input', 'name' => 'inetOrgPerson_hideMobileNumber', 'type' => 'checkbox'), $configContainerOptions->addNewLine();
array('kind' => 'text', 'text' => _('Mobile number')), $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideDepartments', false, _('Department(s)'), null, false));
), $configContainerOptions->addElement(new htmlOutputText(' '));
array( $configContainerOptions->addElement(new htmlTableExtendedInputCheckbox('inetOrgPerson_hideManager', false, _('Manager'), null, false));
array('kind' => 'input', 'name' => 'inetOrgPerson_hideFaxNumber', 'type' => 'checkbox'), $configContainer->addElement($configContainerOptions);
array('kind' => 'text', 'text' => _('Fax number')),
array('kind' => 'text', 'text' => '&nbsp;'),
array('kind' => 'input', 'name' => 'inetOrgPerson_hideEMailAddress', 'type' => 'checkbox'),
array('kind' => 'text', 'text' => _('Email address')),
array('kind' => 'text', 'text' => '&nbsp;'),
array('kind' => 'input', 'name' => 'inetOrgPerson_hideJobTitle', 'type' => 'checkbox'),
array('kind' => 'text', 'text' => _('Job title')),
),
array(
array('kind' => 'input', 'name' => 'inetOrgPerson_hideCarLicense', 'type' => 'checkbox'),
array('kind' => 'text', 'text' => _('Car license')),
array('kind' => 'text', 'text' => '&nbsp;'),
array('kind' => 'input', 'name' => 'inetOrgPerson_hideEmployeeType', 'type' => 'checkbox'),
array('kind' => 'text', 'text' => _('Employee type')),
array('kind' => 'text', 'text' => '&nbsp;'),
array('kind' => 'input', 'name' => 'inetOrgPerson_hideBusinessCategory', 'type' => 'checkbox'),
array('kind' => 'text', 'text' => _('Business category')),
),
array(
array('kind' => 'input', 'name' => 'inetOrgPerson_hideDepartments', 'type' => 'checkbox'),
array('kind' => 'text', 'text' => _('Department(s)')),
array('kind' => 'text', 'text' => '&nbsp;'),
array('kind' => 'input', 'name' => 'inetOrgPerson_hideManager', 'type' => 'checkbox'),
array('kind' => 'text', 'text' => _('Manager')),
),
)),
array('kind' => 'text', 'text' => '&nbsp;'),
array('kind' => 'help', 'value' => 'hiddenOptions'),
)
);
if (isset($_SESSION['conf_config'])) { if (isset($_SESSION['conf_config'])) {
// add password hash type if posixAccount is inactive // add password hash type if posixAccount is inactive
$confActiveUserModules = $_SESSION['conf_config']->get_AccountModules('user'); $confActiveUserModules = $_SESSION['conf_config']->get_AccountModules('user');
if (!in_array('posixAccount', $confActiveUserModules)) { if (!in_array('posixAccount', $confActiveUserModules)) {
$return['config_options']['all'][] = array( $return['config_options']['all'][] = array(
array('kind' => 'text', 'text' => '<b>' . _("Password hash type") . ': &nbsp;</b>'), array('kind' => 'text', 'text' => '<b>' . _("Password hash type") . ': &nbsp;</b>'),
array('kind' => 'select', 'name' => 'posixAccount_pwdHash', 'size' => '1', array('kind' => 'select', 'name' => 'posixAccount_pwdHash', 'size' => '1',
@ -264,6 +235,7 @@ class inetOrgPerson extends baseModule implements passwordService {
array('kind' => 'help', 'value' => 'pwdHash')); array('kind' => 'help', 'value' => 'pwdHash'));
} }
} }
$return['config_options']['all'] = $configContainer;
// upload fields // upload fields
$return['upload_columns'] = array( $return['upload_columns'] = array(
array( array(