Created function create_subsection() in preferences.php

This commit is contained in:
viniciuscb 2005-06-18 21:06:58 +00:00
parent 0a28f3812e
commit c041ef19b1

View File

@ -187,12 +187,24 @@
{ {
global $t; global $t;
$t->set_var('row_value',''); $t->set_var('row_value','');
$t->set_var('row_name','<span class="prefSection">'.lang($title).'</span>'); $t->set_var('row_name','<span class="prefSection">'.lang($title).'</span>');
$GLOBALS['egw']->nextmatchs->template_alternate_row_color($t); $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','<span class="prefSubSection">'.lang($title).'</span>');
$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) function create_select_box($label,$name,$values,$help='',$default='',$run_lang=True)
{ {