dolibarr 22.0.5
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-2025 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', 'mod_takepos_ref_simple') == $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, 'info');
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>';
298//print $form->selectCategories(Categorie::TYPE_PRODUCT, 'TAKEPOS_ROOT_CATEGORY_ID', null);
299print 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');
300print ajax_combobox('TAKEPOS_ROOT_CATEGORY_ID');
301print "</td></tr>\n";
302
303// Sort product
304print '<tr class="oddeven"><td>';
305print $langs->trans("SortProductField");
306print '<td>';
307$prod = new Product($db);
308$array = array('rowid' => 'ID', 'ref' => 'Ref', 'label' => 'Label', 'datec' => 'DateCreation', 'tms' => 'DateModification');
309print $form->selectarray('TAKEPOS_SORTPRODUCTFIELD', $array, getDolGlobalString('TAKEPOS_SORTPRODUCTFIELD', 'rowid'), 0, 0, 0, '', 1);
310print "</td></tr>\n";
311
312print '<tr class="oddeven"><td>';
313print $langs->trans('TakeposGroupSameProduct');
314print '<td>';
315print ajax_constantonoff("TAKEPOS_GROUP_SAME_PRODUCT", array(), $conf->entity, 0, 0, 1, 0);
316print "</td></tr>\n";
317
318$substitutionarray = pdf_getSubstitutionArray($langs, null, null, 2);
319$substitutionarray['__(AnyTranslationKey)__'] = $langs->trans("Translation");
320$htmltext = '<i>'.$langs->trans("AvailableVariables").':<br>';
321foreach ($substitutionarray as $key => $val) {
322 $htmltext .= $key.'<br>';
323}
324$htmltext .= '</i>';
325
326// Payment numpad
327print '<tr class="oddeven"><td>';
328print $langs->trans("Paymentnumpad");
329print '<td>';
330$array = array(0 => $langs->trans("Numberspad"), 1 => $langs->trans("BillsCoinsPad"));
331print $form->selectarray('TAKEPOS_NUMPAD', $array, (!getDolGlobalString('TAKEPOS_NUMPAD') ? '0' : $conf->global->TAKEPOS_NUMPAD), 0);
332print "</td></tr>\n";
333
334// Numpad use payment icons
335/*print '<tr class="oddeven"><td>';
336print $langs->trans('TakeposNumpadUsePaymentIcon');
337print '<td colspan="2">';
338print ajax_constantonoff("TAKEPOS_NUMPAD_USE_PAYMENT_ICON", array(), $conf->entity, 0, 0, 1, 0);
339print "</td></tr>\n";
340*/
341
342// Direct Payment
343print '<tr class="oddeven"><td>';
344print $langs->trans('DirectPaymentButton');
345print '<td>';
346print ajax_constantonoff("TAKEPOS_DIRECT_PAYMENT", array(), $conf->entity, 0, 0, 1, 0);
347//print $form->selectyesno("TAKEPOS_DIRECT_PAYMENT", $conf->global->TAKEPOS_DIRECT_PAYMENT, 1);
348print "</td></tr>\n";
349
350// Head Bar
351/*print '<tr class="oddeven"><td>';
352print $langs->trans('HeadBar');
353print '<td colspan="2">';
354print $form->selectyesno("TAKEPOS_HEAD_BAR", $conf->global->TAKEPOS_HEAD_BAR, 1);
355print "</td></tr>\n";
356*/
357
358// Email template for send invoice
359print '<tr class="oddeven"><td>';
360print $langs->trans('EmailTemplate');
361print '<td>';
362include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php';
363$formmail = new FormMail($db);
364$nboftemplates = $formmail->fetchAllEMailTemplate('facture_send', $user, null, -1); // We set lang=null to get in priority record with no lang
365//$arraydefaultmessage = $formmail->getEMailTemplate($db, $tmp[1], $user, null, 0, 1, '');
366$arrayofmessagename = array();
367if (is_array($formmail->lines_model)) {
368 foreach ($formmail->lines_model as $modelmail) {
369 //var_dump($modelmail);
370 $moreonlabel = '';
371 if (!empty($arrayofmessagename[$modelmail->label])) {
372 $moreonlabel = ' <span class="opacitymedium">('.$langs->trans("SeveralLangugeVariatFound").')</span>';
373 }
374 $arrayofmessagename[$modelmail->id] = $langs->trans(preg_replace('/\‍(|\‍)/', '', $modelmail->topic)).$moreonlabel;
375 }
376}
377//var_dump($arraydefaultmessage);
378//var_dump($arrayofmessagename);
379print $form->selectarray('TAKEPOS_EMAIL_TEMPLATE_INVOICE', $arrayofmessagename, getDolGlobalString('TAKEPOS_EMAIL_TEMPLATE_INVOICE'), 'None', 1, 0, '', 0, 0, 0, '', 'maxwidth500 widthcentpercentminusx', 1);
380print "</td></tr>\n";
381
382// Control cash box at opening pos
383print '<tr class="oddeven"><td>';
384print $langs->trans('ControlCashOpening');
385print '<td>';
386print ajax_constantonoff("TAKEPOS_CONTROL_CASH_OPENING", array(), $conf->entity, 0, 0, 1, 0);
387print "</td></tr>\n";
388
389// Gift receipt
390print '<tr class="oddeven"><td>';
391print $langs->trans('GiftReceiptButton');
392print '<td>';
393print ajax_constantonoff("TAKEPOS_GIFT_RECEIPT", array(), $conf->entity, 0, 0, 1, 0);
394print "</td></tr>\n";
395
396// Delayed Pay Button
397print '<tr class="oddeven"><td>';
398print $langs->trans('AllowDelayedPayment');
399print '<td>';
400print ajax_constantonoff("TAKEPOS_DELAYED_PAYMENT", array(), $conf->entity, 0, 0, 1, 0);
401print "</td></tr>\n";
402
403// Show price without vat
404print '<tr class="oddeven"><td>';
405print $langs->trans('ShowPriceHT');
406print '<td>';
407print ajax_constantonoff("TAKEPOS_SHOW_HT", array(), $conf->entity, 0, 0, 1, 0);
408print "</td></tr>\n";
409
410// Use price excl. taxes (HT) and not price incl. taxes (TTC)
411print '<tr class="oddeven"><td>';
412print $langs->trans('UsePriceHT');
413print '</td><td>';
414print ajax_constantonoff("TAKEPOS_CHANGE_PRICE_HT", array(), $conf->entity, 0, 0, 1, 0);
415print "</td></tr>\n";
416
417// Barcode rule to insert product
418if (isModEnabled('barcode')) {
419 print '<tr class="oddeven"><td>';
420 print $form->textwithpicto($langs->trans("TakeposBarcodeRuleToInsertProduct"), $langs->trans("TakeposBarcodeRuleToInsertProductDesc"), 1, 'help', '', 0, 3, 'barcoderuleonsmartphone');
421 print '<td>';
422 print '<input type="text" name="TAKEPOS_BARCODE_RULE_TO_INSERT_PRODUCT" value="' . (getDolGlobalString('TAKEPOS_BARCODE_RULE_TO_INSERT_PRODUCT')) . '">';
423 print "</td></tr>\n";
424}
425
426// Numbering module
427//print '<tr class="oddeven"><td>';
428//print $langs->trans("BillsNumberingModule");
429//print '<td colspan="2">';
430//$array = array(0=>$langs->trans("Default"), "terminal"=>$langs->trans("ByTerminal"));
431//$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
432//foreach ($dirmodels as $reldir)
433//{
434// $dir = dol_buildpath($reldir."core/modules/facture/");
435// if (is_dir($dir))
436// {
437// $handle = opendir($dir);
438// if (is_resource($handle))
439// {
440// while (($file = readdir($handle)) !== false)
441// {
442// if (!is_dir($dir.$file) || (substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS'))
443// {
444// $filebis = $file;
445// $classname = preg_replace('/\.php$/', '', $file);
446// // For compatibility
447// if (!is_file($dir.$filebis))
448// {
449// $filebis = $file."/".$file.".modules.php";
450// $classname = "mod_facture_".$file;
451// }
452// // Check if there is a filter on country
453// preg_match('/\-(.*)_(.*)$/', $classname, $reg);
454// if (!empty($reg[2]) && $reg[2] != strtoupper($mysoc->country_code)) continue;
455//
456// $classname = preg_replace('/\-.*$/', '', $classname);
457// if (!class_exists($classname) && is_readable($dir.$filebis) && (preg_match('/mod_/', $filebis) || preg_match('/mod_/', $classname)) && substr($filebis, dol_strlen($filebis) - 3, 3) == 'php')
458// {
459// // Charging the numbering class
460// require_once $dir.$filebis;
461//
462// $module = new $classname($db);
463//
464// // Show modules according to features level
465// if ($module->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) continue;
466// if ($module->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) continue;
467//
468// if ($module->isEnabled())
469// {
470// $array[preg_replace('/\-.*$/', '', preg_replace('/\.php$/', '', $file))] = preg_replace('/\-.*$/', '', preg_replace('/mod_facture_/', '', preg_replace('/\.php$/', '', $file)));
471// }
472// }
473// }
474// }
475// closedir($handle);
476// }
477// }
478//}
479//
480//print $form->selectarray('TAKEPOS_ADDON', $array, (empty($conf->global->TAKEPOS_ADDON) ? '0' : $conf->global->TAKEPOS_ADDON), 0);
481//print "</td></tr>\n";
482
483print '</table>';
484print '</div>';
485
486
487// Sumup options
488if (getDolGlobalInt('TAKEPOS_ENABLE_SUMUP')) {
489 print '<br>';
490
491 print '<div class="div-table-responsive-no-min">';
492 print '<table class="noborder centpercent">';
493
494 print '<tr class="liste_titre">';
495 print '<td class="titlefield">'.$langs->trans("Sumup").'</td><td></td>';
496 print "</tr>\n";
497
498 print '<tr class="oddeven"><td>';
499 print $langs->trans("SumupAffiliate");
500 print '<td colspan="2">';
501 print '<input type="text" name="TAKEPOS_SUMUP_AFFILIATE" value="' . getDolGlobalString('TAKEPOS_SUMUP_AFFILIATE').'"></input>';
502 print "</td></tr>\n";
503 print '<tr class="oddeven"><td>';
504 print $langs->trans("SumupAppId");
505 print '<td colspan="2">';
506 print '<input type="text" name="TAKEPOS_SUMUP_APPID" value="' . getDolGlobalString('TAKEPOS_SUMUP_APPID').'"></input>';
507 print "</td></tr>\n";
508
509 print '</table>';
510 print '</div>';
511}
512
513print $form->buttonsSaveCancel("Save", '');
514
515print "</form>\n";
516
517llxFooter();
518$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:475
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
Definition wrapper.php:91
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:73
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.
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, $allowothertags=array())
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, $morecssdiv='')
Show tabs of a record.
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $allowothertags=array())
Show a picto called object_picto (generic function)
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:778
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.