FormAdmin
class FormAdmin (View source)
Class to generate html code for admin pages
Properties
| DoliDB | $db | ||
| string | $error |
Methods
Constructor
Return html select list with available languages (key='en_US', value='United States' for example)
Return list of available menus (eldy_backoffice, ...)
Return combo list of available menu families
Return a HTML select list of timezones
Return html select list with available languages (key='en_US', value='United States' for example)
Function to show the combo select to chose a type of field (varchar, int, email, ...)
Details
__construct($db)
Constructor
@param DoliDB|null $db Database handler
select_language($selected = '', string $htmlname = 'lang_id', $showauto = 0, $filter = array(), $showempty = '', $showwarning = 0, $disabled = 0, $morecss = 'minwidth100', $showcode = 0, $forcecombo = 0, $multiselect = 0, $onlykeys = array(), $mainlangonly = 0)
Return html select list with available languages (key='en_US', value='United States' for example)
@param string|string[] $selected Language pre-selected. Can be an array if $multiselect is 1.
select_menu($selected, string $htmlname, $dirmenuarray, $moreattrib = '')
Return list of available menus (eldy_backoffice, ...)
@param string $selected Preselected menu value
select_menu_families($selected, string $htmlname, $dirmenuarray)
Return combo list of available menu families
@param string $selected Menu pre-selected
select_timezone($selected, string $htmlname)
Return a HTML select list of timezones
@param string $selected Menu pre-selectionnee
select_paper_format($selected = '', string $htmlname = 'paperformat_id', $filter = '', $showempty = 0, $forcecombo = 0)
Return html select list with available languages (key='en_US', value='United States' for example)
@param string $selected Paper format pre-selected
string
selectTypeOfFields(string $htmlname, string $type, array<string, string[]> $typewecanchangeinto = array())
Function to show the combo select to chose a type of field (varchar, int, email, ...)