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