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>";
// show available types
echo "<fieldset><legend><b>" . _("Available account types") . "</b></legend>\n";
echo "<table>\n";
for ($i = 0; $i < sizeof($availableTypes); $i++) {
if (sizeof($availableTypes) > 0) {
echo "<fieldset><legend><b>" . _("Available account types") . "</b></legend>\n";
echo "<table>\n";
for ($i = 0; $i < sizeof($availableTypes); $i++) {
echo "<tr>\n";
echo "<td><b>" . getTypeAlias($availableTypes[$i]) . ": </b></td>\n";
echo "<td>" . getTypeDescription($availableTypes[$i]) . "</td>\n";
echo "<td><input type=\"submit\" name=\"add_" . $availableTypes[$i] ."\" value=\"" . _("Add") . "\"></td>\n";
echo "</tr>\n";
}
echo "</table>\n";
echo "</fieldset>\n";
}
echo "</table>\n";
echo "</fieldset>\n";
echo "<p><br><br></p>";
echo "<p><br><br></p>";
}
// show active types
echo "<fieldset><legend><b>" . _("Active account types") . "</b></legend><br>\n";
for ($i = 0; $i < sizeof($activeTypes); $i++) {
if (sizeof($activeTypes) > 0) {
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 "<legend>" . "<b>" . getTypeAlias($activeTypes[$i]) . ": </b>" . getTypeDescription($activeTypes[$i]) . "</legend>";
echo "<br>\n";
@ -222,11 +225,10 @@ for ($i = 0; $i < sizeof($activeTypes); $i++) {
echo "</tr>\n";
echo "</table>\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
echo "<p>";