show drop-down-box instead of radio buttons

This commit is contained in:
Roland Gruber 2008-12-27 13:47:41 +00:00
parent 3d66a2e843
commit 1ae51dc003
1 changed files with 13 additions and 9 deletions

View File

@ -98,16 +98,20 @@ else {
echo "</b></p>\n"; echo "</b></p>\n";
echo "<form enctype=\"multipart/form-data\" action=\"masscreate.php\" method=\"post\">\n"; echo "<form enctype=\"multipart/form-data\" action=\"masscreate.php\" method=\"post\">\n";
echo "<table style=\"border-color: grey\" cellpadding=\"10\" border=\"2\" cellspacing=\"0\">\n"; echo "<table style=\"border-color: grey\" cellpadding=\"10\" border=\"0\" cellspacing=\"0\">\n";
echo "<tr><td>\n";
echo "<select name=\"type\">\n";
for ($i = 0; $i < sizeof($types); $i++) { for ($i = 0; $i < sizeof($types); $i++) {
echo "<tr>\n"; echo "<option value=\"" . $types[$i] . "\">\n";
echo "<th class=\"" . $types[$i] . "list-sort\" align=\"center\"><input type=\"radio\" name=\"type\" value=\"" . $types[$i] . "\"></th>\n"; echo getTypeAlias($types[$i]);
echo "<th class=\"" . $types[$i] . "list-sort\" align=\"left\">" . getTypeAlias($types[$i]) . "</th>\n"; echo "</option>\n";
echo "</tr>\n";
} }
echo "</select>\n";
echo "</td>\n";
echo "<td>\n";
echo "<input type=\"submit\" name=\"submit\" value=\"". _("Ok") . "\">\n";
echo "</td></tr>\n";
echo "</table>\n"; echo "</table>\n";
echo "<br><br>\n";
echo "&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"submit\" name=\"submit\" value=\"". _("Ok") . "\">\n";
echo "</form>\n"; echo "</form>\n";
echo "</body>\n"; echo "</body>\n";