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
if (sizeof($files) > 0) {
echo "<select size=1 name=\"filename\">\n";
$conf = new LAMCfgMain(); $conf = new LAMCfgMain();
$defaultprofile = $conf->default; $group = new htmlTable();
for ($i = 0; $i < sizeof($files); $i++) { $profiles = array();
if ($files[$i] == $defaultprofile) echo ("<option selected>" . $files[$i] . "</option>\n"); $selectedProfile = array();
else echo ("<option>" . $files[$i] . "</option>\n"); $fieldsEnabled = false;
if (sizeof($files) > 0) {
$profiles = $files;
$selectedProfile[] = $conf->default;
$fieldsEnabled = true;
} }
echo "</select>\n"; $select = new htmlSelect('filename', $profiles, $selectedProfile);
} $select->setIsEnabled($fieldsEnabled);
else echo "<select disabled size=1 name=\"filename\">\n<option></option>\n</select>\n"; $group->addElement($select);
if (sizeof($files) > 0) echo "<input type=\"password\" name=\"passwd\">\n"; $passwordField = new htmlInputField('passwd');
else echo "<input disabled type=\"password\" name=\"passwd\">\n"; $passwordField->setIsPassword(true);
if (sizeof($files) > 0) echo "<button type=\"submit\" id=\"submitButton\" class=\"smallPadding\" name=\"submit\">" . _("Ok") . "</button>\n"; $passwordField->setIsEnabled($fieldsEnabled);
else echo "<button type=\"submit\" id=\"submitButton\" class=\"smallPadding\" name=\"submit\" disabled>" . _("Ok") . "</button>&nbsp;\n"; $passwordField->setFieldSize(20);
// help link $group->addElement($passwordField);
printHelpLink(getHelp('', '200'), '200'); $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>