show only fieldsets with input

This commit is contained in:
Roland Gruber 2006-02-03 15:37:59 +00:00
parent 714b756bb2
commit b6868b503a
1 changed files with 56 additions and 54 deletions

View File

@ -168,23 +168,26 @@ echo ("<form action=\"conftypes.php\" method=\"post\">\n");
echo "<h1 align=\"center\">" . _("Account type selection") . "</h1>"; echo "<h1 align=\"center\">" . _("Account type selection") . "</h1>";
// show available types // show available types
echo "<fieldset><legend><b>" . _("Available account types") . "</b></legend>\n"; if (sizeof($availableTypes) > 0) {
echo "<table>\n"; echo "<fieldset><legend><b>" . _("Available account types") . "</b></legend>\n";
for ($i = 0; $i < sizeof($availableTypes); $i++) { echo "<table>\n";
for ($i = 0; $i < sizeof($availableTypes); $i++) {
echo "<tr>\n"; echo "<tr>\n";
echo "<td><b>" . getTypeAlias($availableTypes[$i]) . ": </b></td>\n"; echo "<td><b>" . getTypeAlias($availableTypes[$i]) . ": </b></td>\n";
echo "<td>" . getTypeDescription($availableTypes[$i]) . "</td>\n"; echo "<td>" . getTypeDescription($availableTypes[$i]) . "</td>\n";
echo "<td><input type=\"submit\" name=\"add_" . $availableTypes[$i] ."\" value=\"" . _("Add") . "\"></td>\n"; echo "<td><input type=\"submit\" name=\"add_" . $availableTypes[$i] ."\" value=\"" . _("Add") . "\"></td>\n";
echo "</tr>\n"; echo "</tr>\n";
} }
echo "</table>\n"; echo "</table>\n";
echo "</fieldset>\n"; echo "</fieldset>\n";
echo "<p><br><br></p>"; echo "<p><br><br></p>";
}
// show active types // show active types
echo "<fieldset><legend><b>" . _("Active account types") . "</b></legend><br>\n"; if (sizeof($activeTypes) > 0) {
for ($i = 0; $i < sizeof($activeTypes); $i++) { echo "<fieldset><legend><b>" . _("Active account types") . "</b></legend><br>\n";
for ($i = 0; $i < sizeof($activeTypes); $i++) {
echo "<fieldset class=\"" . $activeTypes[$i] . "edit\">\n"; echo "<fieldset class=\"" . $activeTypes[$i] . "edit\">\n";
echo "<legend>" . "<b>" . getTypeAlias($activeTypes[$i]) . ": </b>" . getTypeDescription($activeTypes[$i]) . "</legend>"; echo "<legend>" . "<b>" . getTypeAlias($activeTypes[$i]) . ": </b>" . getTypeDescription($activeTypes[$i]) . "</legend>";
echo "<br>\n"; echo "<br>\n";
@ -222,11 +225,10 @@ for ($i = 0; $i < sizeof($activeTypes); $i++) {
echo "</tr>\n"; echo "</tr>\n";
echo "</table>\n"; echo "</table>\n";
echo "</fieldset><br>\n"; echo "</fieldset><br>\n";
}
echo "</fieldset>\n";
echo "<p><br><br></p>\n";
} }
echo "</fieldset>\n";
echo "<p><br><br></p>\n";
// submit and abort button // submit and abort button
echo "<p>"; echo "<p>";