dolibarr 21.0.0-beta
mails_templates.php File Reference

Page to administer emails templates. More...

Go to the source code of this file.

Functions

 fieldList ($fieldlist, $obj=null, $tabname='', $context='')
 Show fields in insert/edit mode.
 

Detailed Description

Page to administer emails templates.

Definition in file mails_templates.php.

Function Documentation

◆ fieldList()

fieldList ( $fieldlist,
$obj = null,
$tabname = '',
$context = '' )

Show fields in insert/edit mode.

Parameters
array<int|string,null|int|float|string>$fieldlist Array of fields and their values
?Object$objIf we show a particular record, obj is filled with record fields
string$tabnameName of SQL table
string$context'add'=Output field for the "add form", 'edit'=Output field for the "edit form", 'preview'=show in readonly the template, 'hide'=Output field for the "add form" but we don't want it to be rendered
Returns
void

Definition at line 1400 of file mails_templates.php.

References $context, getDolGlobalInt(), GETPOST(), and GETPOSTINT().