fixed style of select boxes

This commit is contained in:
Roland Gruber 2008-05-14 20:27:32 +00:00
parent ba4cbba513
commit b8af593db6
2 changed files with 5 additions and 5 deletions

View File

@ -48,7 +48,7 @@ setlanguage();
$types = $_SESSION['config']->get_ActiveTypes(); $types = $_SESSION['config']->get_ActiveTypes();
// check if submit button was pressed // check if submit button was pressed
if ($_POST['submit']) { if (isset($_POST['submit'])) {
// check user input // check user input
for ($i = 0; $i < sizeof($types); $i++) { for ($i = 0; $i < sizeof($types); $i++) {
// new ou // new ou
@ -167,7 +167,7 @@ function display_main() {
echo ("<td><input type=radio name=\"type\" value=\"new_" . $types[$i] . "\"></td>\n"); echo ("<td><input type=radio name=\"type\" value=\"new_" . $types[$i] . "\"></td>\n");
echo ("<td><b>" . _("New organizational unit") . ":</b></td>\n"); echo ("<td><b>" . _("New organizational unit") . ":</b></td>\n");
echo ("<td>&nbsp;</td>\n"); echo ("<td>&nbsp;</td>\n");
echo ("<td><select size=1 name=parentsuff_" . $types[$i] . ">"); echo ("<td><select class=\"" . $types[$i] . "\" size=1 name=parentsuff_" . $types[$i] . ">");
for ($u = 0; $u < sizeof($units); $u++) { for ($u = 0; $u < sizeof($units); $u++) {
echo ("<option>" . $units[$u] . "</option>\n"); echo ("<option>" . $units[$u] . "</option>\n");
} }
@ -182,7 +182,7 @@ function display_main() {
echo ("<td><input type=radio name=\"type\" value=\"del_" . $types[$i] . "\"></td>\n"); echo ("<td><input type=radio name=\"type\" value=\"del_" . $types[$i] . "\"></td>\n");
echo ("<td><b>" . _("Delete organizational unit") . ":</b></td>\n"); echo ("<td><b>" . _("Delete organizational unit") . ":</b></td>\n");
echo ("<td>&nbsp;</td>\n"); echo ("<td>&nbsp;</td>\n");
echo ("<td><select size=1 name=deletename_" . $types[$i] . ">"); echo ("<td><select class=\"" . $types[$i] . "\" size=1 name=deletename_" . $types[$i] . ">");
for ($u = 0; $u < sizeof($units); $u++) { for ($u = 0; $u < sizeof($units); $u++) {
echo ("<option>" . $units[$u] . "</option>\n"); echo ("<option>" . $units[$u] . "</option>\n");
} }

View File

@ -137,7 +137,7 @@ for ($i = 0; $i < sizeof($profileClasses); $i++) {
echo "<input type=\"radio\" name=\"profile\" value=\"edit" . $profileClasses[$i]['scope'] . "\">\n"; echo "<input type=\"radio\" name=\"profile\" value=\"edit" . $profileClasses[$i]['scope'] . "\">\n";
echo "</td>\n"; echo "</td>\n";
echo "<td>\n"; echo "<td>\n";
echo "<select name=\"e_" . $profileClasses[$i]['scope'] . "\" size=1>\n"; echo "<select class=\"" . $profileClasses[$i]['scope'] . "\" name=\"e_" . $profileClasses[$i]['scope'] . "\" size=1>\n";
echo $profileClasses[$i]['profiles']; echo $profileClasses[$i]['profiles'];
echo "</select>\n"; echo "</select>\n";
echo "</td>\n"; echo "</td>\n";
@ -150,7 +150,7 @@ for ($i = 0; $i < sizeof($profileClasses); $i++) {
echo "<input type=\"radio\" name=\"profile\" value=\"del" . $profileClasses[$i]['scope'] . "\">\n"; echo "<input type=\"radio\" name=\"profile\" value=\"del" . $profileClasses[$i]['scope'] . "\">\n";
echo "</td>\n"; echo "</td>\n";
echo "<td>\n"; echo "<td>\n";
echo "<select name=\"d_" . $profileClasses[$i]['scope'] . "\" size=1>\n"; echo "<select class=\"" . $profileClasses[$i]['scope'] . "\" name=\"e_" . $profileClasses[$i]['scope'] . "\" name=\"d_" . $profileClasses[$i]['scope'] . "\" size=1>\n";
echo $profileClasses[$i]['profiles']; echo $profileClasses[$i]['profiles'];
echo "</select>\n"; echo "</select>\n";
echo "</td>\n"; echo "</td>\n";