| 
    dolibarr 19.0.4
    
   | 
 
Class to manage forms for the module resource. More...
Public Member Functions | |
| __construct ($db) | |
| Constructor.   | |
| select_resource_list ($selected='', $htmlname='fk_resource', $filter='', $showempty=0, $showtype=0, $forcecombo=0, $event=array(), $filterkey='', $outputmode=0, $limit=20, $morecss='', $multiple=false) | |
| Output html form to select a resource.   | |
| select_types_resource ($selected='', $htmlname='type_resource', $filtertype='', $format=0, $empty=0, $noadmininfo=0, $maxlength=0) | |
| Return html list of tickets type.   | |
Class to manage forms for the module resource.
Definition at line 36 of file html.formresource.class.php.
| FormResource::__construct | ( | $db | ) | 
Constructor.
Definition at line 58 of file html.formresource.class.php.
| FormResource::select_resource_list | ( | $selected = '', | |
| $htmlname = 'fk_resource', | |||
| $filter = '', | |||
| $showempty = 0, | |||
| $showtype = 0, | |||
| $forcecombo = 0, | |||
| $event = array(), | |||
| $filterkey = '', | |||
| $outputmode = 0, | |||
| $limit = 20, | |||
| $morecss = '', | |||
| $multiple = false ) | 
Output html form to select a resource.
| int | $selected | Preselected resource id | 
| string | $htmlname | Name of field in form | 
| string | $filter | Optionnal filters criteras (example: 's.rowid <> x') | 
| int | $showempty | Add an empty field | 
| int | $showtype | Show third party type in combolist (customer, prospect or supplier) | 
| int | $forcecombo | Force to use combo box | 
| array | $event | Event options. Example: array(array('method'=>'getContacts', 'url'=>dol_buildpath('/core/ajax/contacts.php',1), 'htmlname'=>'contactid', 'params'=>array('add-customer-contact'=>'disabled'))) | 
| string | $filterkey | Filter on key value | 
| int | $outputmode | 0=HTML select string, 1=Array, 2=without form tag | 
| int | $limit | Limit number of answers | 
| string | $morecss | More css | 
| bool | $multiple | add [] in the name of element and add 'multiple' attribut | 
Definition at line 82 of file html.formresource.class.php.
References ajax_combobox(), dol_print_error(), and getDolGlobalString().
| FormResource::select_types_resource | ( | $selected = '', | |
| $htmlname = 'type_resource', | |||
| $filtertype = '', | |||
| $format = 0, | |||
| $empty = 0, | |||
| $noadmininfo = 0, | |||
| $maxlength = 0 ) | 
Return html list of tickets type.
| string | $selected | Id du type pre-selectionne | 
| string | $htmlname | Nom de la zone select | 
| string | $filtertype | To filter on field type in llx_c_ticket_type (array('code'=>xx,'label'=>zz)) | 
| int | $format | 0=id+libelle, 1=code+code, 2=code+libelle, 3=id+code | 
| int | $empty | 1=peut etre vide, 0 sinon | 
| int | $noadmininfo | 0=Add admin info, 1=Disable admin info | 
| int | $maxlength | Max length of label | 
Definition at line 178 of file html.formresource.class.php.
References dol_syslog(), dol_trunc(), and info_admin().