class FormPropal (View source)

Class to manage generation of HTML components for proposal management

Properties

DoliDB $db
string $error

Methods

__construct(DoliDB $db)

Constructor

selectProposalStatus($selected = '', int $short = 0, $excludedraft = 0, $showempty = 1, $mode = 'customer', $htmlname = 'propal_statut', $morecss = '')

Return combo list of different statuses of a proposal Values are id of table c_propalst

Details

__construct(DoliDB $db)

Constructor

Parameters

DoliDB $db

Database handler

selectProposalStatus($selected = '', int $short = 0, $excludedraft = 0, $showempty = 1, $mode = 'customer', $htmlname = 'propal_statut', $morecss = '')

Return combo list of different statuses of a proposal Values are id of table c_propalst

@param string $selected Preselected value

Parameters

$selected
int $short

Use short labels @param int $excludedraft 0=All status, 1=Exclude draft status @param int $showempty 1=Add empty line @param string $mode 'customer', 'supplier' @param string $htmlname Name of select field @param string $morecss More css @return void

$excludedraft
$showempty
$mode
$htmlname
$morecss