|
dolibarr 24.0.0-beta
|
Class to manage generation of HTML components for contract module. More...
Public Member Functions | |
| __construct ($db) | |
| Constructor. | |
| select_contract ($socid=-1, $selected=0, $htmlname='contrattid', $maxlength=16, $showempty=1, $showRef=0, $noouput=0, $morecss='minwidth150') | |
| Show a combo list with contracts qualified for a third party TODO This is a bugged function. | |
| formSelectContract ($page, $socid=-1, $selected=0, $htmlname='contrattid', $maxlength=16, $showempty=1, $showRef=0, $nooutput=0) | |
| Show a form to select a contract. | |
Class to manage generation of HTML components for contract module.
Definition at line 29 of file html.formcontract.class.php.
| FormContract::__construct | ( | $db | ) |
Constructor.
Definition at line 47 of file html.formcontract.class.php.
| FormContract::formSelectContract | ( | $page, | |
| $socid = -1, | |||
| $selected = 0, | |||
| $htmlname = 'contrattid', | |||
| $maxlength = 16, | |||
| $showempty = 1, | |||
| $showRef = 0, | |||
| $nooutput = 0 ) |
Show a form to select a contract.
| string | $page | Page |
| int | $socid | Id third party (-1=all, 0=only contracts not linked to a third party, id=contracts not linked or linked to third party id) |
| int | $selected | Id contract preselected |
| string | $htmlname | Nom de la zone html |
| int | $maxlength | Maximum length of label |
| int | $showempty | Show empty line |
| int | $showRef | Show customer and supplier reference on each contract (when found) |
| int<0,1> | $nooutput 1=Return the output instead of display |
Definition at line 198 of file html.formcontract.class.php.
References select_contract().
| FormContract::select_contract | ( | $socid = -1, | |
| $selected = 0, | |||
| $htmlname = 'contrattid', | |||
| $maxlength = 16, | |||
| $showempty = 1, | |||
| $showRef = 0, | |||
| $noouput = 0, | |||
| $morecss = 'minwidth150' ) |
Show a combo list with contracts qualified for a third party TODO This is a bugged function.
It downloads all contracts into the select hanging the browser on large database. To allow its use, you must set the constant CONTRACT_CAN_USE_THE_BUGGED_SELECT_COMPONENT.
| int | $socid | Id third party (-1=all, 0=only contracts not linked to a third party, id=contracts not linked or linked to third party id) |
| int | $selected | Id contract preselected |
| string | $htmlname | Nom de la zone html |
| int | $maxlength | Maximum length of label |
| int | $showempty | Show empty line |
| int | $showRef | Show customer and supplier reference on each contract (when found) |
| int | $noouput | 1=Return the output instead of display |
| string | $morecss | More CSS |
Definition at line 69 of file html.formcontract.class.php.
References $conf, ajax_combobox(), dol_print_error(), dol_syslog(), dol_trunc(), getDolGlobalInt(), and getDolGlobalString().
Referenced by formSelectContract().