dolibarr 21.0.0-alpha
FormExpenseReport Class Reference

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.
 

Detailed Description

Class to manage generation of HTML components for contract module.

Definition at line 28 of file html.formexpensereport.class.php.

Constructor & Destructor Documentation

◆ __construct()

FormExpenseReport::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 46 of file html.formexpensereport.class.php.

Member Function Documentation

◆ selectExpensereportStatus()

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.

Parameters
int$selectedpreselect status
string$htmlnameName of HTML select
int$useempty1=Add empty line
int$useshortlabelUse short labels
string$morecssMore CSS
Returns
string HTML select with status

Definition at line 63 of file html.formexpensereport.class.php.

References ajax_combobox().

◆ selectTypeExpenseReport()

FormExpenseReport::selectTypeExpenseReport ( $selected = 0,
$htmlname = 'type',
$showempty = 0,
$active = 1 )

Return list of types of notes with select value = id.

Parameters
int$selectedPreselected type
string$htmlnameName of field in form
int$showemptyAdd an empty field
int$active1=Active only, 0=Unactive only, -1=All
Returns
string Select html

Definition at line 102 of file html.formexpensereport.class.php.

References ajax_combobox().


The documentation for this class was generated from the following file: