dolibarr 18.0.6
FormExpenseReport Class Reference

Class to manage generation of HTML components for contract module. More...

Public Member Functions

 __construct ($db)
 Constructor.
 
 selectExpensereportStatus ($selected='', $htmlname='fk_statut', $useempty=1, $useshortlabel=0)
 Retourne la liste deroulante des differents etats d'une note de frais.
 
 selectTypeExpenseReport ($selected='', $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 = '',
$htmlname = 'fk_statut',
$useempty = 1,
$useshortlabel = 0 )

Retourne la liste deroulante des differents etats d'une note de frais.

Les valeurs de la liste sont les id de la table c_expensereport_statuts

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

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

References ajax_combobox().

◆ selectTypeExpenseReport()

FormExpenseReport::selectTypeExpenseReport ( $selected = '',
$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 100 of file html.formexpensereport.class.php.

References ajax_combobox().


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