Public Member Functions | |
| getImg ($sSrc, $sAlt=null, $tOption=null) | |
| getDiv ($sContenu, $tOption=null) | |
| getInput ($sName, $sValue=null, $tOption=null) | |
| getInputRadio ($sName, $sValue=null, $bChecked=false, $tOption=null) | |
| getInputCheckbox ($sName, $sValue=null, $bChecked=false, $tOption=null) | |
| getSelect ($sName, $tSelect, $sValue=null, $tOption=null) | |
| getSelectMultiple ($sName, $tSelect, $tValue=null, $tOption=null) | |
| getTextarea ($sName, $sValue=null, $tOption=null) | |
| getInputDate ($sName, $sValue=null, $tOption=null) | |
| getDateFromInput ($tPost, $sName) | |
plugin_html classe pour generer de l'html
Definition at line 23 of file plugin_html.php.
| getDateFromInput | ( | $tPost, | |
| $sName | |||
| ) |
retourne la date au format YYYY-MM-DD a partir d'un champ inputDate (du meme plugin) public
| array | $tPost | tableau ou chercher ($_POST,$_GET) |
| string | $sName | nom du champ date |
Definition at line 200 of file plugin_html.php.
| getDiv | ( | $sContenu, | |
$tOption = null |
|||
| ) |
retourne le code html d'une div public
| string | $sContenu | contenu de la div |
| array | $tOption | tableau contenant autant d'options a ajouter array('style'=>'border:1px') >> <div style="border:1px"... |
Definition at line 48 of file plugin_html.php.

| getImg | ( | $sSrc, | |
$sAlt = null, |
|||
$tOption = null |
|||
| ) |
retourne le code html d'une image public
| string | $sSrc | path de l'image, par defaut utilisera le path.img configure dans conf/site.php |
| string | $sAlt | texte alternatif |
| array | $tOption | tableau contenant autant d'options a ajouter array('style'=>'border:1px') >> <img style="border:1px"... |
Definition at line 35 of file plugin_html.php.
| getInput | ( | $sName, | |
$sValue = null, |
|||
$tOption = null |
|||
| ) |
retourne le code html d'un input public
| string | $sName | nom du champ input |
| string | $sValue | valeur du champ input |
| array | $tOption | tableau contenant autant d'options a ajouter array('style'=>'border:1px') >> <input style="border:1px"... |
Definition at line 60 of file plugin_html.php.
| getInputCheckbox | ( | $sName, | |
$sValue = null, |
|||
$bChecked = false, |
|||
$tOption = null |
|||
| ) |
retourne le code html d'un input checkbox public
| string | $sName | nom du champ input |
| string | $sValue | valeur du champ input |
| bool | $bChecked | coche ou non |
| array | $tOption | tableau contenant autant d'options a ajouter array('style'=>'border:1px') >> <input style="border:1px"... |
Definition at line 91 of file plugin_html.php.
| getInputDate | ( | $sName, | |
$sValue = null, |
|||
$tOption = null |
|||
| ) |
retourne le code html d'un champ date (en 3 champs) public
| string | $sName | nom du champ date |
| string | $sValue | valeur du champ date au format y-m-d |
| array | $tOption | tableau contenant autant d'options a ajouter array('style'=>'border:1px') >> <input style="border:1px"... |
Definition at line 170 of file plugin_html.php.

| getInputRadio | ( | $sName, | |
$sValue = null, |
|||
$bChecked = false, |
|||
$tOption = null |
|||
| ) |
retourne le code html d'un input radio public
| string | $sName | nom du champ input |
| string | $sValue | valeur du champ input |
| bool | $bChecked | coche ou non |
| array | $tOption | tableau contenant autant d'options a ajouter array('style'=>'border:1px') >> <input style="border:1px"... |
Definition at line 74 of file plugin_html.php.
| getSelect | ( | $sName, | |
| $tSelect, | |||
$sValue = null, |
|||
$tOption = null |
|||
| ) |
retourne le code html d'un select public
| string | $sName | nom du champ select |
| array | $tSelect | tableau key/valeur du select (options) |
| string | $sValue | valeur du champ select |
| array | $tOption | tableau contenant autant d'options a ajouter array('style'=>'border:1px') >> <input style="border:1px"... |
Definition at line 108 of file plugin_html.php.
| getSelectMultiple | ( | $sName, | |
| $tSelect, | |||
$tValue = null, |
|||
$tOption = null |
|||
| ) |
retourne le code html d'un select multiple public
| string | $sName | nom du champ select |
| array | $tSelect | tableau key/valeur du select (options) |
| string | $tValue | valeur du champ select (tableau) |
| array | $tOption | tableau contenant autant d'options a ajouter array('style'=>'border:1px') >> <input style="border:1px"... |
Definition at line 133 of file plugin_html.php.
| getTextarea | ( | $sName, | |
$sValue = null, |
|||
$tOption = null |
|||
| ) |
retourne le code html d'un textarea public
| string | $sName | nom du champ textarea |
| string | $sValue | valeur du champ textarea |
| array | $tOption | tableau contenant autant d'options a ajouter array('style'=>'border:1px') >> <textarea style="border:1px"... |
Definition at line 157 of file plugin_html.php.
1.8.6