dolibarr  16.0.5
bom.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2019 Laurent Destailleur <eldy@users.sourceforge.net>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <https://www.gnu.org/licenses/>.
16  */
17 
24 require '../main.inc.php';
25 require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
26 require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
27 require_once DOL_DOCUMENT_ROOT.'/bom/class/bom.class.php';
28 require_once DOL_DOCUMENT_ROOT.'/bom/lib/bom.lib.php';
29 
30 // Load translation files required by the page
31 $langs->loadLangs(array('admin', 'errors', 'mrp', 'other'));
32 
33 if (!$user->admin) {
35 }
36 
37 $action = GETPOST('action', 'aZ09');
38 $value = GETPOST('value', 'alpha');
39 $modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
40 
41 $label = GETPOST('label', 'alpha');
42 $scandir = GETPOST('scan_dir', 'alpha');
43 $type = 'bom';
44 
45 
46 /*
47  * Actions
48  */
49 
50 include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
51 
52 if ($action == 'updateMask') {
53  $maskconstbom = GETPOST('maskconstBom', 'alpha');
54  $maskbom = GETPOST('maskBom', 'alpha');
55 
56  if ($maskconstbom) {
57  $res = dolibarr_set_const($db, $maskconstbom, $maskbom, 'chaine', 0, '', $conf->entity);
58  }
59 
60  if (!($res > 0)) {
61  $error++;
62  }
63 
64  if (!$error) {
65  setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
66  } else {
67  setEventMessages($langs->trans("Error"), null, 'errors');
68  }
69 } elseif ($action == 'specimen') {
70  $modele = GETPOST('module', 'alpha');
71 
72  $bom = new BOM($db);
73  $bom->initAsSpecimen();
74 
75  // Search template files
76  $file = ''; $classname = ''; $filefound = 0;
77  $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
78  foreach ($dirmodels as $reldir) {
79  $file = dol_buildpath($reldir."core/modules/bom/doc/pdf_".$modele.".modules.php", 0);
80  if (file_exists($file)) {
81  $filefound = 1;
82  $classname = "pdf_".$modele;
83  break;
84  }
85  }
86 
87  if ($filefound) {
88  require_once $file;
89 
90  $module = new $classname($db);
91 
92  if ($module->write_file($bom, $langs) > 0) {
93  header("Location: ".DOL_URL_ROOT."/document.php?modulepart=bom&file=SPECIMEN.pdf");
94  return;
95  } else {
96  setEventMessages($module->error, $module->errors, 'errors');
97  dol_syslog($module->error, LOG_ERR);
98  }
99  } else {
100  setEventMessages($langs->trans("ErrorModuleNotFound"), null, 'errors');
101  dol_syslog($langs->trans("ErrorModuleNotFound"), LOG_ERR);
102  }
103 } elseif ($action == 'set') {
104  // Activate a model
105  $ret = addDocumentModel($value, $type, $label, $scandir);
106 } elseif ($action == 'del') {
107  $ret = delDocumentModel($value, $type);
108  if ($ret > 0) {
109  if ($conf->global->BOM_ADDON_PDF == "$value") {
110  dolibarr_del_const($db, 'BOM_ADDON_PDF', $conf->entity);
111  }
112  }
113 } elseif ($action == 'setdoc') {
114  // Set default model
115  if (dolibarr_set_const($db, "BOM_ADDON_PDF", $value, 'chaine', 0, '', $conf->entity)) {
116  // The constant that was read before the new set
117  // We therefore requires a variable to have a coherent view
118  $conf->global->BOM_ADDON_PDF = $value;
119  }
120 
121  // On active le modele
122  $ret = delDocumentModel($value, $type);
123  if ($ret > 0) {
124  $ret = addDocumentModel($value, $type, $label, $scandir);
125  }
126 } elseif ($action == 'setmod') {
127  // TODO Check if numbering module chosen can be activated
128  // by calling method canBeActivated
129 
130  dolibarr_set_const($db, "BOM_ADDON", $value, 'chaine', 0, '', $conf->entity);
131 } elseif ($action == 'set_BOM_DRAFT_WATERMARK') {
132  $draft = GETPOST("BOM_DRAFT_WATERMARK");
133  $res = dolibarr_set_const($db, "BOM_DRAFT_WATERMARK", trim($draft), 'chaine', 0, '', $conf->entity);
134 
135  if (!($res > 0)) {
136  $error++;
137  }
138 
139  if (!$error) {
140  setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
141  } else {
142  setEventMessages($langs->trans("Error"), null, 'errors');
143  }
144 } elseif ($action == 'set_BOM_FREE_TEXT') {
145  $freetext = GETPOST("BOM_FREE_TEXT", 'restricthtml'); // No alpha here, we want exact string
146 
147  $res = dolibarr_set_const($db, "BOM_FREE_TEXT", $freetext, 'chaine', 0, '', $conf->entity);
148 
149  if (!($res > 0)) {
150  $error++;
151  }
152 
153  if (!$error) {
154  setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
155  } else {
156  setEventMessages($langs->trans("Error"), null, 'errors');
157  }
158 }
159 
160 
161 /*
162  * View
163  */
164 
165 $form = new Form($db);
166 
167 $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
168 
169 llxHeader("", $langs->trans("BOMsSetup"));
170 
171 $linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
172 print load_fiche_titre($langs->trans("BOMsSetup"), $linkback, 'title_setup');
173 
174 $head = bomAdminPrepareHead();
175 
176 print dol_get_fiche_head($head, 'settings', $langs->trans("BOMs"), -1, 'bom');
177 
178 /*
179  * Numbering module
180  */
181 
182 print load_fiche_titre($langs->trans("BOMsNumberingModules"), '', '');
183 
184 print '<div class="div-table-responsive-no-min">';
185 print '<table class="noborder centpercent">';
186 print '<tr class="liste_titre">';
187 print '<td>'.$langs->trans("Name").'</td>';
188 print '<td>'.$langs->trans("Description").'</td>';
189 print '<td class="nowrap">'.$langs->trans("Example").'</td>';
190 print '<td class="center" width="60">'.$langs->trans("Status").'</td>';
191 print '<td class="center" width="16">'.$langs->trans("ShortInfo").'</td>';
192 print '</tr>'."\n";
193 
194 clearstatcache();
195 
196 foreach ($dirmodels as $reldir) {
197  $dir = dol_buildpath($reldir."core/modules/bom/");
198 
199  if (is_dir($dir)) {
200  $handle = opendir($dir);
201  if (is_resource($handle)) {
202  while (($file = readdir($handle)) !== false) {
203  if (substr($file, 0, 8) == 'mod_bom_' && substr($file, dol_strlen($file) - 3, 3) == 'php') {
204  $file = substr($file, 0, dol_strlen($file) - 4);
205  $classname = $file;
206 
207  require_once $dir.$file.'.php';
208 
209  $module = new $classname($db);
210 
211  // Show modules according to features level
212  if ($module->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
213  continue;
214  }
215  if ($module->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
216  continue;
217  }
218 
219  if ($module->isEnabled()) {
220  print '<tr class="oddeven"><td>'.$module->name."</td><td>\n";
221  print $module->info();
222  print '</td>';
223 
224  // Show example of numbering module
225  print '<td class="nowrap">';
226  $tmp = $module->getExample();
227  if (preg_match('/^Error/', $tmp)) {
228  $langs->load("errors");
229  print '<div class="error">'.$langs->trans($tmp).'</div>';
230  } elseif ($tmp == 'NotConfigured') {
231  print '<span class="opacitymedium">'.$langs->trans($tmp).'</span>';
232  } else {
233  print $tmp;
234  }
235  print '</td>'."\n";
236 
237  print '<td class="center">';
238  if ($conf->global->BOM_ADDON == $file) {
239  print img_picto($langs->trans("Activated"), 'switch_on');
240  } else {
241  print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setmod&token='.newToken().'&value='.urlencode($file).'">';
242  print img_picto($langs->trans("Disabled"), 'switch_off');
243  print '</a>';
244  }
245  print '</td>';
246 
247  $bom = new BOM($db);
248  $bom->initAsSpecimen();
249 
250  // Info
251  $htmltooltip = '';
252  $htmltooltip .= ''.$langs->trans("Version").': <b>'.$module->getVersion().'</b><br>';
253  $bom->type = 0;
254  $nextval = $module->getNextValue($mysoc, $bom);
255  if ("$nextval" != $langs->trans("NotAvailable")) { // Keep " on nextval
256  $htmltooltip .= ''.$langs->trans("NextValue").': ';
257  if ($nextval) {
258  if (preg_match('/^Error/', $nextval) || $nextval == 'NotConfigured') {
259  $nextval = $langs->trans($nextval);
260  }
261  $htmltooltip .= $nextval.'<br>';
262  } else {
263  $htmltooltip .= $langs->trans($module->error).'<br>';
264  }
265  }
266 
267  print '<td class="center">';
268  print $form->textwithpicto('', $htmltooltip, 1, 0);
269  print '</td>';
270 
271  print "</tr>\n";
272  }
273  }
274  }
275  closedir($handle);
276  }
277  }
278 }
279 print "</table>";
280 print "</div>";
281 
282 
283 /*
284  * Document templates generators
285  */
286 
287 print "<br>\n";
288 print load_fiche_titre($langs->trans("BOMsModelModule"), '', '');
289 
290 // Load array def with activated templates
291 $def = array();
292 $sql = "SELECT nom";
293 $sql .= " FROM ".MAIN_DB_PREFIX."document_model";
294 $sql .= " WHERE type = '".$db->escape($type)."'";
295 $sql .= " AND entity = ".$conf->entity;
296 $resql = $db->query($sql);
297 if ($resql) {
298  $i = 0;
299  $num_rows = $db->num_rows($resql);
300  while ($i < $num_rows) {
301  $array = $db->fetch_array($resql);
302  array_push($def, $array[0]);
303  $i++;
304  }
305 } else {
306  dol_print_error($db);
307 }
308 
309 
310 print '<div class="div-table-responsive-no-min">';
311 print '<table class="noborder centpercent">';
312 print '<tr class="liste_titre">';
313 print '<td>'.$langs->trans("Name").'</td>';
314 print '<td>'.$langs->trans("Description").'</td>';
315 print '<td class="center" width="60">'.$langs->trans("Status")."</td>\n";
316 print '<td class="center" width="60">'.$langs->trans("Default")."</td>\n";
317 print '<td class="center" width="38">'.$langs->trans("ShortInfo").'</td>';
318 print '<td class="center" width="38">'.$langs->trans("Preview").'</td>';
319 print "</tr>\n";
320 
321 clearstatcache();
322 
323 foreach ($dirmodels as $reldir) {
324  foreach (array('', '/doc') as $valdir) {
325  $realpath = $reldir."core/modules/bom".$valdir;
326  $dir = dol_buildpath($realpath);
327 
328  if (is_dir($dir)) {
329  $handle = opendir($dir);
330  if (is_resource($handle)) {
331  while (($file = readdir($handle)) !== false) {
332  $filelist[] = $file;
333  }
334  closedir($handle);
335  arsort($filelist);
336 
337  foreach ($filelist as $file) {
338  if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file)) {
339  if (file_exists($dir.'/'.$file)) {
340  $name = substr($file, 4, dol_strlen($file) - 16);
341  $classname = substr($file, 0, dol_strlen($file) - 12);
342 
343  require_once $dir.'/'.$file;
344  $module = new $classname($db);
345 
346  $modulequalified = 1;
347  if ($module->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
348  $modulequalified = 0;
349  }
350  if ($module->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
351  $modulequalified = 0;
352  }
353 
354  if ($modulequalified) {
355  print '<tr class="oddeven"><td width="100">';
356  print (empty($module->name) ? $name : $module->name);
357  print "</td><td>\n";
358  if (method_exists($module, 'info')) {
359  print $module->info($langs);
360  } else {
361  print $module->description;
362  }
363  print '</td>';
364 
365  // Active
366  if (in_array($name, $def)) {
367  print '<td class="center">'."\n";
368  print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=del&token='.newToken().'&value='.urlencode($name).'">';
369  print img_picto($langs->trans("Enabled"), 'switch_on');
370  print '</a>';
371  print '</td>';
372  } else {
373  print '<td class="center">'."\n";
374  print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=set&token='.newToken().'&value='.urlencode($name).'&scan_dir='.urlencode($module->scandir).'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"), 'switch_off').'</a>';
375  print "</td>";
376  }
377 
378  // Default
379  print '<td class="center">';
380  if ($conf->global->BOM_ADDON_PDF == $name) {
381  print img_picto($langs->trans("Default"), 'on');
382  } else {
383  print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setdoc&token='.newToken().'&value='.urlencode($name).'&scan_dir='.urlencode($module->scandir).'&amp;label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'</a>';
384  }
385  print '</td>';
386 
387  // Info
388  $htmltooltip = ''.$langs->trans("Name").': '.$module->name;
389  $htmltooltip .= '<br>'.$langs->trans("Type").': '.($module->type ? $module->type : $langs->trans("Unknown"));
390  if ($module->type == 'pdf') {
391  $htmltooltip .= '<br>'.$langs->trans("Width").'/'.$langs->trans("Height").': '.$module->page_largeur.'/'.$module->page_hauteur;
392  }
393  $htmltooltip .= '<br>'.$langs->trans("Path").': '.preg_replace('/^\//', '', $realpath).'/'.$file;
394 
395  $htmltooltip .= '<br><br><u>'.$langs->trans("FeaturesSupported").':</u>';
396  $htmltooltip .= '<br>'.$langs->trans("MultiLanguage").': '.yn($module->option_multilang, 1, 1);
397  $htmltooltip .= '<br>'.$langs->trans("WatermarkOnDraftBOMs").': '.yn($module->option_draft_watermark, 1, 1);
398 
399 
400  print '<td class="center">';
401  print $form->textwithpicto('', $htmltooltip, 1, 0);
402  print '</td>';
403 
404  // Preview
405  print '<td class="center">';
406  if ($module->type == 'pdf') {
407  print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.$name.'">'.img_object($langs->trans("Preview"), 'pdf').'</a>';
408  } else {
409  print img_object($langs->trans("PreviewNotAvailable"), 'generic');
410  }
411  print '</td>';
412 
413  print "</tr>\n";
414  }
415  }
416  }
417  }
418  }
419  }
420  }
421 }
422 
423 print '</table>';
424 print '</div>';
425 
426 /*
427  * Other options
428  */
429 
430 print "<br>";
431 print load_fiche_titre($langs->trans("OtherOptions"), '', '');
432 
433 print '<div class="div-table-responsive-no-min">';
434 print '<table class="noborder centpercent">';
435 print '<tr class="liste_titre">';
436 print '<td>'.$langs->trans("Parameter").'</td>';
437 print '<td class="center" width="60">'.$langs->trans("Value").'</td>';
438 print "<td>&nbsp;</td>\n";
439 print "</tr>\n";
440 
441 $substitutionarray = pdf_getSubstitutionArray($langs, null, null, 2);
442 $substitutionarray['__(AnyTranslationKey)__'] = $langs->trans("Translation");
443 $htmltext = '<i>'.$langs->trans("AvailableVariables").':<br>';
444 foreach ($substitutionarray as $key => $val) {
445  $htmltext .= $key.'<br>';
446 }
447 $htmltext .= '</i>';
448 
449 print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
450 print '<input type="hidden" name="token" value="'.newToken().'">';
451 print '<input type="hidden" name="action" value="set_BOM_FREE_TEXT">';
452 print '<tr class="oddeven"><td colspan="2">';
453 print $form->textwithpicto($langs->trans("FreeLegalTextOnBOMs"), $langs->trans("AddCRIfTooLong").'<br><br>'.$htmltext, 1, 'help', '', 0, 2, 'freetexttooltip').'<br>';
454 $variablename = 'BOM_FREE_TEXT';
455 if (empty($conf->global->PDF_ALLOW_HTML_FOR_FREE_TEXT)) {
456  print '<textarea name="'.$variablename.'" class="flat" cols="120">'.getDolGlobalString($variablename).'</textarea>';
457 } else {
458  include_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
459  $doleditor = new DolEditor($variablename, getDolGlobalString($variablename), '', 80, 'dolibarr_notes');
460  print $doleditor->Create();
461 }
462 print '</td><td class="right">';
463 print '<input type="submit" class="button button-edit" value="'.$langs->trans("Modify").'">';
464 print "</td></tr>\n";
465 print '</form>';
466 
467 //Use draft Watermark
468 
469 print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
470 print '<input type="hidden" name="token" value="'.newToken().'">';
471 print '<input type="hidden" name="action" value="set_BOM_DRAFT_WATERMARK">';
472 print '<tr class="oddeven"><td>';
473 print $form->textwithpicto($langs->trans("WatermarkOnDraftBOMs"), $htmltext, 1, 'help', '', 0, 2, 'watermarktooltip').'<br>';
474 print '</td><td>';
475 print '<input class="flat minwidth200" type="text" name="BOM_DRAFT_WATERMARK" value="'.dol_escape_htmltag(getDolGlobalString('BOM_DRAFT_WATERMARK')).'">';
476 print '</td><td class="right">';
477 print '<input type="submit" class="button button-edit" value="'.$langs->trans("Modify").'">';
478 print "</td></tr>\n";
479 print '</form>';
480 
481 print '</table>';
482 print '</div>';
483 print '<br>';
484 
485 
486 // End of page
487 llxFooter();
488 $db->close();
yn
yn($yesno, $case=1, $color=0)
Return yes or no in current language.
Definition: functions.lib.php:6491
llxFooter
llxFooter()
Empty footer.
Definition: wrapper.php:73
dolibarr_del_const
dolibarr_del_const($db, $name, $entity=1)
Delete a constant.
Definition: admin.lib.php:552
load_fiche_titre
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
Definition: functions.lib.php:5204
GETPOST
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
Definition: functions.lib.php:484
dol_print_error
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
Definition: functions.lib.php:4844
dol_buildpath
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
Definition: functions.lib.php:1062
$form
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
Definition: card.php:142
BOM
Class for BOM.
Definition: bom.class.php:34
img_picto
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
Definition: functions.lib.php:3880
delDocumentModel
delDocumentModel($name, $type)
Delete document model used by doc generator.
Definition: admin.lib.php:1894
dol_syslog
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
Definition: functions.lib.php:1603
dol_get_fiche_head
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='')
Show tabs of a record.
Definition: functions.lib.php:1822
getDolGlobalString
if(!function_exists('utf8_encode')) if(!function_exists('utf8_decode')) getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
Definition: functions.lib.php:80
dol_strlen
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
Definition: functions.lib.php:3747
newToken
newToken()
Return the value of token currently saved into session with name 'newtoken'.
Definition: functions.lib.php:10878
dolibarr_set_const
dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
Definition: admin.lib.php:627
addDocumentModel
addDocumentModel($name, $type, $label='', $description='')
Add document model used by doc generator.
Definition: admin.lib.php:1863
Form
Class to manage generation of HTML components Only common components must be here.
Definition: html.form.class.php:52
img_object
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0)
Show a picto called object_picto (generic function)
Definition: functions.lib.php:4211
bomAdminPrepareHead
bomAdminPrepareHead()
Prepare admin pages header.
Definition: bom.lib.php:30
$resql
if(isModEnabled('facture') &&!empty($user->rights->facture->lire)) if((isModEnabled('fournisseur') &&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD) && $user->rights->fournisseur->facture->lire)||(isModEnabled('supplier_invoice') && $user->rights->supplier_invoice->lire)) if(isModEnabled('don') &&!empty($user->rights->don->lire)) if(isModEnabled('tax') &&!empty($user->rights->tax->charges->lire)) if(isModEnabled('facture') &&isModEnabled('commande') && $user->rights->commande->lire &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) $resql
Social contributions to pay.
Definition: index.php:742
pdf_getSubstitutionArray
pdf_getSubstitutionArray($outputlangs, $exclude=null, $object=null, $onlykey=0)
Return array of possible substitutions for PDF content (without external module substitutions).
Definition: pdf.lib.php:737
setEventMessages
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='')
Set event messages in dol_events session object.
Definition: functions.lib.php:8137
accessforbidden
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
Definition: security.lib.php:933
llxHeader
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOCSRFCHECK')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
Definition: wrapper.php:59
DolEditor
Class to manage a WYSIWYG editor.
Definition: doleditor.class.php:30