From 0d039028d1f3bb129e218afc52488d47024498f7 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 23 Jul 2004 14:12:29 +0000 Subject: [PATCH] made tabindex parameter of print_option() --- lam/templates/profedit/profilepage.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lam/templates/profedit/profilepage.php b/lam/templates/profedit/profilepage.php index 7b3240d7..28a8c72a 100644 --- a/lam/templates/profedit/profilepage.php +++ b/lam/templates/profedit/profilepage.php @@ -112,7 +112,7 @@ for ($m = 0; $m < sizeof($modules); $m++) { if (isset($options[$modules[$m]][$l][$o]['colspan'])) echo " colspan=\"" . $options[$modules[$m]][$l][$o]['colspan'] . "\""; if (isset($options[$modules[$m]][$l][$o]['rowspan'])) echo " rowspan=\"" . $options[$modules[$m]][$l][$o]['rowspan'] . "\""; echo ">"; - print_option($options[$modules[$m]][$l][$o], $modules[$m], $old_options); + print_option($options[$modules[$m]][$l][$o], $modules[$m], $old_options, $tabindex); echo "\n"; } echo "\n"; @@ -153,9 +153,9 @@ echo ("\n"); * @param array $values an array formated as module option * @param string $module_name the name of the module the options belong to * @param array $old_options a hash array with the values from the loaded profile +* @param integer $tabindex current value for tabulator order */ -function print_option($values, $modulename, $old_options) { - global $tabindex; +function print_option($values, $modulename, $old_options, &$tabindex) { switch ($values['kind']) { // text value case 'text': @@ -235,7 +235,7 @@ function print_option($values, $modulename, $old_options) { echo "\n"; for ($o = 0; $o < sizeof($values['value'][$l]); $o++) { // line parts echo ""; - print_option($values['value'][$l][$o], $values['value'], $old_options); + print_option($values['value'][$l][$o], $values['value'], $old_options, $tabindex); echo "\n"; } echo "\n";