diff --git a/preferences/preferences.php b/preferences/preferences.php index f6898d4635..2c7365afd6 100755 --- a/preferences/preferences.php +++ b/preferences/preferences.php @@ -179,6 +179,18 @@ return $s; } + /* for creating different sections with a title */ + function create_section($title='') + { + global $t; + + $t->set_var('row_value',''); + $t->set_var('row_name',''.lang($title).''); + $GLOBALS['phpgw']->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='') { global $t,$prefs;