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