add(new htmlOutputText(_("Please enter the master password to change the general preferences:")), 12);
$group->addElement($row);
// print message if login was incorrect or no config profiles are present
if (isset($message)) {
$messageField = new htmlStatusMessage('ERROR', $message);
$row = new htmlResponsiveRow();
$row->add($messageField, 12);
$group->addElement($spacer);
$group->addElement($row);
}
$group->addElement($spacer);
// password input
$label = new htmlOutputText(_('Master password'));
$passwordGroup = new htmlGroup();
$passwordField = new htmlInputField('passwd');
$passwordField->setFieldSize(15);
$passwordField->setIsPassword(true);
$passwordField->setCSSClasses(array('lam-initial-focus'));
$passwordGroup->addElement($passwordField);
$passwordGroup->addElement(new htmlHelpLink('236'));
$passwordDiv = new htmlDiv(null, $passwordGroup);
$passwordDiv->setCSSClasses(array('nowrap'));
$row = new htmlResponsiveRow($label, $passwordDiv);
$group->addElement($row);
// button
$group->addElement($spacer);
$okButton = new htmlButton('submit', _("Ok"));
$row = new htmlResponsiveRow();
$row->add($okButton, 12);
$row->setCSSClasses(array(''));
$group->addElement($row);
$div = new htmlDiv(null, $group);
$div->setCSSClasses(array('centeredTable'));
$tabindex = 1;
parseHtml(null, $div, array(), false, $tabindex, 'user');
?>
|
|