dolibarr  16.0.5
mrp.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.'/mrp/class/mo.class.php';
28 require_once DOL_DOCUMENT_ROOT.'/mrp/lib/mrp_mo.lib.php';
29 require_once DOL_DOCUMENT_ROOT.'/mrp/lib/mrp.lib.php';
30 
31 // Load translation files required by the page
32 $langs->loadLangs(array('admin', 'errors', 'mrp', 'other'));
33 
34 if (!$user->admin) {
36 }
37 
38 $action = GETPOST('action', 'aZ09');
39 $value = GETPOST('value', 'alpha');
40 $modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
41 
42 $label = GETPOST('label', 'alpha');
43 $scandir = GETPOST('scan_dir', 'alpha');
44 $type = 'mrp';
45 
46 
47 /*
48  * Actions
49  */
50 
51 include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
52 
53 if ($action == 'updateMask') {
54  $maskconstmrp = GETPOST('maskconstMo', 'alpha');
55  $maskmrp = GETPOST('maskMo', 'alpha');
56 
57  if ($maskconstmrp) {
58  $res = dolibarr_set_const($db, $maskconstmrp, $maskmrp, 'chaine', 0, '', $conf->entity);
59  }
60 
61  if (!($res > 0)) {
62  $error++;
63  }
64 
65  if (!$error) {
66  setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
67  } else {
68  setEventMessages($langs->trans("Error"), null, 'errors');
69  }
70 } elseif ($action == 'specimen') {
71  $modele = GETPOST('module', 'alpha');
72 
73  $mo = new MO($db);
74  $mo->initAsSpecimen();
75 
76  // Search template files
77  $file = ''; $classname = ''; $filefound = 0;
78  $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
79  foreach ($dirmodels as $reldir) {
80  $file = dol_buildpath($reldir."core/modules/mrp/doc/pdf_".$modele.".modules.php", 0);
81  if (file_exists($file)) {
82  $filefound = 1;
83  $classname = "pdf_".$modele;
84  break;
85  }
86  }
87 
88  if ($filefound) {
89  require_once $file;
90 
91  $module = new $classname($db);
92 
93  if ($module->write_file($mo, $langs) > 0) {
94  header("Location: ".DOL_URL_ROOT."/document.php?modulepart=mrp&file=SPECIMEN.pdf");
95  return;
96  } else {
97  setEventMessages($module->error, null, 'errors');
98  dol_syslog($module->error, LOG_ERR);
99  }
100  } else {
101  setEventMessages($langs->trans("ErrorModuleNotFound"), null, 'errors');
102  dol_syslog($langs->trans("ErrorModuleNotFound"), LOG_ERR);
103  }
104 } elseif ($action == 'set') {
105  // Activate a model
106  $ret = addDocumentModel($value, $type, $label, $scandir);
107 } elseif ($action == 'del') {
108  $ret = delDocumentModel($value, $type);
109  if ($ret > 0) {
110  if ($conf->global->MRP_MO_ADDON_PDF == "$value") {
111  dolibarr_del_const($db, 'MRP_MO_ADDON_PDF', $conf->entity);
112  }
113  }
114 } elseif ($action == 'setdoc') {
115  // Set default model
116  if (dolibarr_set_const($db, "MRP_MO_ADDON_PDF", $value, 'chaine', 0, '', $conf->entity)) {
117  // The constant that was read before the new set
118  // We therefore requires a variable to have a coherent view
119  $conf->global->MRP_MO_ADDON_PDF = $value;
120  }
121 
122  // On active le modele
123  $ret = delDocumentModel($value, $type);
124  if ($ret > 0) {
125  $ret = addDocumentModel($value, $type, $label, $scandir);
126  }
127 } elseif ($action == 'setmod') {
128  // TODO Check if numbering module chosen can be activated
129  // by calling method canBeActivated
130 
131  dolibarr_set_const($db, "MRP_MO_ADDON", $value, 'chaine', 0, '', $conf->entity);
132 } elseif ($action == 'set_MRP_MO_DRAFT_WATERMARK') {
133  $draft = GETPOST("MRP_MO_DRAFT_WATERMARK");
134  $res = dolibarr_set_const($db, "MRP_MO_DRAFT_WATERMARK", trim($draft), 'chaine', 0, '', $conf->entity);
135 
136  if (!($res > 0)) {
137  $error++;
138  }
139 
140  if (!$error) {
141  setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
142  } else {
143  setEventMessages($langs->trans("Error"), null, 'errors');
144  }
145 } elseif ($action == 'set_MRP_MO_FREE_TEXT') {
146  $freetext = GETPOST("MRP_MO_FREE_TEXT", 'restricthtml'); // No alpha here, we want exact string
147 
148  $res = dolibarr_set_const($db, "MRP_MO_FREE_TEXT", $freetext, 'chaine', 0, '', $conf->entity);
149 
150  if (!($res > 0)) {
151  $error++;
152  }
153 
154  if (!$error) {
155  setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
156  } else {
157  setEventMessages($langs->trans("Error"), null, 'errors');
158  }
159 }
160 
161 
162 /*
163  * View
164  */
165 
166 $form = new Form($db);
167 
168 $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
169 
170 llxHeader("", $langs->trans("MrpSetupPage"));
171 
172 $linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
173 print load_fiche_titre($langs->trans("MrpSetupPage"), $linkback, 'title_setup');
174 
175 $head = mrpAdminPrepareHead();
176 
177 print dol_get_fiche_head($head, 'settings', $langs->trans("MOs"), -1, 'mrp');
178 
179 /*
180  * MOs Numbering model
181  */
182 
183 print load_fiche_titre($langs->trans("MOsNumberingModules"), '', '');
184 
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/mrp/");
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, 7) == 'mod_mo_' && substr($file, dol_strlen($file) - 3, 3) == 'php') {
204  $file = substr($file, 0, dol_strlen($file) - 4);
205 
206  require_once $dir.$file.'.php';
207 
208  $module = new $file($db);
209 
210  // Show modules according to features level
211  if ($module->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
212  continue;
213  }
214  if ($module->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
215  continue;
216  }
217 
218  if ($module->isEnabled()) {
219  print '<tr class="oddeven"><td>'.$module->name."</td><td>\n";
220  print $module->info();
221  print '</td>';
222 
223  // Show example of numbering model
224  print '<td class="nowrap">';
225  $tmp = $module->getExample();
226  if (preg_match('/^Error/', $tmp)) {
227  $langs->load("errors");
228  print '<div class="error">'.$langs->trans($tmp).'</div>';
229  } elseif ($tmp == 'NotConfigured') {
230  print '<span class="opacitymedium">'.$langs->trans($tmp).'</span>';
231  } else {
232  print $tmp;
233  }
234  print '</td>'."\n";
235 
236  print '<td class="center">';
237  if ($conf->global->MRP_MO_ADDON == $file) {
238  print img_picto($langs->trans("Activated"), 'switch_on');
239  } else {
240  print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setmod&token='.newToken().'&value='.urlencode($file).'">';
241  print img_picto($langs->trans("Disabled"), 'switch_off');
242  print '</a>';
243  }
244  print '</td>';
245 
246  $mrp = new MO($db);
247  $mrp->initAsSpecimen();
248 
249  // Info
250  $htmltooltip = '';
251  $htmltooltip .= ''.$langs->trans("Version").': <b>'.$module->getVersion().'</b><br>';
252  $mrp->type = 0;
253  $nextval = $module->getNextValue($mysoc, $mrp);
254  if ("$nextval" != $langs->trans("NotAvailable")) { // Keep " on nextval
255  $htmltooltip .= ''.$langs->trans("NextValue").': ';
256  if ($nextval) {
257  if (preg_match('/^Error/', $nextval) || $nextval == 'NotConfigured') {
258  $nextval = $langs->trans($nextval);
259  }
260  $htmltooltip .= $nextval.'<br>';
261  } else {
262  $htmltooltip .= $langs->trans($module->error).'<br>';
263  }
264  }
265 
266  print '<td class="center">';
267  print $form->textwithpicto('', $htmltooltip, 1, 0);
268  print '</td>';
269 
270  print "</tr>\n";
271  }
272  }
273  }
274  closedir($handle);
275  }
276  }
277 }
278 print "</table><br>\n";
279 
280 
281 /*
282  * Document templates generators
283  */
284 
285 print load_fiche_titre($langs->trans("MOsModelModule"), '', '');
286 
287 // Load array def with activated templates
288 $def = array();
289 $sql = "SELECT nom";
290 $sql .= " FROM ".MAIN_DB_PREFIX."document_model";
291 $sql .= " WHERE type = '".$db->escape($type)."'";
292 $sql .= " AND entity = ".$conf->entity;
293 $resql = $db->query($sql);
294 if ($resql) {
295  $i = 0;
296  $num_rows = $db->num_rows($resql);
297  while ($i < $num_rows) {
298  $array = $db->fetch_array($resql);
299  array_push($def, $array[0]);
300  $i++;
301  }
302 } else {
303  dol_print_error($db);
304 }
305 
306 
307 print "<table class=\"noborder\" width=\"100%\">\n";
308 print "<tr class=\"liste_titre\">\n";
309 print '<td>'.$langs->trans("Name").'</td>';
310 print '<td>'.$langs->trans("Description").'</td>';
311 print '<td class="center" width="60">'.$langs->trans("Status")."</td>\n";
312 print '<td class="center" width="60">'.$langs->trans("Default")."</td>\n";
313 print '<td class="center" width="38">'.$langs->trans("ShortInfo").'</td>';
314 print '<td class="center" width="38">'.$langs->trans("Preview").'</td>';
315 print "</tr>\n";
316 
317 clearstatcache();
318 
319 foreach ($dirmodels as $reldir) {
320  foreach (array('', '/doc') as $valdir) {
321  $realpath = $reldir."core/modules/mrp".$valdir;
322  $dir = dol_buildpath($realpath);
323 
324  if (is_dir($dir)) {
325  $handle = opendir($dir);
326  if (is_resource($handle)) {
327  while (($file = readdir($handle)) !== false) {
328  $filelist[] = $file;
329  }
330  closedir($handle);
331  arsort($filelist);
332 
333  foreach ($filelist as $file) {
334  if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file)) {
335  if (file_exists($dir.'/'.$file)) {
336  $name = substr($file, 4, dol_strlen($file) - 16);
337  $classname = substr($file, 0, dol_strlen($file) - 12);
338 
339  require_once $dir.'/'.$file;
340  $module = new $classname($db);
341 
342  $modulequalified = 1;
343  if ($module->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
344  $modulequalified = 0;
345  }
346  if ($module->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
347  $modulequalified = 0;
348  }
349 
350  if ($modulequalified) {
351  print '<tr class="oddeven"><td width="100">';
352  print (empty($module->name) ? $name : $module->name);
353  print "</td><td>\n";
354  if (method_exists($module, 'info')) {
355  print $module->info($langs);
356  } else {
357  print $module->description;
358  }
359  print '</td>';
360 
361  // Active
362  if (in_array($name, $def)) {
363  print '<td class="center">'."\n";
364  print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=del&token='.newToken().'&value='.urlencode($name).'">';
365  print img_picto($langs->trans("Enabled"), 'switch_on');
366  print '</a>';
367  print '</td>';
368  } else {
369  print '<td class="center">'."\n";
370  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>';
371  print "</td>";
372  }
373 
374  // Default
375  print '<td class="center">';
376  if ($conf->global->MRP_MO_ADDON_PDF == $name) {
377  print img_picto($langs->trans("Default"), 'on');
378  } else {
379  print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setdoc&token='.newToken().'&value='.urlencode($name).'&scan_dir='.urlencode($module->scandir).'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'off').'</a>';
380  }
381  print '</td>';
382 
383  // Info
384  $htmltooltip = ''.$langs->trans("Name").': '.$module->name;
385  $htmltooltip .= '<br>'.$langs->trans("Type").': '.($module->type ? $module->type : $langs->trans("Unknown"));
386  if ($module->type == 'pdf') {
387  $htmltooltip .= '<br>'.$langs->trans("Width").'/'.$langs->trans("Height").': '.$module->page_largeur.'/'.$module->page_hauteur;
388  }
389  $htmltooltip .= '<br>'.$langs->trans("Path").': '.preg_replace('/^\//', '', $realpath).'/'.$file;
390 
391  $htmltooltip .= '<br><br><u>'.$langs->trans("FeaturesSupported").':</u>';
392  $htmltooltip .= '<br>'.$langs->trans("MultiLanguage").': '.yn($module->option_multilang, 1, 1);
393  $htmltooltip .= '<br>'.$langs->trans("WatermarkOnDraftMOs").': '.yn($module->option_draft_watermark, 1, 1);
394 
395 
396  print '<td class="center">';
397  print $form->textwithpicto('', $htmltooltip, 1, 0);
398  print '</td>';
399 
400  // Preview
401  print '<td class="center">';
402  if ($module->type == 'pdf') {
403  print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.$name.'">'.img_object($langs->trans("Preview"), 'pdf').'</a>';
404  } else {
405  print img_object($langs->trans("PreviewNotAvailable"), 'generic');
406  }
407  print '</td>';
408 
409  print "</tr>\n";
410  }
411  }
412  }
413  }
414  }
415  }
416  }
417 }
418 
419 print '</table>';
420 print "<br>";
421 
422 /*
423  * Other options
424  */
425 
426 print load_fiche_titre($langs->trans("OtherOptions"), '', '');
427 print '<table class="noborder centpercent">';
428 print '<tr class="liste_titre">';
429 print '<td>'.$langs->trans("Parameter").'</td>';
430 print '<td class="center" width="60">'.$langs->trans("Value").'</td>';
431 print "<td>&nbsp;</td>\n";
432 print "</tr>\n";
433 
434 $substitutionarray = pdf_getSubstitutionArray($langs, null, null, 2);
435 $substitutionarray['__(AnyTranslationKey)__'] = $langs->trans("Translation");
436 $htmltext = '<i>'.$langs->trans("AvailableVariables").':<br>';
437 foreach ($substitutionarray as $key => $val) {
438  $htmltext .= $key.'<br>';
439 }
440 $htmltext .= '</i>';
441 
442 print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
443 print '<input type="hidden" name="token" value="'.newToken().'">';
444 print '<input type="hidden" name="action" value="set_MRP_MO_FREE_TEXT">';
445 print '<tr class="oddeven"><td colspan="2">';
446 print $form->textwithpicto($langs->trans("FreeLegalTextOnMOs"), $langs->trans("AddCRIfTooLong").'<br><br>'.$htmltext, 1, 'help', '', 0, 2, 'freetexttooltip').'<br>';
447 $variablename = 'MRP_MO_FREE_TEXT';
448 if (empty($conf->global->PDF_ALLOW_HTML_FOR_FREE_TEXT)) {
449  print '<textarea name="'.$variablename.'" class="flat" cols="120">'.getDolGlobalString($variablename).'</textarea>';
450 } else {
451  include_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
452  $doleditor = new DolEditor($variablename, getDolGlobalString($variablename), '', 80, 'dolibarr_notes');
453  print $doleditor->Create();
454 }
455 print '</td><td class="right">';
456 print '<input type="submit" class="button button-edit" value="'.$langs->trans("Modify").'">';
457 print "</td></tr>\n";
458 print '</form>';
459 
460 //Use draft Watermark
461 
462 print "<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">";
463 print '<input type="hidden" name="token" value="'.newToken().'">';
464 print "<input type=\"hidden\" name=\"action\" value=\"set_MRP_MO_DRAFT_WATERMARK\">";
465 print '<tr class="oddeven"><td>';
466 print $form->textwithpicto($langs->trans("WatermarkOnDraftMOs"), $htmltext, 1, 'help', '', 0, 2, 'watermarktooltip').'<br>';
467 print '</td><td>';
468 print '<input class="flat minwidth200" type="text" name="MRP_MO_DRAFT_WATERMARK" value="'.dol_escape_htmltag(getDolGlobalString('MRP_MO_DRAFT_WATERMARK')).'">';
469 print '</td><td class="right">';
470 print '<input type="submit" class="button button-edit" value="'.$langs->trans("Modify").'">';
471 print "</td></tr>\n";
472 print '</form>';
473 
474 print '</table>';
475 print '<br>';
476 
477 
478 // End of page
479 llxFooter();
480 $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
mrpAdminPrepareHead
mrpAdminPrepareHead()
Prepare admin pages header.
Definition: mrp.lib.php:29
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
$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