dolibarr 21.0.0-beta
massactions_pre.tpl.php
1<?php
2/* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr>
3 * Copyright (C) 2013-2014 Laurent Destailleur <eldy@users.sourceforge.net>
4 * Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
5 * Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
6 * Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
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 * or see https://www.gnu.org/
21 */
22
23// Following var must be set:
24// $action
25// $massaction
26// $arrayofselected = array of id selected
27// $objecttmp = new MyObject($db);
28// $topicmail="SendSupplierProposalRef";
29// $modelmail="supplier_proposal_send";
30// $trackid='ord'.$objecttmp->id;
31//
32// Following var can be set
33// $object = Object fetched;
34// $sendto
35// $withmaindocfilemail
57'
58@phan-var-force CommonObject $objecttmp
59@phan-var-force int[] $toselect
60';
61
62if (!empty($sall) || !empty($search_all)) {
63 $search_all = empty($sall) ? $search_all : $sall;
64
65 print '<input type="hidden" name="search_all" value="'.$search_all.'">';
66}
67
68if ($massaction == 'predeletedraft') {
69 print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmMassDraftDeletion"), $langs->trans("ConfirmMassDeletionQuestion", count($toselect)), "delete", null, '', 0, 200, 500, 1);
70}
71
72if ($massaction == 'predelete') {
73 print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmMassDeletion"), $langs->trans("ConfirmMassDeletionQuestion", count($toselect)), "delete", null, '', 0, 200, 500, 1);
74}
75
76if ($massaction == 'preclonetasks') {
77 $selected = '';
78 foreach (GETPOST('toselect') as $tmpselected) {
79 $selected .= '&selected[]=' . $tmpselected;
80 }
81 $formquestion = array(
82 // TODO If list of project is long and project is not on a thirdparty, the combo may be very long.
83 // Solution: Allow only sameproject for cloning tasks ?
84 array('type' => 'other', 'name' => 'projectid', 'label' => $langs->trans('Project') .': ', 'value' => $form->selectProjects($object->id, 'projectid', '', 0, 1, '', 0, array(), $object->socid, '1', 1, '', null, 1)),
85 );
86 print $form->formconfirm($_SERVER['PHP_SELF'] . '?id=' . $object->id . $selected, $langs->trans('ConfirmMassClone'), '', 'clonetasks', $formquestion, '', 1, 300, 590);
87}
88
89if ($massaction == 'preaffecttag' && isModEnabled('category')) {
90 require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
91 $categ = new Categorie($db);
92 $categ_types = array();
93 $categ_type_array = $categ->getMapList();
94 foreach ($categ_type_array as $categdef) {
95 // Test on $object (should be useless, we already check on $objecttmp just after)
96 if (isset($object) && $categdef['obj_table'] == $object->table_element) {
97 if (!array_key_exists($categdef['code'], $categ_types)) {
98 $categ_types[$categdef['code']] = array('code' => $categdef['code'], 'label' => $langs->trans($categdef['obj_class']));
99 }
100 }
101 if (isset($objecttmp) && $categdef['obj_table'] == $objecttmp->table_element) {
102 if (!array_key_exists($categdef['code'], $categ_types)) {
103 $categ_types[$categdef['code']] = array('code' => $categdef['code'], 'label' => $langs->trans($categdef['obj_class']));
104 }
105 }
106 }
107
108 $formquestion = array();
109 if (!empty($categ_types)) {
110 foreach ($categ_types as $categ_type) {
111 $categ_arbo_tmp = $form->select_all_categories($categ_type['code'], '', 'parent', 0, 0, 3);
112 $formquestion[] = array(
113 'type' => 'other',
114 'name' => 'affecttag_'.$categ_type['code'],
115 'label' => '',
116 'value' => $form->multiselectarray('contcats_'.$categ_type['code'], $categ_arbo_tmp, GETPOST('contcats_'.$categ_type['code'], 'array'), null, null, '', 0, '60%', '', '', $langs->transnoentitiesnoconv("SelectTheTagsToAssign"))
117 );
118 }
119 $formquestion[] = array(
120 'type' => 'other',
121 'name' => 'affecttag_type',
122 'label' => '',
123 'value' => '<input type="hidden" name="affecttag_type" id="affecttag_type" value="'.implode(",", array_keys($categ_types)).'"/>'
124 );
125 print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmAffectTag"), $langs->trans("ConfirmAffectTagQuestion", count($toselect)), "affecttag", $formquestion, 1, 0, 200, 500, 1);
126 } else {
127 setEventMessage('CategTypeNotFound');
128 }
129}
130
131if ($massaction == 'preupdateprice') {
132 $formquestion = array();
133
134 $valuefield = '<div style="display: flex; align-items: center; justify-content: flex-end; padding-right: 150px">';
135 $valuefield .= '<input type="number" name="pricerate" id="pricerate" min="-100" value="0" style="width: 100px; text-align: right; margin-right: 10px" />%';
136 $valuefield .= '</div>';
137
138 $formquestion[] = array(
139 'type' => 'other',
140 'name' => 'pricerate',
141 'label' => $langs->trans("Rate"),
142 'value' => $valuefield
143 );
144
145 print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmUpdatePrice"), $langs->trans("ConfirmUpdatePriceQuestion", count($toselect)), "updateprice", $formquestion, 1, 0, 200, 500, 1);
146}
147
148if ($massaction == 'presetsupervisor') {
149 $formquestion = array();
150
151 $valuefield = '<div style="display: flex; align-items: center; justify-content: flex-end; padding-right: 150px">';
152 $valuefield .= img_picto('', 'user').' ';
153 $valuefield .= $form->select_dolusers('', 'supervisortoset', 1, $arrayofselected, 0, '', 0, $object->entity, 0, 0, '', 0, '', 'widthcentpercentminusx maxwidth300');
154 $valuefield .= '</div>';
155
156 $formquestion[] = array(
157 'type' => 'other',
158 'name' => 'supervisortoset',
159 'label' => $langs->trans("Supervisor"),
160 'value' => $valuefield
161 );
162
163 print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmSetSupervisor"), $langs->trans("ConfirmSetSupervisorQuestion", count($toselect)), "setsupervisor", $formquestion, 1, 0, 200, 500, 1);
164}
165
166if ($massaction == 'preaffectuser') {
167 $formquestion = array();
168
169 $valuefielduser = '<div style="display: flex; align-items: center; justify-content: flex-end; padding-right: 165px; padding-bottom: 6px; gap: 5px">';
170 $valuefielduser .= img_picto('', 'user').' ';
171 $valuefielduser .= $form->select_dolusers('', 'usertoaffect', 1, $arrayofselected, 0, '', 0, $object->entity, 0, 0, '', 0, '', 'widthcentpercentminusx maxwidth300');
172 $valuefielduser .= '</div>';
173
174 $valuefieldprojrole = '<div style="display: flex; align-items: center; justify-content: flex-end; padding-right: 150px; padding-bottom: 6px">';
175 $valuefieldprojrole .= $formcompany->selectTypeContact($object, '', 'projectrole', 'internal', 'position', 0, 'widthcentpercentminusx maxwidth300', 0);
176 $valuefieldprojrole .= '</div>';
177
178 $valuefieldtasksrole = '<div style="display: flex; align-items: center; justify-content: flex-end; padding-right: 150px">';
179 $valuefieldtasksrole .= $formcompany->selectTypeContact($taskstatic, '', 'tasksrole', 'internal', 'position', 0, 'widthcentpercentminusx maxwidth300', 0);
180 $valuefieldtasksrole .= '</div>';
181
182 $formquestion[] = array(
183 'type' => 'other',
184 'name' => 'usertoaffect',
185 'label' => $langs->trans("User"),
186 'value' => $valuefielduser
187 );
188 $formquestion[] = array(
189 'type' => 'other',
190 'name' => 'projectrole',
191 'label' => $langs->trans("ProjectRole"),
192 'value' => $valuefieldprojrole
193 );
194
195 $formquestion[] = array(
196 'type' => 'other',
197 'name' => 'tasksrole',
198 'label' => $langs->trans("TasksRole"),
199 'value' => $valuefieldtasksrole
200 );
201
202 print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmAffectUser"), $langs->trans("ConfirmAffectUserQuestion", count($toselect)), "affectuser", $formquestion, 1, 0, 200, 500, 1);
203}
204
205if ($massaction == 'presend') {
206 $langs->load("mails");
207
208 $listofselectedid = array();
209 $listofselectedrecipientobjid = array();
210 $listofselectedref = array();
211
212 if (!GETPOST('cancel', 'alpha')) {
213 foreach ($arrayofselected as $toselectid) {
214 $result = $objecttmp->fetch($toselectid);
215 if ($result > 0) {
216 $listofselectedid[$toselectid] = $toselectid;
217 $thirdpartyid = ($objecttmp->fk_soc ? $objecttmp->fk_soc : $objecttmp->socid); // For proposal, order, invoice, conferenceorbooth, ...
218 if (in_array($objecttmp->element, array('societe', 'conferenceorboothattendee'))) {
219 $thirdpartyid = $objecttmp->id;
220 } elseif ($objecttmp->element == 'contact') {
221 $thirdpartyid = $objecttmp->id;
222 } elseif ($objecttmp->element == 'expensereport') {
223 $thirdpartyid = $objecttmp->fk_user_author;
224 }
225 if (empty($thirdpartyid)) {
226 $thirdpartyid = 0;
227 }
228 if ($thirdpartyid) {
229 $listofselectedrecipientobjid[$thirdpartyid] = $thirdpartyid;
230 }
231 $listofselectedref[$thirdpartyid][$toselectid] = $objecttmp->ref;
232 }
233 }
234 }
235
236 print '<input type="hidden" name="massaction" value="confirm_presend">';
237
238 print dol_get_fiche_head([], '', '');
239
240 // Create mail form
241 include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php';
242 $formmail = new FormMail($db);
243 $formmail->withform = -1;
244 $formmail->fromtype = (GETPOST('fromtype') ? GETPOST('fromtype') : (getDolGlobalString('MAIN_MAIL_DEFAULT_FROMTYPE') ? $conf->global->MAIN_MAIL_DEFAULT_FROMTYPE : 'user'));
245
246 if ($formmail->fromtype === 'user') {
247 $formmail->fromid = $user->id;
248 }
249 $formmail->trackid = $trackid;
250 $formmail->withfrom = 1;
251 $liste = $langs->trans("AllRecipientSelected", count($arrayofselected));
252 if (count($listofselectedrecipientobjid) == 1) { // Only 1 different recipient selected, we can suggest contacts
253 $liste = array();
254 $thirdpartyid = array_shift($listofselectedrecipientobjid);
255 if ($objecttmp->element == 'expensereport') {
256 $fuser = new User($db);
257 $fuser->fetch($thirdpartyid);
258 $liste['thirdparty'] = $fuser->getFullName($langs)." &lt;".$fuser->email."&gt;";
259 } elseif ($objecttmp->element == 'contact') {
260 $fcontact = new Contact($db);
261 $fcontact->fetch($thirdpartyid);
262 $liste['contact'] = $fcontact->getFullName($langs)." &lt;".$fcontact->email."&gt;";
263 } elseif ($objecttmp->element == 'partnership' && getDolGlobalString('PARTNERSHIP_IS_MANAGED_FOR') == 'member') {
264 $fadherent = new Adherent($db);
265 $fadherent->fetch($objecttmp->fk_member);
266 $liste['member'] = $fadherent->getFullName($langs)." &lt;".$fadherent->email."&gt;";
267 } else {
268 $soc = new Societe($db);
269 $soc->fetch($thirdpartyid);
270 foreach ($soc->thirdparty_and_contact_email_array(1) as $key => $value) {
271 $liste[$key] = $value;
272 }
273 }
274 $formmail->withtoreadonly = 0;
275 } else {
276 $formmail->withtoreadonly = 1;
277 }
278
279
280 $formmail->withoptiononeemailperrecipient = ((count($listofselectedref) == 1 && count(reset($listofselectedref)) == 1) || empty($liste)) ? 0 : (GETPOSTINT('oneemailperrecipient') ? 1 : -1);
281 if (in_array($objecttmp->element, array('conferenceorboothattendee'))) {
282 $formmail->withoptiononeemailperrecipient = 0;
283 }
284
285 $formmail->withto = empty($liste) ? (GETPOST('sendto', 'alpha') ? GETPOST('sendto', 'alpha') : array()) : $liste;
286 $formmail->withtofree = empty($liste) ? 1 : 0;
287 $formmail->withtocc = 1;
288 $formmail->withtoccc = getDolGlobalString('MAIN_EMAIL_USECCC');
289 if (!empty($topicmail)) {
290 $formmail->withtopic = $langs->transnoentities($topicmail, '__REF__', '__REF_CLIENT__');
291 } else {
292 $formmail->withtopic = 1;
293 }
294 if ($objecttmp->element == 'contact') {
295 $formmail->withfile = 0;
296 $formmail->withmaindocfile = 0; // Add a checkbox "Attach also main document"
297 } else {
298 $formmail->withfile = 1; // $formmail->withfile = 2 to allow to upload files is not yet supported in mass action
299 // Add a checkbox "Attach also main document"
300 if (isset($withmaindocfilemail)) {
301 $formmail->withmaindocfile = $withmaindocfilemail;
302 } else { // Do an automatic definition of $formmail->withmaindocfile
303 $formmail->withmaindocfile = 1;
304 if ($objecttmp->element != 'societe') {
305 $formmail->withfile = '<span class="hideonsmartphone opacitymedium">' . $langs->trans("OnlyPDFattachmentSupported") . '</span>';
306 $formmail->withmaindocfile = -1; // Add a checkbox "Attach also main document" but not checked by default
307 }
308 }
309 }
310
311 $formmail->withbody = 1;
312 $formmail->withdeliveryreceipt = 1;
313 $formmail->withcancel = 1;
314
315 // Make substitution in email content
316 $substitutionarray = getCommonSubstitutionArray($langs, 0, null, $object);
317
318 $substitutionarray['__EMAIL__'] = $sendto;
319 $substitutionarray['__CHECK_READ__'] = '<img src="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-read.php?tag=undefined&securitykey='.dol_hash(getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY')."-undefined", 'md5').'" width="1" height="1" style="width:1px;height:1px" border="0"/>';
320 $substitutionarray['__ONLINE_PAYMENT_URL__'] = 'UrlToPayOnlineIfApplicable';
321 $substitutionarray['__ONLINE_PAYMENT_TEXT_AND_URL__'] = 'TextAndUrlToPayOnlineIfApplicable';
322 $substitutionarray['__THIRDPARTY_NAME__'] = '__THIRDPARTY_NAME__';
323 $substitutionarray['__PROJECT_NAME__'] = '__PROJECT_NAME__';
324
325 $parameters = array(
326 'mode' => 'formemail'
327 );
328 complete_substitutions_array($substitutionarray, $langs, $object, $parameters);
329
330 // Array of substitutions
331 $formmail->substit = $substitutionarray;
332
333 // Tableau des parameters complementaires du post
334 $formmail->param['action'] = $action;
335 $formmail->param['models'] = $modelmail; // the filter to know which kind of template emails to show. 'none' means no template suggested.
336 $formmail->param['models_id'] = GETPOSTINT('modelmailselected') ? GETPOSTINT('modelmailselected') : '-1';
337 $formmail->param['id'] = implode(',', $arrayofselected);
338 // $formmail->param['returnurl']=$_SERVER["PHP_SELF"].'?id='.$object->id;
339 if (getDolGlobalString('MAILING_LIMIT_SENDBYWEB') && count($listofselectedrecipientobjid) > $conf->global->MAILING_LIMIT_SENDBYWEB) {
340 // Note: MAILING_LIMIT_SENDBYWEB may be forced by conf.php file and variable $dolibarr_mailing_limit_sendbyweb
341 $langs->load("errors");
342 print img_warning().' '.$langs->trans('WarningNumberOfRecipientIsRestrictedInMassAction', getDolGlobalString('MAILING_LIMIT_SENDBYWEB'));
343 print ' - <a href="javascript: window.history.go(-1)">'.$langs->trans("GoBack").'</a>';
344 $arrayofmassactions = array();
345 } else {
346 print $formmail->get_form();
347 }
348
349 print dol_get_fiche_end();
350}
351
352if ($massaction == 'edit_extrafields') {
353 require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
354 $elementtype = $objecttmp->element;
356 $extrafields = new ExtraFields($db);
357 $keysuffix = '';
358 $extrafields->fetch_name_optionals_label($elementtype);
359 $extrafields_list = $extrafields->attributes[$elementtype]['label'];
360
361 $formquestion = array();
362 if (!empty($extrafields_list)) {
363 $myParamExtra = $object->showOptionals($extrafields, 'create');
364
365 foreach ($extrafields_list as $extraKey => $extraLabel) {
366 $extrafields_list[$extraKey] = $langs->trans($extraLabel);
367 }
368
369 $formquestion[] = array(
370 'type' => 'other',
371 'value' => $form->selectarray('extrafield-key-to-update', $extrafields_list, GETPOST('extrafield-key-to-update'), 1)
372 );
373
374
375 $outputShowOutputFields = '<div class="extrafields-inputs">';
376
377 foreach ($extrafields_list as $extraKey => $extraLabel) {
378 $outputShowOutputFields .= '<div class="mass-action-extrafield" data-extrafield="'.$extraKey.'" style="display:none;" >';
379 $outputShowOutputFields .= '<br><span>'. $langs->trans('NewValue').'</span>';
380 $outputShowOutputFields .= $extrafields->showInputField($extraKey, '', '', $keysuffix, '', 0, $objecttmp, $objecttmp->table_element);
381 $outputShowOutputFields .= '</div>';
382 }
383 $outputShowOutputFields .= '<script>
384 jQuery(function($) {
385 $("#extrafield-key-to-update").on(\'change\',function(){
386 let selectedExtrtafield = $(this).val();
387 if($(".extrafields-inputs .product_extras_"+selectedExtrtafield) != undefined){
388 $(".mass-action-extrafield").hide();
389 $(".mass-action-extrafield[data-extrafield=" + selectedExtrtafield + "]").show();
390 }
391 });
392 });
393 </script>';
394 $outputShowOutputFields .= '</div>';
395
396
397
398 $formquestion[] = array(
399 'type' => 'other',
400 'value' => $outputShowOutputFields
401 );
402
403 print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmEditExtrafield"), $langs->trans("ConfirmEditExtrafieldQuestion", count($toselect)), "confirm_edit_value_extrafields", $formquestion, 1, 0, 200, 500, 1);
404 } else {
405 setEventMessage($langs->trans("noExtrafields"));
406 }
407}
408
409if ($massaction == 'preenable') {
410 print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmMassEnabling"), $langs->trans("ConfirmMassEnablingQuestion", count($toselect)), "enable", null, 'yes', 0, 200, 500, 1);
411}
412if ($massaction == 'predisable') {
413 print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmMassDisabling"), $langs->trans("ConfirmMassDisablingQuestion", count($toselect)), "disable", null, '', 0, 200, 500, 1);
414}
415if ($massaction == 'presetcommercial') {
416 $formquestion = array();
417 $userlist = $form->select_dolusers('', '', 0, null, 0, '', '', 0, 0, 0, 'AND u.statut = 1', 0, '', '', 0, 1);
418 $formquestion[] = array('type' => 'other',
419 'name' => 'affectedcommercial',
420 'label' => $form->editfieldkey('AllocateCommercial', 'commercial_id', '', $object, 0),
421 'value' => $form->multiselectarray('commercial', $userlist, null, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0, '', '', '', 1));
422 print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmAllocateCommercial"), $langs->trans("ConfirmAllocateCommercialQuestion", count($toselect)), "affectcommercial", $formquestion, 1, 0, 200, 500, 1);
423}
424if ($massaction == 'unsetcommercial') {
425 $formquestion = array();
426 $userlist = $form->select_dolusers('', '', 0, null, 0, '', '', 0, 0, 0, 'AND u.statut = 1', 0, '', '', 0, 1);
427 $formquestion[] = array('type' => 'other',
428 'name' => 'unassigncommercial',
429 'label' => $form->editfieldkey('UnallocateCommercial', 'commercial_id', '', $object, 0),
430 'value' => $form->multiselectarray('commercial', $userlist, null, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0, '', '', '', 1));
431 print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmUnallocateCommercial"), $langs->trans("ConfirmUnallocateCommercialQuestion", count($toselect)), "unassigncommercial", $formquestion, 1, 0, 200, 500, 1);
432}
433
434if ($massaction == 'preapproveleave') {
435 print $form->formconfirm($_SERVER["PHP_SELF"], $langs->trans("ConfirmMassLeaveApproval"), $langs->trans("ConfirmMassLeaveApprovalQuestion", count($toselect)), "approveleave", null, 'yes', 0, 200, 500, 1);
436}
437
438// Allow Pre-Mass-Action hook (eg for confirmation dialog)
439if (empty($toselect)) {
440 $toselect=[];
441}
442$parameters = array(
443 'toselect' => &$toselect,
444 'uploaddir' => isset($uploaddir) ? $uploaddir : null,
445 'massaction' => $massaction
446);
447
448$reshook = $hookmanager->executeHooks('doPreMassActions', $parameters, $object, $action);
449if ($reshook < 0) {
450 setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
451} else {
452 print $hookmanager->resPrint;
453}
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Definition card.php:66
Class to manage members of a foundation.
Class to manage categories.
Class to manage contact/addresses.
Class to manage standard extra fields.
Class permettant la generation du formulaire html d'envoi de mail unitaire Usage: $formail = new Form...
Class to manage third parties objects (customers, suppliers, prospects...)
Class to manage Dolibarr users.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
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.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
setEventMessage($mesgs, $style='mesgs', $noduplicate=0, $attop=0)
Set event message in dol_events session object.
complete_substitutions_array(&$substitutionarray, $outputlangs, $object=null, $parameters=null, $callfunc="completesubstitutionarray")
Complete the $substitutionarray with more entries coming from external module that had set the "subst...
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getCommonSubstitutionArray($outputlangs, $onlykey=0, $exclude=null, $object=null, $include=null)
Return array of possible common substitutions.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
Definition member.php:79
dol_hash($chain, $type='0', $nosalt=0)
Returns a hash (non reversible encryption) of a string.