dolibarr 20.0.0
|
Class to manage building of HTML components. More...
Public Member Functions | |
__construct ($db) | |
Constructor. | |
form_select_status_action ($formname, $selected, $canedit=1, $htmlname='complete', $showempty=0, $onlyselect=0, $morecss='maxwidth100') | |
Show list of action status. | |
showactions ($object, $typeelement, $socid=0, $forceshowtitle=0, $morecss='listactions', $max=0, $moreparambacktopage='', $morehtmlcenter='', $assignedtouser=0) | |
Show list of actions for element. | |
select_type_actions ($selected='', $htmlname='actioncode', $excludetype='', $onlyautoornot=0, $hideinfohelp=0, $multiselect=0, $nooutput=0, $morecss='minwidth300') | |
Output html select list of type of event. | |
Class to manage building of HTML components.
Definition at line 30 of file html.formactions.class.php.
FormActions::__construct | ( | $db | ) |
Constructor.
Definition at line 48 of file html.formactions.class.php.
FormActions::form_select_status_action | ( | $formname, | |
$selected, | |||
$canedit = 1, | |||
$htmlname = 'complete', | |||
$showempty = 0, | |||
$onlyselect = 0, | |||
$morecss = 'maxwidth100' ) |
Show list of action status.
string | $formname | Name of form where select is included |
string | $selected | Preselected value (-1..100) |
int | $canedit | 1=can edit, 0=read only |
string | $htmlname | Name of html prefix for html fields (selectX and valX) |
integer | $showempty | Show an empty line if select is used |
integer | $onlyselect | 0=Standard, 1=Hide percent of completion and force usage of a select list, 2=Same than 1 and add "Incomplete (Todo+Running) |
string | $morecss | More css on select field |
Definition at line 67 of file html.formactions.class.php.
References ajax_combobox(), and dol_escape_js().
FormActions::select_type_actions | ( | $selected = '', | |
$htmlname = 'actioncode', | |||
$excludetype = '', | |||
$onlyautoornot = 0, | |||
$hideinfohelp = 0, | |||
$multiselect = 0, | |||
$nooutput = 0, | |||
$morecss = 'minwidth300' ) |
Output html select list of type of event.
array | string | $selected | Type pre-selected (can be 'manual', 'auto' or 'AC_xxx'). Can be an array too. |
string | $htmlname | Name of select field |
string | $excludetype | A type to exclude ('systemauto', 'system', '') |
integer | $onlyautoornot | 1=Group all type AC_XXX into 1 line AC_MANUAL. 0=Keep details of type, -1=Keep details and add a combined line "All manual", -2=Combined line is disabled (not implemented yet) |
int | $hideinfohelp | 1=Do not show info help, 0=Show, -1=Show+Add info to tell how to set default value |
int | $multiselect | 1=Allow multiselect of action type |
int | $nooutput | 1=No output |
string | $morecss | More css to add to SELECT component. |
Definition at line 361 of file html.formactions.class.php.
References getDolGlobalString(), and info_admin().
FormActions::showactions | ( | $object, | |
$typeelement, | |||
$socid = 0, | |||
$forceshowtitle = 0, | |||
$morecss = 'listactions', | |||
$max = 0, | |||
$moreparambacktopage = '', | |||
$morehtmlcenter = '', | |||
$assignedtouser = 0 ) |
Show list of actions for element.
Object | $object | Object |
string | $typeelement | 'invoice', 'propal', 'order', 'invoice_supplier', 'order_supplier', 'fichinter' |
int | $socid | Socid of user |
int | $forceshowtitle | Show title even if there is no actions to show |
string | $morecss | More css on table |
int | $max | Max number of record |
string | $moreparambacktopage | More param for the backtopage |
string | $morehtmlcenter | More html text on center of title line |
int | $assignedtouser | Assign event by default to this user id (will be ignored if not enough permissions) |
Definition at line 173 of file html.formactions.class.php.
References $object, dol_getdate(), dol_now(), dol_print_date(), dol_print_error(), dolGetButtonTitle(), getTitleFieldOfList(), load_fiche_titre(), newToken(), and setEventMessages().