dolibarr 20.0.2
|
Class to manage generation of HTML components for contract module. More...
Public Member Functions | |
__construct ($db) | |
Constructor. | |
selectExpensereportStatus ($selected=0, $htmlname='fk_statut', $useempty=1, $useshortlabel=0, $morecss='') | |
Return the combobox for the different statuses of an expense report The list values are the ids from the labelStatus. | |
selectTypeExpenseReport ($selected=0, $htmlname='type', $showempty=0, $active=1) | |
Return list of types of notes with select value = id. | |
Class to manage generation of HTML components for contract module.
Definition at line 28 of file html.formexpensereport.class.php.
FormExpenseReport::__construct | ( | $db | ) |
Constructor.
Definition at line 46 of file html.formexpensereport.class.php.
FormExpenseReport::selectExpensereportStatus | ( | $selected = 0, | |
$htmlname = 'fk_statut', | |||
$useempty = 1, | |||
$useshortlabel = 0, | |||
$morecss = '' ) |
Return the combobox for the different statuses of an expense report The list values are the ids from the labelStatus.
int | $selected | preselect status |
string | $htmlname | Name of HTML select |
int | $useempty | 1=Add empty line |
int | $useshortlabel | Use short labels |
string | $morecss | More CSS |
Definition at line 63 of file html.formexpensereport.class.php.
References ajax_combobox().
FormExpenseReport::selectTypeExpenseReport | ( | $selected = 0, | |
$htmlname = 'type', | |||
$showempty = 0, | |||
$active = 1 ) |
Return list of types of notes with select value = id.
int | $selected | Preselected type |
string | $htmlname | Name of field in form |
int | $showempty | Add an empty field |
int | $active | 1=Active only, 0=Unactive only, -1=All |
Definition at line 102 of file html.formexpensereport.class.php.
References ajax_combobox().