use meta HTML

This commit is contained in:
Roland Gruber 2012-09-08 10:09:23 +00:00
parent 7ba7d21b7f
commit 2f06572003
1 changed files with 22 additions and 15 deletions

View File

@ -142,23 +142,30 @@ echo $_SESSION['header'];
<td style="border-style:none" rowspan="4" width="20"></td> <td style="border-style:none" rowspan="4" width="20"></td>
<td style="border-style:none" align="center"> <td style="border-style:none" align="center">
<?php <?php
$conf = new LAMCfgMain();
$group = new htmlTable();
$profiles = array();
$selectedProfile = array();
$fieldsEnabled = false;
if (sizeof($files) > 0) { if (sizeof($files) > 0) {
echo "<select size=1 name=\"filename\">\n"; $profiles = $files;
$conf = new LAMCfgMain(); $selectedProfile[] = $conf->default;
$defaultprofile = $conf->default; $fieldsEnabled = true;
for ($i = 0; $i < sizeof($files); $i++) {
if ($files[$i] == $defaultprofile) echo ("<option selected>" . $files[$i] . "</option>\n");
else echo ("<option>" . $files[$i] . "</option>\n");
}
echo "</select>\n";
} }
else echo "<select disabled size=1 name=\"filename\">\n<option></option>\n</select>\n"; $select = new htmlSelect('filename', $profiles, $selectedProfile);
if (sizeof($files) > 0) echo "<input type=\"password\" name=\"passwd\">\n"; $select->setIsEnabled($fieldsEnabled);
else echo "<input disabled type=\"password\" name=\"passwd\">\n"; $group->addElement($select);
if (sizeof($files) > 0) echo "<button type=\"submit\" id=\"submitButton\" class=\"smallPadding\" name=\"submit\">" . _("Ok") . "</button>\n"; $passwordField = new htmlInputField('passwd');
else echo "<button type=\"submit\" id=\"submitButton\" class=\"smallPadding\" name=\"submit\" disabled>" . _("Ok") . "</button>&nbsp;\n"; $passwordField->setIsPassword(true);
// help link $passwordField->setIsEnabled($fieldsEnabled);
printHelpLink(getHelp('', '200'), '200'); $passwordField->setFieldSize(20);
$group->addElement($passwordField);
$button = new htmlButton('submit', _("Ok"));
$button->setIsEnabled($fieldsEnabled);
$group->addElement($button);
$group->addElement(new htmlHelpLink('200'));
$tabindex = 1;
parseHtml(null, $group, array(), false, $tabindex, 'user');
?> ?>
</td> </td>
<td style="border-style:none" rowspan="4" width="20"></td> <td style="border-style:none" rowspan="4" width="20"></td>