|
21 | 21 | if (! $res && file_exists("../../main.inc.php")) $res=@include "../../main.inc.php"; |
22 | 22 | if (! $res && file_exists("../../../main.inc.php")) $res=@include "../../../main.inc.php"; |
23 | 23 | if (! $res) die("Include of main fails"); |
24 | | - |
| 24 | +/** |
| 25 | + * @var Conf $conf |
| 26 | + * @var DoliDB $db |
| 27 | + * @var Translate $langs |
| 28 | + * @var User $user |
| 29 | + */ |
25 | 30 | require_once DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php"; |
26 | 31 | require_once DOL_DOCUMENT_ROOT."/core/lib/date.lib.php"; |
27 | 32 | require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php'; |
|
37 | 42 |
|
38 | 43 | $action = GETPOST("action", 'aZ09'); |
39 | 44 |
|
| 45 | +$error = 0; |
| 46 | + |
40 | 47 |
|
41 | 48 | /* |
42 | 49 | * Actions |
|
49 | 56 | $res = dolibarr_set_const($db, 'ECOTAXDEEE_USE_ON_CUSTOMER_ORDER', trim(GETPOST("ECOTAXDEEE_USE_ON_CUSTOMER_ORDER")), 'chaine', 0, '', $conf->entity); |
50 | 57 | $res = dolibarr_set_const($db, 'ECOTAXDEEE_USE_ON_CUSTOMER_INVOICE', trim(GETPOST("ECOTAXDEEE_USE_ON_CUSTOMER_INVOICE")), 'chaine', 0, '', $conf->entity); |
51 | 58 | $res = dolibarr_set_const($db, 'ECOTAXDEEE_LABEL_LINE', trim(GETPOST("ECOTAXDEEE_LABEL_LINE")), 'chaine', 0, '', $conf->entity); |
52 | | - $res = dolibarr_set_const($db, 'ECOTAXDEEE_DOC_FOOTER', trim(GETPOST("ECOTAXDEEE_DOC_FOOTER")), 'chaine', 0, '', $conf->entity); |
| 59 | + $res = dolibarr_set_const($db, 'ECOTAXDEEE_DOC_FOOTER', trim(dol_string_nohtmltag(GETPOST("ECOTAXDEEE_DOC_FOOTER", 'restricthtml'), 2, 'UTF-8', 0, 0)), 'chaine', 0, '', $conf->entity); |
53 | 60 |
|
54 | 61 | $product_wee=$_POST["WEEE_PRODUCT_ID"]; |
55 | 62 | if ($product_wee < 0) { |
|
194 | 201 | print '<tr class="oddeven">'; |
195 | 202 | print "<td>".$langs->trans("ECOTAXDEEE_DOC_FOOTER")." (Dolibarr 3.6+)</td>"; |
196 | 203 | print "<td>"; |
197 | | -$selectedvalue=getDolGlobalString('ECOTAXDEEE_DOC_FOOTER'); |
| 204 | +$selectedvalue = getDolGlobalString('ECOTAXDEEE_DOC_FOOTER'); |
198 | 205 | $doleditor=new DolEditor("ECOTAXDEEE_DOC_FOOTER", $selectedvalue, '', '250', 'dolibarr_details', 'In', 1, 1, 1, ROWS_8, '90%'); |
199 | 206 | $doleditor->Create(0, ''); |
200 | 207 | print '<br>'; |
|
0 commit comments