dolibarr
x.y.z
|
Class to generate html code for admin pages. More...
Public Member Functions | |
__construct ($db) | |
Constructor. More... | |
select_language ($selected='', $htmlname='lang_id', $showauto=0, $filter=null, $showempty='', $showwarning=0, $disabled=0, $morecss='', $showcode=0, $forcecombo=0, $multiselect=0, $onlykeys=null, $mainlangonly=0) | |
Return html select list with available languages (key='en_US', value='United States' for example) More... | |
select_menu ($selected, $htmlname, $dirmenuarray, $moreattrib='') | |
Return list of available menus (eldy_backoffice, ...) More... | |
select_menu_families ($selected, $htmlname, $dirmenuarray) | |
Return combo list of available menu families. More... | |
select_timezone ($selected, $htmlname) | |
Return a HTML select list of timezones. More... | |
select_paper_format ($selected='', $htmlname='paperformat_id', $filter=0, $showempty=0, $forcecombo=0) | |
Return html select list with available languages (key='en_US', value='United States' for example) More... | |
Class to generate html code for admin pages.
Definition at line 30 of file html.formadmin.class.php.
FormAdmin::__construct | ( | $db | ) |
FormAdmin::select_language | ( | $selected = '' , |
|
$htmlname = 'lang_id' , |
|||
$showauto = 0 , |
|||
$filter = null , |
|||
$showempty = '' , |
|||
$showwarning = 0 , |
|||
$disabled = 0 , |
|||
$morecss = '' , |
|||
$showcode = 0 , |
|||
$forcecombo = 0 , |
|||
$multiselect = 0 , |
|||
$onlykeys = null , |
|||
$mainlangonly = 0 |
|||
) |
Return html select list with available languages (key='en_US', value='United States' for example)
string | array | $selected | Language pre-selected. Can be an array if $multiselect is 1. |
string | $htmlname | Name of HTML select |
int | $showauto | Show 'auto' choice |
array | $filter | Array of keys to exclude in list (opposite of $onlykeys) |
string | $showempty | '1'=Add empty value or 'string to show' |
int | $showwarning | Show a warning if language is not complete |
int | $disabled | Disable edit of select |
string | $morecss | Add more css styles |
int | $showcode | 1=Add language code into label at begining, 2=Add language code into label at end |
int | $forcecombo | Force to use combo box (so no ajax beautify effect) |
int | $multiselect | Make the combo a multiselect |
array | $onlykeys | Array of language keys to restrict list with the following keys (opposite of $filter). Example array('fr', 'es', ...) |
int | $mainlangonly | 1=Show only main languages ('fr_FR' no' fr_BE', 'es_ES' not 'es_MX', ...) |
Definition at line 65 of file html.formadmin.class.php.
FormAdmin::select_menu | ( | $selected, | |
$htmlname, | |||
$dirmenuarray, | |||
$moreattrib = '' |
|||
) |
Return list of available menus (eldy_backoffice, ...)
string | $selected | Preselected menu value |
string | $htmlname | Name of html select |
array | $dirmenuarray | Array of directories to scan |
string | $moreattrib | More attributes on html select tag |
Definition at line 175 of file html.formadmin.class.php.
FormAdmin::select_menu_families | ( | $selected, | |
$htmlname, | |||
$dirmenuarray | |||
) |
Return combo list of available menu families.
string | $selected | Menu pre-selected |
string | $htmlname | Name of html select |
string[] | $dirmenuarray | Directories to scan |
Definition at line 280 of file html.formadmin.class.php.
FormAdmin::select_paper_format | ( | $selected = '' , |
|
$htmlname = 'paperformat_id' , |
|||
$filter = 0 , |
|||
$showempty = 0 , |
|||
$forcecombo = 0 |
|||
) |
Return html select list with available languages (key='en_US', value='United States' for example)
string | $selected | Paper format pre-selected |
string | $htmlname | Name of HTML select field |
string | $filter | Value to filter on code |
int | $showempty | Add empty value |
int | $forcecombo | Force to load all values and output a standard combobox (with no beautification) |
Definition at line 417 of file html.formadmin.class.php.
FormAdmin::select_timezone | ( | $selected, | |
$htmlname | |||
) |
Return a HTML select list of timezones.
string | $selected | Menu pre-selectionnee |
string | $htmlname | Nom de la zone select |
Definition at line 359 of file html.formadmin.class.php.