dolibarr 21.0.0-beta
setup.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2008-2011 Laurent Destailleur <eldy@users.sourceforge.net>
3 * Copyright (C) 2011-2017 Juanjo Menent <jmenent@2byte.es>
4 * Copyright (C) 2021 Nicolas ZABOURI <info@inovea-conseil.com>
5 * Copyright (C) 2022 Alexandre Spangaro <aspangaro@open-dsi.fr>
6 * Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
7 * Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 3 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <https://www.gnu.org/licenses/>.
21 */
22
29// Load Dolibarr environment
30require '../../main.inc.php'; // Load $user and permissions
31require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/product/class/html.formproduct.class.php';
33require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
34require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
35require_once DOL_DOCUMENT_ROOT."/core/lib/takepos.lib.php";
36require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
37
38// If socid provided by ajax company selector
39if (GETPOST('CASHDESK_ID_THIRDPARTY_id', 'alpha')) {
40 $_GET['CASHDESK_ID_THIRDPARTY'] = GETPOST('CASHDESK_ID_THIRDPARTY_id', 'alpha');
41 $_POST['CASHDESK_ID_THIRDPARTY'] = GETPOST('CASHDESK_ID_THIRDPARTY_id', 'alpha');
42 $_REQUEST['CASHDESK_ID_THIRDPARTY'] = GETPOST('CASHDESK_ID_THIRDPARTY_id', 'alpha');
43}
44
53// Security check
54if (!$user->admin) {
56}
57
58$langs->loadLangs(array("admin", "cashdesk"));
59
60global $db, $mysoc;
61
62$sql = "SELECT code, libelle FROM ".MAIN_DB_PREFIX."c_paiement";
63$sql .= " WHERE entity IN (".getEntity('c_paiement').")";
64$sql .= " AND active = 1";
65$sql .= " ORDER BY libelle";
66$resql = $db->query($sql);
67$paiements = array();
68if ($resql) {
69 while ($obj = $db->fetch_object($resql)) {
70 array_push($paiements, $obj);
71 }
72}
73
74$action = GETPOST('action', 'aZ09');
75
76
77/*
78 * Actions
79 */
80
81$error = 0;
82
83if ($action == 'set') {
84 $db->begin();
85
86 $res = dolibarr_set_const($db, "TAKEPOS_ROOT_CATEGORY_ID", GETPOST('TAKEPOS_ROOT_CATEGORY_ID', 'alpha'), 'chaine', 0, '', $conf->entity);
87 $res = dolibarr_set_const($db, "TAKEPOS_SUPPLEMENTS_CATEGORY", GETPOST('TAKEPOS_SUPPLEMENTS_CATEGORY', 'alpha'), 'chaine', 0, '', $conf->entity);
88 $res = dolibarr_set_const($db, "TAKEPOS_NUMPAD", GETPOST('TAKEPOS_NUMPAD', 'alpha'), 'chaine', 0, '', $conf->entity);
89 $res = dolibarr_set_const($db, "TAKEPOS_SORTPRODUCTFIELD", GETPOST('TAKEPOS_SORTPRODUCTFIELD', 'alpha'), 'chaine', 0, '', $conf->entity);
90 $res = dolibarr_set_const($db, "TAKEPOS_NUM_TERMINALS", GETPOST('TAKEPOS_NUM_TERMINALS', 'alpha'), 'chaine', 0, '', $conf->entity);
91 $res = dolibarr_set_const($db, "TAKEPOS_ADDON", GETPOST('TAKEPOS_ADDON', 'alpha'), 'int', 0, '', $conf->entity);
92 $res = dolibarr_set_const($db, "TAKEPOS_EMAIL_TEMPLATE_INVOICE", GETPOST('TAKEPOS_EMAIL_TEMPLATE_INVOICE', 'alpha'), 'chaine', 0, '', $conf->entity);
93 if (getDolGlobalInt('TAKEPOS_ENABLE_SUMUP')) {
94 $res = dolibarr_set_const($db, "TAKEPOS_SUMUP_AFFILIATE", GETPOST('TAKEPOS_SUMUP_AFFILIATE', 'alpha'), 'chaine', 0, '', $conf->entity);
95 $res = dolibarr_set_const($db, "TAKEPOS_SUMUP_APPID", GETPOST('TAKEPOS_SUMUP_APPID', 'alpha'), 'chaine', 0, '', $conf->entity);
96 }
97 if (isModEnabled('barcode')) {
98 $res = dolibarr_set_const($db, 'TAKEPOS_BARCODE_RULE_TO_INSERT_PRODUCT', GETPOST('TAKEPOS_BARCODE_RULE_TO_INSERT_PRODUCT', 'alpha'), 'chaine', 0, '', $conf->entity);
99 }
100
101 dol_syslog("admin/cashdesk: level ".GETPOST('level', 'alpha'));
102
103 if (!($res > 0)) {
104 $error++;
105 }
106
107 if (!$error) {
108 $db->commit();
109 } else {
110 $db->rollback();
111 }
112} elseif ($action == 'updateMask') {
113 $maskconst = GETPOST('maskconst', 'aZ09');
114 $maskvalue = GETPOST('maskvalue', 'alpha');
115 if ($maskconst && preg_match('/_MASK$/', $maskconst)) {
116 $res = dolibarr_set_const($db, $maskconst, $maskvalue, 'chaine', 0, '', $conf->entity);
117 }
118 if (!($res > 0)) {
119 $error++;
120 }
121} elseif ($action == 'setrefmod') {
122 $value = GETPOST('value', 'alpha');
123 dolibarr_set_const($db, "TAKEPOS_REF_ADDON", $value, 'chaine', 0, '', $conf->entity);
124}
125
126if ($action != '') {
127 if (!$error) {
128 setEventMessage($langs->trans('SetupSaved'));
129 } else {
130 setEventMessages($langs->trans('Error'), null, 'errors');
131 }
132}
133
134
135/*
136 * View
137 */
138
139$form = new Form($db);
140$formproduct = new FormProduct($db);
141
142$help_url = 'EN:Module_Point_of_sale_(TakePOS)';
143
144llxHeader('', $langs->trans("CashDeskSetup"), $help_url, '', 0, 0, '', '', '', 'mod-takepos page-admin_setup');
145
146$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>';
147print load_fiche_titre($langs->trans("CashDeskSetup").' (TakePOS)', $linkback, 'title_setup');
149print dol_get_fiche_head($head, 'setup', 'TakePOS', -1, 'cash-register');
150
151// Numbering modules
152$now = dol_now();
153$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
154
155print load_fiche_titre($langs->trans('CashDeskRefNumberingModules'), '', '');
156
157print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
158print '<table class="noborder centpercent">';
159print '<tr class="liste_titre">';
160print '<td>'.$langs->trans("Name")."</td>\n";
161print '<td>'.$langs->trans("Description")."</td>\n";
162print '<td class="nowrap">'.$langs->trans("Example")."</td>\n";
163print '<td class="center" width="60">'.$langs->trans("Status").'</td>';
164print '<td class="center" width="16">'.$langs->trans("ShortInfo").'</td>';
165print '</tr>'."\n";
166
167clearstatcache();
168
169foreach ($dirmodels as $reldir) {
170 $dir = dol_buildpath($reldir."core/modules/takepos/");
171
172 if (is_dir($dir)) {
173 $handle = opendir($dir);
174 if (is_resource($handle)) {
175 $var = true;
176
177 while (($file = readdir($handle)) !== false) {
178 if (substr($file, 0, 16) == 'mod_takepos_ref_' && substr($file, dol_strlen($file) - 3, 3) == 'php') {
179 $file = substr($file, 0, dol_strlen($file) - 4);
180
181 require_once $dir.$file.'.php';
182
183 $module = new $file();
184 '@phan-var-force ModeleNumRefTakepos $module';
185
186 // Show modules according to features level
187 if ($module->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) {
188 continue;
189 }
190 if ($module->version == 'experimental' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 1) {
191 continue;
192 }
193
194 if ($module->isEnabled()) {
195 print '<tr class="oddeven"><td>'.$module->getName($langs)."</td><td>\n";
196 print $module->info($langs);
197 print '</td>';
198
199 // Show example of numbering module
200 print '<td class="nowrap">';
201 $tmp = $module->getExample();
202 if (preg_match('/^Error/', $tmp)) {
203 $langs->load("errors");
204 print '<div class="error">'.$langs->trans($tmp).'</div>';
205 } elseif ($tmp == 'NotConfigured') {
206 print $langs->trans($tmp);
207 } else {
208 print $tmp;
209 }
210 print '</td>'."\n";
211
212 print '<td class="center">';
213 if (getDolGlobalString('TAKEPOS_REF_ADDON') == "$file") {
214 print img_picto($langs->trans("Activated"), 'switch_on');
215 } else {
216 print '<a href="'.$_SERVER["PHP_SELF"].'?action=setrefmod&token='.newToken().'&value='.urlencode($file).'">';
217 print img_picto($langs->trans("Disabled"), 'switch_off');
218 print '</a>';
219 }
220 print '</td>';
221
222 // example for next value
223 $invoice = new Facture($db);
224 $invoice->date = $now;
225 $invoice->module_source = 'takepos';
226 $invoice->pos_source = '1';
227
228 // Info
229 $htmltooltip = '';
230 $htmltooltip .= ''.$langs->trans("Version").': <b>'.$module->getVersion().'</b><br>';
231 $nextval = $module->getNextValue($mysoc, $invoice);
232 if ("$nextval" != $langs->trans("NotAvailable")) { // Keep " on nextval
233 $htmltooltip .= ''.$langs->trans("NextValue").': ';
234 if ($nextval) {
235 if (preg_match('/^Error/', $nextval) || $nextval == 'NotConfigured') {
236 $nextval = $langs->trans($nextval);
237 }
238 $htmltooltip .= $nextval.'<br>';
239 } else {
240 $htmltooltip .= $langs->trans($module->error).'<br>';
241 }
242 }
243
244 print '<td align="center">';
245 print $form->textwithpicto('', $htmltooltip, 1, 0);
246 print '</td>';
247
248 print "</tr>\n";
249 }
250 }
251 }
252 closedir($handle);
253 }
254 }
255}
256print "</table>\n";
257print '</div>';
258print "\n";
259
260print '<br>';
261
262
263print load_fiche_titre($langs->trans('Options'), '', '');
264
265// Mode
266print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
267print '<input type="hidden" name="token" value="'.newToken().'">';
268print '<input type="hidden" name="action" value="set">';
269
270print '<div class="div-table-responsive-no-min">';
271print '<table class="noborder centpercent">';
272
273print '<tr class="liste_titre">';
274print '<td class="notitlefield">'.$langs->trans("Parameters").'</td><td></td>';
275print "</tr>\n";
276
277// Terminals
278print '<tr class="oddeven"><td>';
279print $langs->trans("NumberOfTerminals");
280print '<td>';
281print '<input type="number" name="TAKEPOS_NUM_TERMINALS" min="1" class="width50" value="' . getDolGlobalString('TAKEPOS_NUM_TERMINALS', '1') . '">';
282print "</td></tr>\n";
283
284// Services
285if (isModEnabled("service")) {
286 print '<tr class="oddeven"><td>';
287 print $langs->trans("CashdeskShowServices");
288 print '<td>';
289 print ajax_constantonoff("CASHDESK_SERVICES", array(), $conf->entity, 0, 0, 1, 0);
290 //print $form->selectyesno("CASHDESK_SERVICES", $conf->global->CASHDESK_SERVICES, 1);
291 print "</td></tr>\n";
292}
293
294// Root category for products
295print '<tr class="oddeven"><td>';
296print $form->textwithpicto($langs->trans("RootCategoryForProductsToSell"), $langs->trans("RootCategoryForProductsToSellDesc"));
297print '<td>';
298print img_object('', 'category', 'class="paddingright"').$form->select_all_categories(Categorie::TYPE_PRODUCT, getDolGlobalInt('TAKEPOS_ROOT_CATEGORY_ID'), 'TAKEPOS_ROOT_CATEGORY_ID', 64, 0, 0, 0, 'maxwidth500 widthcentpercentminusx');
299print ajax_combobox('TAKEPOS_ROOT_CATEGORY_ID');
300print "</td></tr>\n";
301
302// Sort product
303print '<tr class="oddeven"><td>';
304print $langs->trans("SortProductField");
305print '<td>';
306$prod = new Product($db);
307$array = array('rowid' => 'ID', 'ref' => 'Ref', 'label' => 'Label', 'datec' => 'DateCreation', 'tms' => 'DateModification');
308print $form->selectarray('TAKEPOS_SORTPRODUCTFIELD', $array, getDolGlobalString('TAKEPOS_SORTPRODUCTFIELD', 'rowid'), 0, 0, 0, '', 1);
309print "</td></tr>\n";
310
311print '<tr class="oddeven"><td>';
312print $langs->trans('TakeposGroupSameProduct');
313print '<td>';
314print ajax_constantonoff("TAKEPOS_GROUP_SAME_PRODUCT", array(), $conf->entity, 0, 0, 1, 0);
315print "</td></tr>\n";
316
317$substitutionarray = pdf_getSubstitutionArray($langs, null, null, 2);
318$substitutionarray['__(AnyTranslationKey)__'] = $langs->trans("Translation");
319$htmltext = '<i>'.$langs->trans("AvailableVariables").':<br>';
320foreach ($substitutionarray as $key => $val) {
321 $htmltext .= $key.'<br>';
322}
323$htmltext .= '</i>';
324
325// Payment numpad
326print '<tr class="oddeven"><td>';
327print $langs->trans("Paymentnumpad");
328print '<td>';
329$array = array(0 => $langs->trans("Numberspad"), 1 => $langs->trans("BillsCoinsPad"));
330print $form->selectarray('TAKEPOS_NUMPAD', $array, (!getDolGlobalString('TAKEPOS_NUMPAD') ? '0' : $conf->global->TAKEPOS_NUMPAD), 0);
331print "</td></tr>\n";
332
333// Numpad use payment icons
334/*print '<tr class="oddeven"><td>';
335print $langs->trans('TakeposNumpadUsePaymentIcon');
336print '<td colspan="2">';
337print ajax_constantonoff("TAKEPOS_NUMPAD_USE_PAYMENT_ICON", array(), $conf->entity, 0, 0, 1, 0);
338print "</td></tr>\n";
339*/
340
341// Direct Payment
342print '<tr class="oddeven"><td>';
343print $langs->trans('DirectPaymentButton');
344print '<td>';
345print ajax_constantonoff("TAKEPOS_DIRECT_PAYMENT", array(), $conf->entity, 0, 0, 1, 0);
346//print $form->selectyesno("TAKEPOS_DIRECT_PAYMENT", $conf->global->TAKEPOS_DIRECT_PAYMENT, 1);
347print "</td></tr>\n";
348
349// Head Bar
350/*print '<tr class="oddeven"><td>';
351print $langs->trans('HeadBar');
352print '<td colspan="2">';
353print $form->selectyesno("TAKEPOS_HEAD_BAR", $conf->global->TAKEPOS_HEAD_BAR, 1);
354print "</td></tr>\n";
355*/
356
357// Email template for send invoice
358print '<tr class="oddeven"><td>';
359print $langs->trans('EmailTemplate');
360print '<td>';
361include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php';
362$formmail = new FormMail($db);
363$nboftemplates = $formmail->fetchAllEMailTemplate('facture_send', $user, null, -1); // We set lang=null to get in priority record with no lang
364//$arraydefaultmessage = $formmail->getEMailTemplate($db, $tmp[1], $user, null, 0, 1, '');
365$arrayofmessagename = array();
366if (is_array($formmail->lines_model)) {
367 foreach ($formmail->lines_model as $modelmail) {
368 //var_dump($modelmail);
369 $moreonlabel = '';
370 if (!empty($arrayofmessagename[$modelmail->label])) {
371 $moreonlabel = ' <span class="opacitymedium">('.$langs->trans("SeveralLangugeVariatFound").')</span>';
372 }
373 $arrayofmessagename[$modelmail->id] = $langs->trans(preg_replace('/\‍(|\‍)/', '', $modelmail->topic)).$moreonlabel;
374 }
375}
376//var_dump($arraydefaultmessage);
377//var_dump($arrayofmessagename);
378print $form->selectarray('TAKEPOS_EMAIL_TEMPLATE_INVOICE', $arrayofmessagename, getDolGlobalString('TAKEPOS_EMAIL_TEMPLATE_INVOICE'), 'None', 1, 0, '', 0, 0, 0, '', 'maxwidth500 widthcentpercentminusx', 1);
379print "</td></tr>\n";
380
381// Control cash box at opening pos
382print '<tr class="oddeven"><td>';
383print $langs->trans('ControlCashOpening');
384print '<td>';
385print ajax_constantonoff("TAKEPOS_CONTROL_CASH_OPENING", array(), $conf->entity, 0, 0, 1, 0);
386print "</td></tr>\n";
387
388// Gift receipt
389print '<tr class="oddeven"><td>';
390print $langs->trans('GiftReceiptButton');
391print '<td>';
392print ajax_constantonoff("TAKEPOS_GIFT_RECEIPT", array(), $conf->entity, 0, 0, 1, 0);
393print "</td></tr>\n";
394
395// Delayed Pay Button
396print '<tr class="oddeven"><td>';
397print $langs->trans('AllowDelayedPayment');
398print '<td>';
399print ajax_constantonoff("TAKEPOS_DELAYED_PAYMENT", array(), $conf->entity, 0, 0, 1, 0);
400print "</td></tr>\n";
401
402// Show price without vat
403print '<tr class="oddeven"><td>';
404print $langs->trans('ShowPriceHT');
405print '<td>';
406print ajax_constantonoff("TAKEPOS_SHOW_HT", array(), $conf->entity, 0, 0, 1, 0);
407print "</td></tr>\n";
408
409// Use price excl. taxes (HT) and not price incl. taxes (TTC)
410print '<tr class="oddeven"><td>';
411print $langs->trans('UsePriceHT');
412print '</td><td>';
413print ajax_constantonoff("TAKEPOS_CHANGE_PRICE_HT", array(), $conf->entity, 0, 0, 1, 0);
414print "</td></tr>\n";
415
416// Barcode rule to insert product
417if (isModEnabled('barcode')) {
418 print '<tr class="oddeven"><td>';
419 print $form->textwithpicto($langs->trans("TakeposBarcodeRuleToInsertProduct"), $langs->trans("TakeposBarcodeRuleToInsertProductDesc"), 1, 'help', '', 0, 3, 'barcoderuleonsmartphone');
420 print '<td>';
421 print '<input type="text" name="TAKEPOS_BARCODE_RULE_TO_INSERT_PRODUCT" value="' . (getDolGlobalString('TAKEPOS_BARCODE_RULE_TO_INSERT_PRODUCT')) . '">';
422 print "</td></tr>\n";
423}
424
425// Numbering module
426//print '<tr class="oddeven"><td>';
427//print $langs->trans("BillsNumberingModule");
428//print '<td colspan="2">';
429//$array = array(0=>$langs->trans("Default"), "terminal"=>$langs->trans("ByTerminal"));
430//$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
431//foreach ($dirmodels as $reldir)
432//{
433// $dir = dol_buildpath($reldir."core/modules/facture/");
434// if (is_dir($dir))
435// {
436// $handle = opendir($dir);
437// if (is_resource($handle))
438// {
439// while (($file = readdir($handle)) !== false)
440// {
441// if (!is_dir($dir.$file) || (substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS'))
442// {
443// $filebis = $file;
444// $classname = preg_replace('/\.php$/', '', $file);
445// // For compatibility
446// if (!is_file($dir.$filebis))
447// {
448// $filebis = $file."/".$file.".modules.php";
449// $classname = "mod_facture_".$file;
450// }
451// // Check if there is a filter on country
452// preg_match('/\-(.*)_(.*)$/', $classname, $reg);
453// if (!empty($reg[2]) && $reg[2] != strtoupper($mysoc->country_code)) continue;
454//
455// $classname = preg_replace('/\-.*$/', '', $classname);
456// if (!class_exists($classname) && is_readable($dir.$filebis) && (preg_match('/mod_/', $filebis) || preg_match('/mod_/', $classname)) && substr($filebis, dol_strlen($filebis) - 3, 3) == 'php')
457// {
458// // Charging the numbering class
459// require_once $dir.$filebis;
460//
461// $module = new $classname($db);
462//
463// // Show modules according to features level
464// if ($module->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) continue;
465// if ($module->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) continue;
466//
467// if ($module->isEnabled())
468// {
469// $array[preg_replace('/\-.*$/', '', preg_replace('/\.php$/', '', $file))] = preg_replace('/\-.*$/', '', preg_replace('/mod_facture_/', '', preg_replace('/\.php$/', '', $file)));
470// }
471// }
472// }
473// }
474// closedir($handle);
475// }
476// }
477//}
478//
479//print $form->selectarray('TAKEPOS_ADDON', $array, (empty($conf->global->TAKEPOS_ADDON) ? '0' : $conf->global->TAKEPOS_ADDON), 0);
480//print "</td></tr>\n";
481
482print '</table>';
483print '</div>';
484
485
486// Sumup options
487if (getDolGlobalInt('TAKEPOS_ENABLE_SUMUP')) {
488 print '<br>';
489
490 print '<div class="div-table-responsive-no-min">';
491 print '<table class="noborder centpercent">';
492
493 print '<tr class="liste_titre">';
494 print '<td class="titlefield">'.$langs->trans("Sumup").'</td><td></td>';
495 print "</tr>\n";
496
497 print '<tr class="oddeven"><td>';
498 print $langs->trans("SumupAffiliate");
499 print '<td colspan="2">';
500 print '<input type="text" name="TAKEPOS_SUMUP_AFFILIATE" value="' . getDolGlobalString('TAKEPOS_SUMUP_AFFILIATE').'"></input>';
501 print "</td></tr>\n";
502 print '<tr class="oddeven"><td>';
503 print $langs->trans("SumupAppId");
504 print '<td colspan="2">';
505 print '<input type="text" name="TAKEPOS_SUMUP_APPID" value="' . getDolGlobalString('TAKEPOS_SUMUP_APPID').'"></input>';
506 print "</td></tr>\n";
507
508 print '</table>';
509 print '</div>';
510}
511
512print $form->buttonsSaveCancel("Save", '');
513
514print "</form>\n";
515
516llxFooter();
517$db->close();
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).
ajax_combobox($htmlname, $events=array(), $minLengthToAutocomplete=0, $forcefocus=0, $widthTypeOfAutocomplete='resolve', $idforemptyvalue='-1', $morecss='')
Convert a html select field into an ajax combobox.
Definition ajax.lib.php:459
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Definition wrapper.php:71
Class to manage invoices.
Class to manage generation of HTML components Only common components must be here.
Class permettant la generation du formulaire html d'envoi de mail unitaire Usage: $formail = new Form...
Class with static methods for building HTML components related to products Only components common to ...
Class to manage products or services.
llxFooter()
Footer empty.
Definition document.php:107
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0)
Show a picto called object_picto (generic function)
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
setEventMessage($mesgs, $style='mesgs', $noduplicate=0, $attop=0)
Set event message in dol_events session object.
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
dol_now($mode='auto')
Return date for now.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
Definition member.php:79
pdf_getSubstitutionArray($outputlangs, $exclude=null, $object=null, $onlykey=0, $include=null)
Return array of possible substitutions for PDF content (without external module substitutions).
Definition pdf.lib.php:765
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.
takepos_admin_prepare_head()
Prepare array with list of tabs.