From 2c520f82db288ba0c12bdcf7c9ec561ae7341dba Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 23 Jun 2004 19:14:07 +0000 Subject: [PATCH] added options --- lam/templates/profedit/profilepage.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lam/templates/profedit/profilepage.php b/lam/templates/profedit/profilepage.php index 83af6b7b..03e1954b 100644 --- a/lam/templates/profedit/profilepage.php +++ b/lam/templates/profedit/profilepage.php @@ -86,7 +86,11 @@ for ($m = 0; $m < sizeof($modules); $m++) { for ($l = 0; $l < sizeof($options[$modules[$m]]); $l++) { // option lines echo "\n"; for ($o = 0; $o < sizeof($options[$modules[$m]][$l]); $o++) { // line parts - echo ""; + echo ""; print_option($options[$modules[$m]][$l][$o], $modules[$m], $old_options); echo "\n"; } @@ -94,10 +98,10 @@ for ($m = 0; $m < sizeof($modules); $m++) { } echo "\n"; echo "\n"; + echo "
"; } // profile name and submit/abort buttons -echo "

 

"; echo ("\n"); echo ("\n"); echo ("\n"); @@ -164,6 +168,7 @@ function print_option($values, $modulename, $old_options) { break; // select box case 'select': + if (! is_numeric($values['size'])) $values['size'] = 1;// correct size if needed if ($values['multiple']) { echo "
" . _("Profile name") . ":