diff --git a/lam/templates/masscreate.php b/lam/templates/masscreate.php index d35eba95..776229ba 100644 --- a/lam/templates/masscreate.php +++ b/lam/templates/masscreate.php @@ -131,14 +131,17 @@ echo "
\n"; echo "\n"; echo " | \n"; @@ -147,35 +150,36 @@ echo "
\n";
// generate one DIV for each account type
- for ($i = 0; $i < sizeof($types); $i++) {
+ $counter = 0;
+ foreach ($sortedTypes as $type => $label) {
$style = 'style="display:none;"';
- if ((!isset($_POST['type']) && ($i == 0)) || ($_POST['type'] == $types[$i])) {
+ if ((!isset($_POST['type']) && ($counter == 0)) || ($_POST['type'] == $type)) {
// show first account type or last selected one
$style = '';
}
- echo " \n";
+ echo " \n";
echo "
\n";
| |