FormWebsite
class FormWebsite (View source)
Class to manage component html for module website
Properties
| string | $error | ||
| int | $num |
Methods
Return HTML select list of websites
Return a HTML select list of type of containers from the dictionary
Return a HTML select list of samples of containers content
Return a HTML select list of containers of a website.
Return HTML code for selection of page layout
Details
__construct(DoliDB $db)
Constructor
selectWebsite($selected = '', string $htmlname = 'exportmodelid', $useempty = 0)
Return HTML select list of websites
@param string $selected Id modele pre-selectionne
selectTypeOfContainer($htmlname, string $selected = '', $useempty = 0, $moreattrib = '', $addjscombo = 0, $morecss = 'minwidth200')
Return a HTML select list of type of containers from the dictionary
@param string $htmlname Name of select zone
selectSampleOfContainer($htmlname, string $selected = '', $useempty = 0, $moreattrib = '', $addjscombo = 0, $morecss = 'minwidth200')
Return a HTML select list of samples of containers content
@param string $htmlname Name of select zone
selectContainer(Website $website, $htmlname = 'pageid', $pageid = 0, $showempty = 0, $action = '', $morecss = 'minwidth200', $excludeids = null)
Return a HTML select list of containers of a website.
Note: $website->lines must have been loaded.
string
getContentPageTemplate(string $htmlContent = 'message')
Return HTML code for selection of page layout