diff --git a/preferences/preferences.php b/preferences/preferences.php index 79aeab5eea..187f82dd07 100755 --- a/preferences/preferences.php +++ b/preferences/preferences.php @@ -187,12 +187,24 @@ { global $t; - $t->set_var('row_value',''); - $t->set_var('row_name',''.lang($title).''); - $GLOBALS['egw']->nextmatchs->template_alternate_row_color($t); + $t->set_var('row_value',''); + $t->set_var('row_name',''.lang($title).''); + $GLOBALS['egw']->nextmatchs->template_alternate_row_color($t); - $t->fp('rows',process_help($help) ? 'help_row' : 'row',True); - } + $t->fp('rows',process_help($help) ? 'help_row' : 'row',True); + } + + /* for creating different sections with a title */ + function create_subsection($title='') + { + global $t; + + $t->set_var('row_value',''); + $t->set_var('row_name',''.lang($title).''); + $GLOBALS['egw']->nextmatchs->template_alternate_row_color($t); + + $t->fp('rows',process_help($help) ? 'help_row' : 'row',True); + } function create_select_box($label,$name,$values,$help='',$default='',$run_lang=True) {