diff --git a/lam/templates/profedit/profilepage.php b/lam/templates/profedit/profilepage.php index 76ca172e..a9fb8b4f 100644 --- a/lam/templates/profedit/profilepage.php +++ b/lam/templates/profedit/profilepage.php @@ -86,13 +86,16 @@ foreach ($_SESSION['ldap']->search_units($rootsuffix) as $suffix) { if (sizeof($suffixes) > 0) { echo "
\n" . _("LDAP suffix") . "\n"; echo _("LDAP suffix") . ":  "; - echo ""; for ($i = 0; $i < sizeof($suffixes); $i++) echo "\n"; echo "\n"; echo "  " . _('Help') . "\n"; echo "
\n
\n"; } +// index for tab order (1 is LDAP suffix) +$tabindex = 2; + // display module options $modules = array_keys($options); for ($m = 0; $m < sizeof($modules); $m++) { @@ -148,6 +151,7 @@ echo ("\n"); * @param array $old_options a hash array with the values from the loaded profile */ function print_option($values, $modulename, $old_options) { + global $tabindex; switch ($values['kind']) { // text value case 'text': @@ -161,7 +165,7 @@ function print_option($values, $modulename, $old_options) { case 'input': if (($values['type'] == 'text') || ($values['type'] == 'checkbox')) { if ($values['type'] == 'text') { - $output = "\n"; + echo "\n"; + echo "\n"; + $tabindex++; break; // subtable case 'table':