dolibarr  16.0.5
expedition.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2003-2008 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
4  * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
5  * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
6  * Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
7  * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
8  * Copyright (C) 2011-2012 Juanjo Menent <jmenent@2byte.es>
9  * Copyright (C) 2011-2018 Philippe Grand <philippe.grand@atoo-net.com>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 3 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program. If not, see <https://www.gnu.org/licenses/>.
23  */
24 
31 require '../main.inc.php';
32 require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
33 require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
34 require_once DOL_DOCUMENT_ROOT.'/core/lib/expedition.lib.php';
35 require_once DOL_DOCUMENT_ROOT.'/expedition/class/expedition.class.php';
36 
37 // Load translation files required by the page
38 $langs->loadLangs(array("admin", "sendings", "deliveries", "other"));
39 
40 if (!$user->admin) {
42 }
43 
44 $action = GETPOST('action', 'aZ09');
45 $value = GETPOST('value', 'alpha');
46 $modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
47 
48 $label = GETPOST('label', 'alpha');
49 $scandir = GETPOST('scan_dir', 'alpha');
50 $type = 'shipping';
51 
52 if (empty($conf->global->EXPEDITION_ADDON_NUMBER)) {
53  $conf->global->EXPEDITION_ADDON_NUMBER = 'mod_expedition_safor';
54 }
55 
56 
57 /*
58  * Actions
59  */
60 
61 include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
62 
63 if ($action == 'updateMask') {
64  $maskconst = GETPOST('maskconstexpedition', 'alpha');
65  $maskvalue = GETPOST('maskexpedition', 'alpha');
66  if (!empty($maskconst)) {
67  $res = dolibarr_set_const($db, $maskconst, $maskvalue, 'chaine', 0, '', $conf->entity);
68  }
69 
70  if (isset($res)) {
71  if ($res > 0) {
72  setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
73  } else {
74  setEventMessages($langs->trans("Error"), null, 'errors');
75  }
76  }
77 } elseif ($action == 'set_param') {
78  $freetext = GETPOST('SHIPPING_FREE_TEXT', 'restricthtml'); // No alpha here, we want exact string
79  $res = dolibarr_set_const($db, "SHIPPING_FREE_TEXT", $freetext, 'chaine', 0, '', $conf->entity);
80  if ($res <= 0) {
81  $error++;
82  setEventMessages($langs->trans("Error"), null, 'errors');
83  }
84 
85  $draft = GETPOST('SHIPPING_DRAFT_WATERMARK', 'alpha');
86  $res = dolibarr_set_const($db, "SHIPPING_DRAFT_WATERMARK", trim($draft), 'chaine', 0, '', $conf->entity);
87  if ($res <= 0) {
88  $error++;
89  setEventMessages($langs->trans("Error"), null, 'errors');
90  }
91 
92  if (!$error) {
93  setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
94  }
95 } elseif ($action == 'specimen') {
96  $modele = GETPOST('module', 'alpha');
97 
98  $exp = new Expedition($db);
99  $exp->initAsSpecimen();
100 
101  // Search template files
102  $file = ''; $classname = ''; $filefound = 0;
103  $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
104  foreach ($dirmodels as $reldir) {
105  $file = dol_buildpath($reldir."core/modules/expedition/doc/pdf_".$modele.".modules.php", 0);
106  if (file_exists($file)) {
107  $filefound = 1;
108  $classname = "pdf_".$modele;
109  break;
110  }
111  }
112 
113  if ($filefound) {
114  require_once $file;
115 
116  $module = new $classname($db);
117 
118  if ($module->write_file($exp, $langs) > 0) {
119  header("Location: ".DOL_URL_ROOT."/document.php?modulepart=expedition&file=SPECIMEN.pdf");
120  return;
121  } else {
122  setEventMessages($module->error, $module->errors, 'errors');
123  dol_syslog($module->error, LOG_ERR);
124  }
125  } else {
126  setEventMessages($langs->trans("ErrorModuleNotFound"), null, 'errors');
127  dol_syslog($langs->trans("ErrorModuleNotFound"), LOG_ERR);
128  }
129 } elseif ($action == 'set') {
130  // Activate a model
131  $ret = addDocumentModel($value, $type, $label, $scandir);
132 } elseif ($action == 'del') {
133  $ret = delDocumentModel($value, $type);
134  if ($ret > 0) {
135  if (getDolGlobalString('EXPEDITION_ADDON_PDF') == "$value") {
136  dolibarr_del_const($db, 'EXPEDITION_ADDON_PDF', $conf->entity);
137  }
138  }
139 } elseif ($action == 'setdoc') {
140  // Set default model
141  if (dolibarr_set_const($db, "EXPEDITION_ADDON_PDF", $value, 'chaine', 0, '', $conf->entity)) {
142  // La constante qui a ete lue en avant du nouveau set
143  // on passe donc par une variable pour avoir un affichage coherent
144  $conf->global->EXPEDITION_ADDON_PDF = $value;
145  }
146 
147  // On active le modele
148  $ret = delDocumentModel($value, $type);
149  if ($ret > 0) {
150  $ret = addDocumentModel($value, $type, $label, $scandir);
151  }
152 } elseif ($action == 'setmodel') {
153  dolibarr_set_const($db, "EXPEDITION_ADDON_NUMBER", $value, 'chaine', 0, '', $conf->entity);
154 }
155 
156 
157 /*
158  * View
159  */
160 
161 $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
162 
163 $form = new Form($db);
164 
165 llxHeader("", $langs->trans("SendingsSetup"));
166 
167 $linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
168 print load_fiche_titre($langs->trans("SendingsSetup"), $linkback, 'title_setup');
169 print '<br>';
171 
172 print dol_get_fiche_head($head, 'shipment', $langs->trans("Sendings"), -1, 'shipment');
173 
174 // Shipment numbering model
175 
176 print load_fiche_titre($langs->trans("SendingsNumberingModules"), '', '');
177 
178 print '<table class="noborder centpercent">';
179 print '<tr class="liste_titre">';
180 print '<td width="100">'.$langs->trans("Name").'</td>';
181 print '<td>'.$langs->trans("Description").'</td>';
182 print '<td>'.$langs->trans("Example").'</td>';
183 print '<td class="center" width="60">'.$langs->trans("Status").'</td>';
184 print '<td class="center" width="80">'.$langs->trans("ShortInfo").'</td>';
185 print "</tr>\n";
186 
187 clearstatcache();
188 
189 foreach ($dirmodels as $reldir) {
190  $dir = dol_buildpath($reldir."core/modules/expedition/");
191 
192  if (is_dir($dir)) {
193  $handle = opendir($dir);
194  if (is_resource($handle)) {
195  while (($file = readdir($handle)) !== false) {
196  if (preg_match('/^mod_expedition_([a-z0-9_]*)\.php$/', $file)) {
197  $file = substr($file, 0, dol_strlen($file) - 4);
198 
199  require_once $dir.$file.'.php';
200 
201  $module = new $file;
202 
203  if ($module->isEnabled()) {
204  // Show modules according to features level
205  if ($module->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
206  continue;
207  }
208  if ($module->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
209  continue;
210  }
211 
212  print '<tr><td>'.$module->name."</td>\n";
213  print '<td>';
214  print $module->info();
215  print '</td>';
216 
217  // Show example of numbering module
218  print '<td class="nowrap">';
219  $tmp = $module->getExample();
220  if (preg_match('/^Error/', $tmp)) {
221  $langs->load("errors");
222  print '<div class="error">'.$langs->trans($tmp).'</div>';
223  } elseif ($tmp == 'NotConfigured') {
224  print '<span class="opacitymedium">'.$langs->trans($tmp).'</span>';
225  } else {
226  print $tmp;
227  }
228  print '</td>'."\n";
229 
230  print '<td class="center">';
231  if ($conf->global->EXPEDITION_ADDON_NUMBER == "$file") {
232  print img_picto($langs->trans("Activated"), 'switch_on');
233  } else {
234  print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setmodel&token='.newToken().'&value='.urlencode($file).'&label='.urlencode($module->name).'">';
235  print img_picto($langs->trans("Disabled"), 'switch_off');
236  print '</a>';
237  }
238  print '</td>';
239 
240  $expedition = new Expedition($db);
241  $expedition->initAsSpecimen();
242 
243  // Info
244  $htmltooltip = '';
245  $htmltooltip .= ''.$langs->trans("Version").': <b>'.$module->getVersion().'</b><br>';
246  $nextval = $module->getNextValue($mysoc, $expedition);
247  if ("$nextval" != $langs->trans("NotAvailable")) { // Keep " on nextval
248  $htmltooltip .= ''.$langs->trans("NextValue").': ';
249  if ($nextval) {
250  if (preg_match('/^Error/', $nextval) || $nextval == 'NotConfigured') {
251  $nextval = $langs->trans($nextval);
252  }
253  $htmltooltip .= $nextval.'<br>';
254  } else {
255  $htmltooltip .= $langs->trans($module->error).'<br>';
256  }
257  }
258 
259  print '<td class="center">';
260  print $form->textwithpicto('', $htmltooltip, 1, 0);
261  print '</td>';
262 
263  print '</tr>';
264  }
265  }
266  }
267  closedir($handle);
268  }
269  }
270 }
271 
272 print '</table><br>';
273 
274 
275 /*
276  * Documents models for Sendings Receipt
277  */
278 print load_fiche_titre($langs->trans("SendingsReceiptModel"), '', '');
279 
280 // Defini tableau def de modele invoice
281 $type = "shipping";
282 $def = array();
283 
284 $sql = "SELECT nom";
285 $sql .= " FROM ".MAIN_DB_PREFIX."document_model";
286 $sql .= " WHERE type = '".$db->escape($type)."'";
287 $sql .= " AND entity = ".$conf->entity;
288 
289 $resql = $db->query($sql);
290 if ($resql) {
291  $i = 0;
292  $num_rows = $db->num_rows($resql);
293  while ($i < $num_rows) {
294  $array = $db->fetch_array($resql);
295  array_push($def, $array[0]);
296  $i++;
297  }
298 } else {
299  dol_print_error($db);
300 }
301 
302 print '<table class="noborder centpercent">';
303 print '<tr class="liste_titre">';
304 print '<td width="140">'.$langs->trans("Name").'</td>';
305 print '<td>'.$langs->trans("Description").'</td>';
306 print '<td class="center" width="60">'.$langs->trans("Status").'</td>';
307 print '<td class="center" width="60">'.$langs->trans("Default").'</td>';
308 print '<td class="nowrap center" width="80">'.$langs->trans("ShortInfo").'</td>';
309 print '<td class="nowrap center" width="80" >'.$langs->trans("Preview").'</td>';
310 print "</tr>\n";
311 
312 clearstatcache();
313 
314 foreach ($dirmodels as $reldir) {
315  foreach (array('', '/doc') as $valdir) {
316  $dir = dol_buildpath($reldir."core/modules/expedition".$valdir);
317 
318  if (is_dir($dir)) {
319  $handle = opendir($dir);
320  if (is_resource($handle)) {
321  while (($file = readdir($handle)) !== false) {
322  $filelist[] = $file;
323  }
324  closedir($handle);
325  arsort($filelist);
326 
327  foreach ($filelist as $file) {
328  if (preg_match('/\.modules\.php$/i', $file) && preg_match('/^(pdf_|doc_)/', $file)) {
329  if (file_exists($dir.'/'.$file)) {
330  $name = substr($file, 4, dol_strlen($file) - 16);
331  $classname = substr($file, 0, dol_strlen($file) - 12);
332 
333  require_once $dir.'/'.$file;
334  $module = new $classname($db);
335 
336  $modulequalified = 1;
337  if ($module->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
338  $modulequalified = 0;
339  }
340  if ($module->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
341  $modulequalified = 0;
342  }
343 
344  if ($modulequalified) {
345  print '<tr><td width="100">';
346  print (empty($module->name) ? $name : $module->name);
347  print "</td><td>\n";
348  if (method_exists($module, 'info')) {
349  print $module->info($langs);
350  } else {
351  print $module->description;
352  }
353  print '</td>';
354 
355  // Active
356  if (in_array($name, $def)) {
357  print '<td class="center">'."\n";
358  print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=del&token='.newToken().'&value='.urlencode($name).'">';
359  print img_picto($langs->trans("Enabled"), 'switch_on');
360  print '</a>';
361  print '</td>';
362  } else {
363  print '<td class="center">'."\n";
364  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>';
365  print "</td>";
366  }
367 
368  // Defaut
369  print '<td class="center">';
370  if (getDolGlobalString('EXPEDITION_ADDON_PDF') == $name) {
371  print img_picto($langs->trans("Default"), 'on');
372  } else {
373  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>';
374  }
375  print '</td>';
376 
377  // Info
378  $htmltooltip = ''.$langs->trans("Name").': '.$module->name;
379  $htmltooltip .= '<br>'.$langs->trans("Type").': '.($module->type ? $module->type : $langs->trans("Unknown"));
380  if ($module->type == 'pdf') {
381  $htmltooltip .= '<br>'.$langs->trans("Width").'/'.$langs->trans("Height").': '.$module->page_largeur.'/'.$module->page_hauteur;
382  }
383  $htmltooltip .= '<br><br><u>'.$langs->trans("FeaturesSupported").':</u>';
384  $htmltooltip .= '<br>'.$langs->trans("Logo").': '.yn($module->option_logo, 1, 1);
385  $htmltooltip .= '<br>'.$langs->trans("PaymentMode").': '.yn($module->option_modereg, 1, 1);
386  $htmltooltip .= '<br>'.$langs->trans("PaymentConditions").': '.yn($module->option_condreg, 1, 1);
387  $htmltooltip .= '<br>'.$langs->trans("MultiLanguage").': '.yn($module->option_multilang, 1, 1);
388  $htmltooltip .= '<br>'.$langs->trans("WatermarkOnDraftOrders").': '.yn($module->option_draft_watermark, 1, 1);
389 
390  print '<td class="center">';
391  print $form->textwithpicto('', $htmltooltip, 1, 0);
392  print '</td>';
393 
394  // Preview
395  print '<td class="center">';
396  if ($module->type == 'pdf') {
397  print '<a href="'.$_SERVER["PHP_SELF"].'?action=specimen&module='.$name.'&amp;scan_dir='.$module->scandir.'&amp;label='.urlencode($module->name).'">'.img_object($langs->trans("Preview"), 'pdf').'</a>';
398  } else {
399  print img_object($langs->trans("PreviewNotAvailable"), 'generic');
400  }
401  print '</td>';
402 
403  print "</tr>\n";
404  }
405  }
406  }
407  }
408  }
409  }
410  }
411 }
412 
413 print '</table>';
414 print '<br>';
415 
416 
417 /*
418  * Other options
419  *
420  */
421 print load_fiche_titre($langs->trans("OtherOptions"), '', '');
422 
423 print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
424 print '<input type="hidden" name="token" value="'.newToken().'">';
425 print '<input type="hidden" name="action" value="set_param">';
426 
427 print "<table class=\"noborder\" width=\"100%\">";
428 print "<tr class=\"liste_titre\">";
429 print "<td>".$langs->trans("Parameter")."</td>\n";
430 print "</tr>";
431 
432 $substitutionarray = pdf_getSubstitutionArray($langs, null, null, 2);
433 $substitutionarray['__(AnyTranslationKey)__'] = $langs->trans("Translation");
434 $htmltext = '<i>'.$langs->trans("AvailableVariables").':<br>';
435 foreach ($substitutionarray as $key => $val) {
436  $htmltext .= $key.'<br>';
437 }
438 $htmltext .= '</i>';
439 
440 print '<tr><td>';
441 print $form->textwithpicto($langs->trans("FreeLegalTextOnShippings"), $langs->trans("AddCRIfTooLong").'<br><br>'.$htmltext, 1, 'help', '', 0, 2, 'freetexttooltip').'<br>';
442 $variablename = 'SHIPPING_FREE_TEXT';
443 if (empty($conf->global->PDF_ALLOW_HTML_FOR_FREE_TEXT)) {
444  print '<textarea name="'.$variablename.'" class="flat" cols="120">'.getDolGlobalString($variablename).'</textarea>';
445 } else {
446  include_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
447  $doleditor = new DolEditor($variablename, getDolGlobalString($variablename), '', 80, 'dolibarr_notes');
448  print $doleditor->Create();
449 }
450 print "</td></tr>\n";
451 
452 print '<tr><td>';
453 print $form->textwithpicto($langs->trans("WatermarkOnDraftContractCards"), $htmltext, 1, 'help', '', 0, 2, 'watermarktooltip').'<br>';
454 print '<input class="flat minwidth200" type="text" name="SHIPPING_DRAFT_WATERMARK" value="'.dol_escape_htmltag(getDolGlobalString('SHIPPING_DRAFT_WATERMARK')).'">';
455 print "</td></tr>\n";
456 
457 print '</table>';
458 
459 print $form->buttonsSaveCancel("Modify", '');
460 
461 print '</form>';
462 
463 // End of page
464 llxFooter();
465 $db->close();
yn
yn($yesno, $case=1, $color=0)
Return yes or no in current language.
Definition: functions.lib.php:6491
Expedition
Class to manage shipments.
Definition: expedition.class.php:52
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
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
expedition_admin_prepare_head
expedition_admin_prepare_head()
Return array head with list of tabs to view object informations.
Definition: expedition.lib.php:74
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:10877
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:8136
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