28require
'../../main.inc.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/lib/prelevement.lib.php';
30require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
31require_once DOL_DOCUMENT_ROOT.
'/compta/prelevement/class/ligneprelevement.class.php';
32require_once DOL_DOCUMENT_ROOT.
'/compta/prelevement/class/bonprelevement.class.php';
33require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
36$langs->loadLangs(array(
'banks',
'categories',
'bills',
'companies',
'withdrawals'));
39$action =
GETPOST(
'action',
'aZ09');
43$socid =
GETPOST(
'socid',
'int');
45$date_trans =
dol_mktime(
GETPOST(
'date_transhour',
'int'),
GETPOST(
'date_transmin',
'int'),
GETPOST(
'date_transsec',
'int'),
GETPOST(
'date_transmonth',
'int'),
GETPOST(
'date_transday',
'int'),
GETPOST(
'date_transyear',
'int'));
48$limit =
GETPOST(
'limit',
'int') ?
GETPOST(
'limit',
'int') : $conf->liste_limit;
49$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
50$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
51$page = GETPOSTISSET(
'pageplusone') ? (
GETPOST(
'pageplusone') - 1) :
GETPOST(
"page",
'int');
52if (empty($page) || $page == -1) {
55$offset = $limit * $page;
60 $sortfield =
'pl.rowid';
69include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
71$hookmanager->initHooks(array(
'directdebitprevcard',
'globalcard',
'directdebitprevlist'));
75$salaryBonPl = $object->checkIfSalaryBonPrelevement();
76if ($type ==
'bank-transfer') {
77 $result =
restrictedArea($user,
'paymentbybanktransfer',
'',
'',
'');
79 $permissiontoadd = $user->hasRight(
'paymentbybanktransfer',
'read');
80 $permissiontosend = $user->hasRight(
'paymentbybanktransfer',
'send');
81 $permissiontocreditdebit = $user->hasRight(
'paymentbybanktransfer',
'debit');
82 $permissiontodelete = $user->hasRight(
'paymentbybanktransfer',
'read');
86 $permissiontoadd = $user->hasRight(
'prelevement',
'bons',
'read');
87 $permissiontosend = $user->hasRight(
'prelevement',
'bons',
'send');
88 $permissiontocreditdebit = $user->hasRight(
'prelevement',
'bons',
'credit');
89 $permissiontodelete = $user->hasRight(
'prelevement',
'bons',
'read');
98$parameters = array(
'socid' => $socid);
99$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
104if (empty($reshook)) {
105 if ($action ==
'setbankaccount' && $permissiontoadd) {
106 $object->oldcopy =
dol_clone($object, 2);
107 $object->fk_bank_account =
GETPOST(
'fk_bank_account',
'int');
108 $object->update($user);
112 if ($action ==
'setdate_trans' && $permissiontoadd) {
113 $result = $object->setValueFrom(
'date_trans', $date_trans,
'',
null,
'date');
119 if ($action ==
'infotrans' && $permissiontosend) {
120 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
143 $error = $object->set_infotrans($user, $dt,
GETPOST(
'methode',
'alpha'));
146 header(
"Location: card.php?id=".$id.
"&error=$error");
152 if ($action ==
'setinfocredit' && $permissiontocreditdebit) {
155 if (($object->type !=
'bank-transfer' && $object->statut == BonPrelevement::STATUS_CREDITED) || ($object->type ==
'bank-transfer' && $object->statut == BonPrelevement::STATUS_DEBITED)) {
159 $error = $object->set_infocredit($user, $dt, ($salaryBonPl ?
'salary' :
''));
167 if ($action ==
'reopen' && $permissiontocreditdebit) {
168 $savtype = $object->type;
169 $res = $object->setStatut(BonPrelevement::STATUS_TRANSFERED);
175 if ($action ==
'confirm_delete' && $permissiontodelete) {
176 $savtype = $object->type;
177 $res = $object->delete($user);
179 if ($savtype ==
'bank-transfer') {
180 header(
"Location: ".DOL_URL_ROOT.
'/compta/paymentbybanktransfer/index.php');
182 header(
"Location: ".DOL_URL_ROOT.
'/compta/prelevement/index.php');
195$form =
new Form($db);
197llxHeader(
'', $langs->trans(
"WithdrawalsReceipts"));
199if ($id > 0 || $ref) {
201 print
dol_get_fiche_head($head,
'prelevement', $langs->trans(
"WithdrawalsReceipts"), -1,
'payment');
203 if (
GETPOST(
'error',
'alpha') !=
'') {
204 print
'<div class="error">'.$object->getErrorString(
GETPOST(
'error',
'alpha')).
'</div>';
207 $linkback =
'<a href="'.DOL_URL_ROOT.
'/compta/prelevement/orders_list.php?restore_lastsearch_values=1'.($object->type !=
'bank-transfer' ?
'' :
'&type=bank-transfer').
'">'.$langs->trans(
"BackToList").
'</a>';
211 print
'<div class="fichecenter">';
212 print
'<div class="underbanner clearboth"></div>';
213 print
'<table class="border centpercent tableforfield">';
216 print
'<tr><td class="titlefieldcreate">'.$langs->trans(
"Date").
'</td><td>'.
dol_print_date($object->datec,
'day').
'</td></tr>';
218 print
'<tr><td>'.$langs->trans(
"Amount").
'</td><td><span class="amount">'.
price($object->amount).
'</span></td></tr>';
221 if (!empty($object->date_trans)) {
222 $muser =
new User($db);
223 $muser->fetch($object->user_trans);
227 print
'<table class="nobordernopadding centpercent"><tr><td>';
228 print $langs->trans(
'TransData');
230 if ($action !=
'editdate_trans') {
231 print
'<td class="right"><a class="editfielda" href="'.$_SERVER[
"PHP_SELF"].
'?action=editdate_trans&token='.newToken().
'&id='.$object->id.
'">'.
img_edit($langs->trans(
'SetTransDate'), 1).
'</a></td>';
233 print
'</tr></table>';
235 if ($action ==
'editdate_trans') {
236 print
'<form name="setdate_trans" action="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'" method="post">';
237 print
'<input type="hidden" name="token" value="'.newToken().
'">';
238 print
'<input type="hidden" name="action" value="setdate_trans">';
239 print $form->selectDate($object->date_trans ? $object->date_trans : -1,
'date_trans', 0,
'',
"setdate_trans");
240 print
'<input type="submit" class="button button-edit smallpaddingimp valign middle" value="'.$langs->trans(
'Modify').
'">';
243 print $object->date_trans ?
dol_print_date($object->date_trans,
'day') :
'';
244 print
' <span class="opacitymedium">'.$langs->trans(
"By").
'</span> '.$muser->getNomUrl(-1).
'</td>';
250 print
'<tr><td>'.$langs->trans(
"TransMetod").
'</td><td>';
251 print $object->methodes_trans[$object->method_trans];
256 if (!empty($object->date_credit)) {
257 print
'<tr><td>'.$langs->trans(
'CreditDate').
'</td><td>';
266 print
'<div class="underbanner clearboth"></div>';
267 print
'<table class="border centpercent tableforfield">';
271 $fk_bank_account = $object->fk_bank_account;
272 if (empty($fk_bank_account)) {
273 $fk_bank_account = ($object->type ==
'bank-transfer' ?
getDolGlobalInt(
'PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT') :
getDolGlobalInt(
'PRELEVEMENT_ID_BANKACCOUNT'));
275 if ($fk_bank_account > 0) {
276 $result = $acc->fetch($fk_bank_account);
280 $labelofbankfield =
"BankToReceiveWithdraw";
281 if ($object->type ==
'bank-transfer') {
282 $labelofbankfield =
'BankToPayCreditTransfer';
285 $caneditbank = $permissiontoadd;
286 if ($object->status != $object::STATUS_DRAFT) {
298 print
'<tr><td class="titlefieldcreate">';
299 print
'<table class="nobordernopadding centpercent"><tr><td class="nowrap">';
300 print $form->textwithpicto($langs->trans(
"BankAccount"), $langs->trans($labelofbankfield));
302 if (($action !=
'editbankaccount') && $caneditbank) {
303 print
'<td class="right"><a class="editfielda" href="'.$_SERVER[
"PHP_SELF"].
'?action=editfkbankaccount&token='.newToken().
'&id='.$object->id.
'">'.
img_edit($langs->trans(
'SetBankAccount'), 1).
'</a></td>';
305 print
'</tr></table>';
307 if ($action ==
'editfkbankaccount') {
308 $form->formSelectAccount($_SERVER[
'PHP_SELF'].
'?id='.$object->id, $fk_bank_account,
'fk_bank_account', 0);
310 $form->formSelectAccount($_SERVER[
'PHP_SELF'].
'?id='.$object->id, $fk_bank_account,
'none');
316 print
'<tr><td class="titlefieldcreate">';
317 $labelfororderfield =
'WithdrawalFile';
318 if ($object->type ==
'bank-transfer') {
319 $labelfororderfield =
'CreditTransferFile';
321 print $langs->trans($labelfororderfield).
'</td><td>';
323 $modulepart =
'prelevement';
324 if ($object->type ==
'bank-transfer') {
325 $modulepart =
'paymentbybanktransfer';
328 if (isModEnabled(
'multicompany')) {
329 $labelentity = $conf->entity;
330 $relativepath =
'receipts/'.$object->ref.
'-'.$labelentity.
'.xml';
332 if ($type !=
'bank-transfer') {
333 $dir = $conf->prelevement->dir_output;
335 $dir = $conf->paymentbybanktransfer->dir_output;
338 $relativepath =
'receipts/'.$object->ref.
'.xml';
341 $relativepath =
'receipts/'.$object->ref.
'.xml';
344 print
'<a data-ajax="false" href="'.DOL_URL_ROOT.
'/document.php?type=text/plain&modulepart='.$modulepart.
'&file='.urlencode($relativepath).
'">'.$relativepath;
345 print
img_picto(
'',
'download',
'class="paddingleft"');
350 $parameters = array();
351 $reshook = $hookmanager->executeHooks(
'formObjectOptions', $parameters, $object, $action);
352 print $hookmanager->resPrint;
364 if ($action ==
'delete') {
365 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'Delete'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
378 if (empty($object->date_trans) && (($user->hasRight(
'prelevement',
'bons',
'send') && $object->type !=
'bank-transfer') || ($user->hasRight(
'paymentbybanktransfer',
'send') && $object->type ==
'bank-transfer')) && $action ==
'settransmitted') {
379 print
'<form method="post" name="userfile" action="card.php?id='.$object->id.
'" enctype="multipart/form-data">';
380 print
'<input type="hidden" name="token" value="'.newToken().
'">';
381 print
'<input type="hidden" name="action" value="infotrans">';
382 print
'<table class="noborder centpercent">';
383 print
'<tr class="liste_titre">';
384 print
'<td colspan="3">'.$langs->trans(
"NotifyTransmision").
'</td></tr>';
385 print
'<tr class="oddeven"><td>'.$langs->trans(
"TransData").
'</td><td>';
386 print $form->selectDate(
'',
'',
'',
'',
'',
"userfile", 1, 1);
388 print
'<tr class="oddeven"><td>'.$langs->trans(
"TransMetod").
'</td><td>';
389 print $form->selectarray(
"methode", $object->methodes_trans);
392 print
'<div class="center"><input type="submit" class="button" value="'.dol_escape_htmltag($langs->trans(
"SetToStatusSent")).
'"></div>';
397 if ($object->status == BonPrelevement::STATUS_TRANSFERED && (($user->hasRight(
'prelevement',
'bons',
'credit') && $object->type !=
'bank-transfer') || ($user->hasRight(
'paymentbybanktransfer',
'debit') && $object->type ==
'bank-transfer')) && $action ==
'setcredited') {
398 $btnLabel = ($object->type ==
'bank-transfer') ? $langs->trans(
"ClassDebited") : $langs->trans(
"ClassCredited");
399 print
'<form name="infocredit" method="post" action="card.php?id='.$object->id.
'">';
400 print
'<input type="hidden" name="token" value="'.newToken().
'">';
401 print
'<input type="hidden" name="action" value="setinfocredit">';
402 print
'<table class="noborder centpercent">';
403 print
'<tr class="liste_titre">';
404 print
'<td colspan="3">'.$langs->trans(
"NotifyCredit").
'</td></tr>';
405 print
'<tr class="oddeven"><td>'.$langs->trans(
'CreditDate').
'</td><td>';
406 print $form->selectDate(-1,
'',
'',
'',
'',
"infocredit", 1, 1);
409 print
'<br><div class="center"><span class="opacitymedium">'.$langs->trans(
"ThisWillAlsoAddPaymentOnInvoice").
'</span></div>';
410 print
'<div class="center"><input type="submit" class="button" value="'.dol_escape_htmltag($btnLabel).
'"></div>';
416 if ($action !=
'settransmitted' && $action !=
'setcredited') {
417 print
"\n".
'<div class="tabsAction">'.
"\n";
418 $parameters = array();
419 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
420 if (empty($reshook)) {
421 if (empty($object->date_trans)) {
422 if ($object->type ==
'bank-transfer') {
423 print
dolGetButtonAction($langs->trans(
"SetToStatusSent"),
'',
'default',
'card.php?action=settransmitted&token='.newToken().
'&id='.$object->id,
'', $user->hasRight(
'paymentbybanktransfer',
'send'));
425 print
dolGetButtonAction($langs->trans(
"SetToStatusSent"),
'',
'default',
'card.php?action=settransmitted&token='.newToken().
'&id='.$object->id,
'', $user->hasRight(
'prelevement',
'bons',
'send'));
429 if ($object->status == BonPrelevement::STATUS_TRANSFERED) {
430 if ($object->type ==
'bank-transfer') {
431 print
dolGetButtonAction($langs->trans(
"ClassDebited"),
'',
'default',
'card.php?action=setcredited&token='.newToken().
'&id='.$object->id,
'', $user->hasRight(
'paymentbybanktransfer',
'debit'));
433 print
dolGetButtonAction($langs->trans(
"ClassCredited"),
'',
'default',
'card.php?action=setcredited&token='.newToken().
'&id='.$object->id,
'', $user->hasRight(
'prelevement',
'bons',
'credit'));
438 if ($object->status == BonPrelevement::STATUS_DEBITED || $object->status == BonPrelevement::STATUS_CREDITED) {
439 if ($object->type ==
'bank-transfer') {
440 print
dolGetButtonAction($langs->trans(
"ReOpen"),
'',
'default',
'card.php?action=reopen&token='.newToken().
'&id='.$object->id,
'', $user->hasRight(
'paymentbybanktransfer',
'debit'));
442 print
dolGetButtonAction($langs->trans(
"ReOpen"),
'',
'default',
'card.php?action=reopen&token='.newToken().
'&id='.$object->id,
'', $user->hasRight(
'prelevement',
'bons',
'credit'));
447 if ($object->type ==
'bank-transfer') {
448 print
dolGetButtonAction($langs->trans(
"Delete"),
'',
'delete',
'card.php?action=delete&token='.newToken().
'&id='.$object->id,
'', $user->hasRight(
'paymentbybanktransfer',
'create'));
450 print
dolGetButtonAction($langs->trans(
"Delete"),
'',
'delete',
'card.php?action=delete&token='.newToken().
'&id='.$object->id,
'', $user->hasRight(
'prelevement',
'bons',
'creer'));
461 $sql =
"SELECT pl.rowid, pl.statut, pl.amount, pl.fk_user,";
462 $sql .=
" u.rowid as socid, u.login as name";
463 $sql .=
" FROM ".MAIN_DB_PREFIX.
"prelevement_lignes as pl";
464 $sql .=
", ".MAIN_DB_PREFIX.
"prelevement_bons as pb";
465 $sql .=
", ".MAIN_DB_PREFIX.
"user as u";
466 $sql .=
" WHERE pl.fk_prelevement_bons = ".((int) $id);
467 $sql .=
" AND pl.fk_prelevement_bons = pb.rowid";
468 $sql .=
" AND pb.entity = ".((int) $conf->entity);
469 $sql .=
" AND pl.fk_user = u.rowid";
471 $sql .=
" AND u.rowid = ".((int) $socid);
473 $sql .= $db->order($sortfield, $sortorder);
475 $sql =
"SELECT pl.rowid, pl.statut, pl.amount,";
476 $sql .=
" s.rowid as socid, s.nom as name";
477 $sql .=
" FROM ".MAIN_DB_PREFIX.
"prelevement_lignes as pl";
478 $sql .=
", ".MAIN_DB_PREFIX.
"prelevement_bons as pb";
479 $sql .=
", ".MAIN_DB_PREFIX.
"societe as s";
480 $sql .=
" WHERE pl.fk_prelevement_bons = ".((int) $id);
481 $sql .=
" AND pl.fk_prelevement_bons = pb.rowid";
482 $sql .=
" AND pb.entity = ".((int) $conf->entity);
483 $sql .=
" AND pl.fk_soc = s.rowid";
485 $sql .=
" AND s.rowid = ".((int) $socid);
487 $sql .= $db->order($sortfield, $sortorder);
490 $nbtotalofrecords =
'';
492 $result = $db->query($sql);
493 $nbtotalofrecords = $db->num_rows($result);
494 if (($page * $limit) > $nbtotalofrecords) {
501 $sql .= $db->plimit($limit + 1, $offset);
503 $result = $db->query($sql);
506 $num = $db->num_rows($result);
509 $urladd =
"&id=".urlencode($id);
510 if ($limit > 0 && $limit != $conf->liste_limit) {
511 $urladd .=
'&limit='.((int) $limit);
514 print
'<form method="POST" action="'.$_SERVER [
'PHP_SELF'].
'" name="search_form">'.
"\n";
515 print
'<input type="hidden" name="token" value="'.newToken().
'"/>';
516 print
'<input type="hidden" name="id" value="'.$id.
'"/>';
517 print
'<input type="hidden" name="socid" value="'.$socid.
'"/>';
519 print
'<input type="hidden" name="page" value="'.$page.
'"/>';
521 if (!empty($limit)) {
522 print
'<input type="hidden" name="limit" value="'.$limit.
'"/>';
524 if (!empty($sortfield)) {
525 print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'"/>';
527 if (!empty($sortorder)) {
528 print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'"/>';
530 print_barre_liste($langs->trans(
"Lines"), $page, $_SERVER[
"PHP_SELF"], $urladd, $sortfield, $sortorder,
'', $num, $nbtotalofrecords,
'', 0,
'',
'', $limit);
532 print
'<div class="div-table-responsive-no-min">';
533 print
'<table class="noborder liste centpercent">';
534 print
'<tr class="liste_titre">';
536 print_liste_field_titre((!$salaryBonPl ?
"ThirdParty" :
"Employee"), $_SERVER[
"PHP_SELF"],
"s.nom",
'', $urladd,
'', $sortfield, $sortorder);
537 print_liste_field_titre(
"Amount", $_SERVER[
"PHP_SELF"],
"pl.amount",
"", $urladd,
'class="right"', $sortfield, $sortorder);
543 while ($i < min($num, $limit)) {
544 $obj = $db->fetch_object($result);
546 print
'<tr class="oddeven">';
550 print
'<a class="valignmiddle" href="'.DOL_URL_ROOT.
'/compta/prelevement/line.php?id='.$obj->rowid.
'&type='.$object->type.
'&token='.newToken().
'">';
551 print $ligne->LibStatut($obj->statut, 2);
552 print
'<span class="paddingleft">'.$obj->rowid.
'</span>';
555 $thirdparty =
new Societe($db);
556 $thirdparty->fetch($obj->socid);
558 $userSalary =
new User($db);
559 $userSalary->fetch($obj->fk_user);
562 print(!$salaryBonPl ? $thirdparty->getNomUrl(1) : $userSalary->getNomUrl(-1));
565 print
'<td class="right"><span class="amount">'.price($obj->amount).
"</span></td>\n";
567 print
'<td class="right">';
569 if ($obj->statut == 3) {
570 print
'<span class="error">'.$langs->trans(
"StatusRefused").
'</span>';
572 if ($object->statut == BonPrelevement::STATUS_CREDITED) {
573 if ($obj->statut == LignePrelevement::STATUS_CREDITED) {
574 if ($user->hasRight(
'prelevement',
'bons',
'credit')) {
576 print
'<a href="line.php?action=rejet&type='.$object->type.
'&id='.$obj->rowid.
'&token='.newToken().
'">'.$langs->trans(
"StandingOrderReject").
'</a>';
588 $total += $obj->amount;
596 print
'<tr class="liste_total">';
597 print
'<td>'.$langs->trans(
"Total").
'</td>';
598 print
'<td> </td>';
599 print
'<td class="right">';
600 if (empty($offset) && $num <= $limit) {
602 if ($total != $object->amount) {
603 print
img_warning($langs->trans(
"TotalAmountOfdirectDebitOrderDiffersFromSumOfLines"));
608 print
'<td> </td>';
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
Class to manage bank accounts.
Class to manage withdrawal receipts.
Class to manage withdrawals.
Class to manage third parties objects (customers, suppliers, prospects...)
Class to manage Dolibarr users.
dol_is_file($pathoffile)
Return if path is a file.
dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='rowid', $fieldref='ref', $morehtmlref='', $moreparam='', $nodbprefix=0, $morehtmlleft='', $morehtmlstatus='', $onlybanner=0, $morehtmlright='')
Show tab footer of a card.
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm='auto', $check=1)
Return a timestamp date built from detailed informations (by default a local PHP server timestamp) Re...
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
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.
price2num($amount, $rounding='', $option=0)
Function that return a number with universal decimal format (decimal separator is '.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
dol_get_fiche_end($notab=0)
Return tab footer of a card.
price($amount, $form=0, $outlangs='', $trunc=1, $rounding=-1, $forcerounding=-1, $currency_code='')
Function to format a value into an amount for visual output Function used into PDF and HTML pages.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
dol_clone($object, $native=0)
Create a clone of instance of object (new instance with same value for each properties) With native =...
dolGetButtonAction($label, $text='', $actionType='default', $url='', $id='', $userRight=1, $params=array())
Function dolGetButtonAction.
print_liste_field_titre($name, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $tooltip="", $forcenowrapcolumntitle=0)
Show title line of an array.
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.
print_barre_liste($titre, $page, $file, $options='', $sortfield='', $sortorder='', $morehtmlcenter='', $num=-1, $totalnboflines='', $picto='generic', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limit=-1, $hideselectlimit=0, $hidenavigation=0, $pagenavastextinput=0, $morehtmlrightbeforearrow='')
Print a title with navigation controls for pagination.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
img_edit($titlealt='default', $float=0, $other='')
Show logo editer/modifier fiche.
prelevement_prepare_head(BonPrelevement $object)
Prepare array with list of tabs.
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.