From 1be5a7de812f06e8706d1c83023314f2efc05570 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 2 Jul 2004 15:27:14 +0000 Subject: [PATCH] added tab order --- lam/templates/profedit/profilepage.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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':