add($message, 12); $row->addVerticalSpacer('2rem'); } $box = new htmlResponsiveRow(); if (sizeof($files) > 0) { $box->add(new htmlOutputText(_("Please enter your password to change the server preferences:")), 12); $box->addVerticalSpacer('1.5rem'); $conf = new LAMCfgMain(); $selectedProfile = array(); $profilesExisting = false; $profiles = $files; if (!empty($_COOKIE["lam_default_profile"]) && in_array($_COOKIE["lam_default_profile"], $files)) { $selectedProfile[] = $_COOKIE["lam_default_profile"]; } else { $selectedProfile[] = $conf->default; } $box->add(new htmlResponsiveSelect('filename', $profiles, $selectedProfile, _('Profile name')), 12); $passwordInput = new htmlResponsiveInputField(_('Password'), 'passwd', '', '200'); $passwordInput->setIsPassword(true); $passwordInput->setCSSClasses(array('lam-initial-focus')); $box->add($passwordInput, 12); $box->addVerticalSpacer('1rem'); $button = new htmlButton('submit', _("Ok")); $box->addLabel($button); $box->add(new htmlOutputText(''), 0, 6); $box->addVerticalSpacer('1.5rem'); $box->add(new htmlHorizontalLine(), 12); $box->addVerticalSpacer('1.5rem'); } $manageLink = new htmlLink(_("Manage server profiles"), 'profmanage.php', '../../graphics/tools.png'); $box->add($manageLink, 12, 12, 12, 'text-center'); $boxDiv = new htmlDiv(null, $box); $boxDiv->setCSSClasses(array('ui-corner-all', 'roundedShadowBox', 'limitWidth', 'text-center')); $row->add($boxDiv, 12); // back link $row->addVerticalSpacer('2rem'); $backLink = new htmlLink(_("Back to login"), '../login.php', '../../graphics/undo.png'); $row->add($backLink, 12, 12, 12, 'text-left'); parseHtml(null, new htmlDiv(null, $row, array('centeredTable')), array(), false, $tabindex, 'user'); ?>