29require
'../main.inc.php';
30require_once DOL_DOCUMENT_ROOT.
'/resource/class/dolresource.class.php';
33$langs->loadLangs(array(
"resource",
"companies",
"other"));
37$action =
GETPOST(
'action',
'alpha');
38$massaction =
GETPOST(
'massaction',
'alpha');
39$confirm =
GETPOST(
'confirm',
'alpha');
40$toselect =
GETPOST(
'toselect',
'array');
41$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'interventionlist';
44$element =
GETPOST(
'element',
'alpha');
48$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
49$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
50$optioncss =
GETPOST(
'optioncss',
'alpha');
53$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'resourcelist';
60$extrafields->fetch_name_optionals_label(
$object->table_element);
61$search_array_options = $extrafields->getOptionalsFromPost(
$object->table_element,
'',
'search_');
62if (!is_array($search_array_options)) {
63 $search_array_options = array();
65$search_ref =
GETPOST(
"search_ref",
'alpha');
66$search_type =
GETPOST(
"search_type",
'alpha');
67$search_address =
GETPOST(
"search_address",
'alpha');
68$search_zip =
GETPOST(
"search_zip",
'alpha');
69$search_town =
GETPOST(
"search_town",
'alpha');
70$search_state =
GETPOST(
"search_state",
'alpha');
71$search_country =
GETPOST(
"search_country",
'alpha');
72$search_phone =
GETPOST(
"search_phone",
'alpha');
73$search_email =
GETPOST(
"search_email",
'alpha');
74$search_max_users =
GETPOST(
"search_max_users",
'alpha');
75$search_url =
GETPOST(
"search_url",
'alpha');
79$hookmanager->initHooks(array(
'resourcelist'));
81if (empty($sortorder)) {
84if (empty($sortfield)) {
88$search_all = trim(
GETPOST(
'search_all',
'alphanohtml'));
94if (empty($page) || $page == -1) {
97$offset = $limit * $page;
103 'label' => $langs->trans(
"Ref"),
108 'label' => $langs->trans(
"Type"),
112 't.address' => array(
113 'label' => $langs->trans(
"Address"),
118 'label' => $langs->trans(
"Zip"),
123 'label' => $langs->trans(
"Town"),
128 'label' => $langs->trans(
"State"),
133 'label' => $langs->trans(
"Country"),
138 'label' => $langs->trans(
"Phone"),
143 'label' => $langs->trans(
"Email"),
147 't.max_users' => array(
148 'label' => $langs->trans(
"MaxUsersLabel"),
153 'label' => $langs->trans(
"URL"),
159include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_array_fields.tpl.php';
163'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields';
165include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
168if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
171 $search_address =
"";
175 $search_country =
"";
178 $search_max_users =
"";
181 $search_array_options = array();
184$permissiontoread = $user->hasRight(
'resource',
'read');
185$permissiontoadd = $user->hasRight(
'resource',
'write');
186$permissiontodelete = $user->hasRight(
'resource',
'delete');
187if (!$permissiontoread) {
192$objectclass =
'Dolresource';
193$objectlabel =
'Resources';
194$uploaddir = $conf->resource->dir_output;
195include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
201if (
GETPOST(
'cancel',
'alpha')) {
205if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') {
209$parameters = array();
210$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
219$form =
new Form($db);
223$title = $langs->trans(
'Resources');
227$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
228$selectedfields = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage);
234$sql .=
" t.address,";
237$sql .=
" t.fk_country,";
238$sql .=
" t.fk_state,";
239$sql .=
" t.description,";
242$sql .=
" t.max_users,";
244$sql .=
" t.fk_code_type_resource,";
245$sql .=
" t.tms as date_modification,";
246$sql .=
" t.datec as date_creation, ";
247$sql .=
" ty.label as type_label, ";
248$sql .=
" st.nom as state_label, ";
249$sql .=
" co.label as country_label ";
251if (!empty($extrafields->attributes[
$object->table_element][
'label'])) {
252 foreach ($extrafields->attributes[
$object->table_element][
'label'] as $key => $val) {
253 $sql .= ($extrafields->attributes[
$object->table_element][
'type'][$key] !=
'separate' ?
", ef.".$key.
" as options_".$key :
'');
257$parameters = array();
258$reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object, $action);
259$sql .= $hookmanager->resPrint;
263$sql .=
" FROM ".MAIN_DB_PREFIX.
"resource as t";
264$sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"c_type_resource as ty ON ty.code=t.fk_code_type_resource";
265$sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"c_departements as st ON st.rowid=t.fk_state";
266$sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"c_country as co ON co.rowid=t.fk_country";
267if (isset($extrafields->attributes[
$object->table_element][
'label']) && is_array($extrafields->attributes[
$object->table_element][
'label']) && count($extrafields->attributes[
$object->table_element][
'label'])) {
268 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element.
"_extrafields as ef on (t.rowid = ef.fk_object)";
272$parameters = array();
273$reshook = $hookmanager->executeHooks(
'printFieldListFrom', $parameters, $object, $action);
274$sql .= $hookmanager->resPrint;
276$sql .=
" WHERE t.entity IN (".getEntity(
'resource').
")";
283if ($search_address) {
295if ($search_country && $search_country !=
'-1') {
296 $sql .=
" AND t.fk_country IN (".$db->sanitize($search_country).
')';
304if ($search_max_users) {
312include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
314$parameters = array();
315$reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object, $action);
316$sql .= $hookmanager->resPrint;
319$nbtotalofrecords =
'';
322 $sqlforcount = preg_replace(
'/^'.preg_quote($sqlfields,
'/').
'/',
'SELECT COUNT(*) as nbtotalofrecords', $sql);
323 $sqlforcount = preg_replace(
'/GROUP BY .*$/',
'', $sqlforcount);
324 $resql = $db->query($sqlforcount);
326 $objforcount = $db->fetch_object($resql);
327 $nbtotalofrecords = $objforcount->nbtotalofrecords;
332 if (($page * $limit) > $nbtotalofrecords) {
340$sql .= $db->order($sortfield, $sortorder);
342 $sql .= $db->plimit($limit + 1, $offset);
345$resql = $db->query($sql);
351$num = $db->num_rows($resql);
354if ($num == 1 &&
getDolGlobalString(
'MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && $search_all && !$page) {
355 $obj = $db->fetch_object($resql);
357 header(
"Location: ".
dol_buildpath(
'/resource/card.php', 1).
'?id='.$id);
363llxHeader(
'', $title, $help_url,
'', 0, 0, $morejs, $morecss,
'',
'mod-resource page-list bodyforlist');
365$arrayofselected = is_array($toselect) ? $toselect : array();
368if (!empty($contextpage) && $contextpage != $_SERVER[
"PHP_SELF"]) {
369 $param .=
'&contextpage='.urlencode($contextpage);
371if ($limit > 0 && $limit != $conf->liste_limit) {
372 $param .=
'&limit='.((int) $limit);
374if ($search_ref !=
'') {
375 $param .=
'&search_ref='.urlencode($search_ref);
377if ($search_type !=
'') {
378 $param .=
'&search_type='.urlencode($search_type);
380if ($search_address !=
'') {
381 $param .=
'&search_address='.urlencode($search_address);
383if ($search_zip !=
'') {
384 $param .=
'&search_zip='.urlencode($search_zip);
386if ($search_town !=
'') {
387 $param .=
'&search_town='.urlencode($search_town);
389if ($search_state !=
'') {
390 $param .=
'&search_state='.urlencode($search_state);
392if ($search_country !=
'') {
393 $param .=
'&search_country='.urlencode($search_country);
395if ($search_phone !=
'') {
396 $param .=
'&search_phone='.urlencode($search_phone);
398if ($search_email !=
'') {
399 $param .=
'&search_email='.urlencode($search_email);
401if ($search_max_users !=
'') {
402 $param .=
'&search_max_users='.urlencode($search_max_users);
404if ($search_url !=
'') {
405 $param .=
'&search_url='.urlencode($search_url);
409include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
412$arrayofmassactions = array();
413if (!empty($permissiontodelete)) {
414 $arrayofmassactions[
'predelete'] =
img_picto(
'',
'delete',
'class="pictofixedwidth"').$langs->trans(
"Delete");
416if (
GETPOSTINT(
'nomassaction') || in_array($massaction, array(
'presend',
'predelete'))) {
417 $arrayofmassactions = array();
419$massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
421$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
422$selectedfields = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
getDolGlobalString(
'MAIN_CHECKBOX_LEFT_COLUMN'));
424print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].
'">';
425if ($optioncss !=
'') {
426 print
'<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
428print
'<input type="hidden" name="token" value="'.newToken().
'">';
429print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
430print
'<input type="hidden" name="action" value="list">';
431print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
432print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
433print
'<input type="hidden" name="page" value="'.$page.
'">';
434print
'<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
437$url = DOL_URL_ROOT.
'/resource/card.php?action=create';
439$newcardbutton =
dolGetButtonTitle($langs->trans(
'NewResource'),
'',
'fa fa-plus-circle', $url,
'', $permissiontoadd);
441print_barre_liste($title, $page, $_SERVER[
'PHP_SELF'], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
'object_'.
$object->picto, 0, $newcardbutton,
'', $limit, 0, 0, 1);
444$trackid =
'int'.$object->id;
445include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
447$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
448$selectedfields = ($form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
getDolGlobalString(
'MAIN_CHECKBOX_LEFT_COLUMN')));
449$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons(
'checkforselect', 1) :
'');
451print
'<div class="div-table-responsive">';
452print
'<table class="tagtable liste">'.
"\n";
456print
'<tr class="liste_titre_filter">';
459 print
'<td class="liste_titre maxwidthsearch center">';
460 $searchpicto = $form->showFilterButtons(
'left');
464if (!empty($arrayfields[
't.ref'][
'checked'])) {
465 print
'<td class="liste_titre">';
466 print
'<input type="text" class="flat" name="search_ref" value="'.$search_ref.
'" size="8">';
469if (!empty($arrayfields[
'ty.label'][
'checked'])) {
470 print
'<td class="liste_titre">';
471 print
'<input type="text" class="flat" name="search_type" value="'.$search_type.
'" size="8">';
474if (!empty($arrayfields[
't.address'][
'checked'])) {
475 print
'<td class="liste_titre">';
476 print
'<input type="text" class="flat" name="search_address" value="'.$search_address.
'" size="8">';
479if (!empty($arrayfields[
't.zip'][
'checked'])) {
480 print
'<td class="liste_titre">';
481 print
'<input type="text" class="flat" name="search_zip" value="'.$search_zip.
'" size="8">';
484if (!empty($arrayfields[
't.town'][
'checked'])) {
485 print
'<td class="liste_titre">';
486 print
'<input type="text" class="flat" name="search_town" value="'.$search_town.
'" size="8">';
489if (!empty($arrayfields[
'st.nom'][
'checked'])) {
490 print
'<td class="liste_titre">';
491 print
'<input type="text" class="flat" name="search_state" value="'.$search_state.
'" size="8">';
494if (!empty($arrayfields[
'co.label'][
'checked'])) {
495 print
'<td class="liste_titre">';
496 print $form->select_country($search_country,
'search_country',
'', 0,
'minwidth100imp maxwidth100');
499if (!empty($arrayfields[
't.phone'][
'checked'])) {
500 print
'<td class="liste_titre">';
501 print
'<input type="text" class="flat" name="search_phone" value="'.$search_phone.
'" size="8">';
504if (!empty($arrayfields[
't.email'][
'checked'])) {
505 print
'<td class="liste_titre">';
506 print
'<input type="text" class="flat" name="search_email" value="'.$search_email.
'" size="8">';
509if (!empty($arrayfields[
't.max_users'][
'checked'])) {
510 print
'<td class="liste_titre">';
511 print
'<input type="text" class="flat" name="search_max_users" value="'.$search_max_users.
'" size="8">';
514if (!empty($arrayfields[
't.url'][
'checked'])) {
515 print
'<td class="liste_titre">';
516 print
'<input type="text" class="flat" name="search_url" value="'.$search_url.
'" size="8">';
520include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_input.tpl.php';
524 print
'<td class="liste_titre center maxwidthsearch">';
525 $searchpicto = $form->showFilterButtons();
531$totalarray = array();
532$totalarray[
'nbfield'] = 0;
536print
'<tr class="liste_titre">';
539 print_liste_field_titre($selectedfields, $_SERVER[
"PHP_SELF"],
"",
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ');
541if (!empty($arrayfields[
't.ref'][
'checked'])) {
542 print_liste_field_titre($arrayfields[
't.ref'][
'label'], $_SERVER[
"PHP_SELF"],
"t.ref",
"", $param,
"", $sortfield, $sortorder);
544if (!empty($arrayfields[
'ty.label'][
'checked'])) {
545 print_liste_field_titre($arrayfields[
'ty.label'][
'label'], $_SERVER[
"PHP_SELF"],
"ty.label",
"", $param,
"", $sortfield, $sortorder);
547if (!empty($arrayfields[
't.address'][
'checked'])) {
548 print_liste_field_titre($arrayfields[
't.address'][
'label'], $_SERVER[
"PHP_SELF"],
"t.address",
"", $param,
"", $sortfield, $sortorder);
550if (!empty($arrayfields[
't.zip'][
'checked'])) {
551 print_liste_field_titre($arrayfields[
't.zip'][
'label'], $_SERVER[
"PHP_SELF"],
"t.zip",
"", $param,
"", $sortfield, $sortorder);
553if (!empty($arrayfields[
't.town'][
'checked'])) {
554 print_liste_field_titre($arrayfields[
't.town'][
'label'], $_SERVER[
"PHP_SELF"],
"t.town",
"", $param,
"", $sortfield, $sortorder);
556if (!empty($arrayfields[
'st.nom'][
'checked'])) {
557 print_liste_field_titre($arrayfields[
'st.nom'][
'label'], $_SERVER[
"PHP_SELF"],
"st.nom",
"", $param,
"", $sortfield, $sortorder);
559if (!empty($arrayfields[
'co.label'][
'checked'])) {
560 print_liste_field_titre($arrayfields[
'co.label'][
'label'], $_SERVER[
"PHP_SELF"],
"co.label",
"", $param,
"", $sortfield, $sortorder);
562if (!empty($arrayfields[
't.phone'][
'checked'])) {
563 print_liste_field_titre($arrayfields[
't.phone'][
'label'], $_SERVER[
"PHP_SELF"],
"t.phone",
"", $param,
"", $sortfield, $sortorder);
565if (!empty($arrayfields[
't.email'][
'checked'])) {
566 print_liste_field_titre($arrayfields[
't.email'][
'label'], $_SERVER[
"PHP_SELF"],
"t.email",
"", $param,
"", $sortfield, $sortorder);
568if (!empty($arrayfields[
't.max_users'][
'checked'])) {
569 print_liste_field_titre($arrayfields[
't.max_users'][
'label'], $_SERVER[
"PHP_SELF"],
"t.max_users",
"", $param,
"", $sortfield, $sortorder);
571if (!empty($arrayfields[
't.url'][
'checked'])) {
572 print_liste_field_titre($arrayfields[
't.url'][
'label'], $_SERVER[
"PHP_SELF"],
"t.url",
"", $param,
"", $sortfield, $sortorder);
575include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
578 print_liste_field_titre($selectedfields, $_SERVER[
"PHP_SELF"],
"",
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ');
585$savnbfield = $totalarray[
'nbfield'];
586$totalarray = array();
587$totalarray[
'nbfield'] = 0;
588$imaxinloop = ($limit ? min($num, $limit) : $num);
589while ($i < $imaxinloop) {
590 $obj = $db->fetch_object($resql);
591 $objectstatic->id = $obj->rowid;
592 $objectstatic->ref = $obj->ref;
593 $objectstatic->type_label = $obj->type_label;
594 $objectstatic->address = $obj->address;
595 $objectstatic->zip = $obj->zip;
596 $objectstatic->town = $obj->town;
597 $objectstatic->state = $obj->state_label;
598 $objectstatic->country = $obj->country_label;
599 $objectstatic->phone = $obj->phone;
600 $objectstatic->email = $obj->email;
601 $objectstatic->max_users = $obj->max_users;
602 $objectstatic->url = $obj->url;
604 print
'<tr data-rowid="'.$obj->rowid.
'" class="oddeven">';
607 print
'<td class="nowrap center">';
608 if ($massactionbutton || $massaction) {
610 if (in_array($obj->rowid, $arrayofselected)) {
613 print
'<input id="cb'.$obj->rowid.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->rowid.
'"'.($selected ?
' checked="checked"' :
'').
'>';
617 $totalarray[
'nbfield']++;
621 if (!empty($arrayfields[
't.ref'][
'checked'])) {
622 print
'<td>'.$objectstatic->getNomUrl(5).
'</td>';
624 $totalarray[
'nbfield']++;
628 if (!empty($arrayfields[
'ty.label'][
'checked'])) {
629 print
'<td>'.$objectstatic->type_label.
'</td>';
631 $totalarray[
'nbfield']++;
635 if (!empty($arrayfields[
't.address'][
'checked'])) {
636 print
'<td>'.$objectstatic->address.
'</td>';
638 $totalarray[
'nbfield']++;
642 if (!empty($arrayfields[
't.zip'][
'checked'])) {
643 print
'<td>'.$objectstatic->zip.
'</td>';
645 $totalarray[
'nbfield']++;
649 if (!empty($arrayfields[
't.town'][
'checked'])) {
650 print
'<td>'.$objectstatic->town.
'</td>';
652 $totalarray[
'nbfield']++;
656 if (!empty($arrayfields[
'st.nom'][
'checked'])) {
657 print
'<td>'.$objectstatic->state.
'</td>';
659 $totalarray[
'nbfield']++;
663 if (!empty($arrayfields[
'co.label'][
'checked'])) {
664 print
'<td>'.$objectstatic->country.
'</td>';
666 $totalarray[
'nbfield']++;
670 if (!empty($arrayfields[
't.phone'][
'checked'])) {
671 print
'<td>'.dol_print_phone($objectstatic->phone,
'', 0, 0,
'AC_TEL',
" ",
'phone').
'</td>';
673 $totalarray[
'nbfield']++;
677 if (!empty($arrayfields[
't.email'][
'checked'])) {
678 print
'<td>'.dol_print_email($objectstatic->email, 0, 0, 1, 0, 0, 1).
'</td>';
680 $totalarray[
'nbfield']++;
684 if (!empty($arrayfields[
't.max_users'][
'checked'])) {
685 print
'<td>'.$objectstatic->max_users.
'</td>';
687 $totalarray[
'nbfield']++;
691 if (!empty($arrayfields[
't.url'][
'checked'])) {
692 print
'<td>'.dol_print_url($objectstatic->url,
'_blank', 32, 1).
'</td>';
694 $totalarray[
'nbfield']++;
698 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
702 print
'<td class="nowrap center">';
703 if ($massactionbutton || $massaction) {
705 if (in_array($obj->rowid, $arrayofselected)) {
708 print
'<input id="cb'.$obj->rowid.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->rowid.
'"'.($selected ?
' checked="checked"' :
'').
'>';
712 $totalarray[
'nbfield']++;
721include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
726 foreach ($arrayfields as $key => $val) {
727 if (!empty($val[
'checked'])) {
731 print
'<tr><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</span></td></tr>';
736$parameters = array(
'arrayfields' => $arrayfields,
'sql' => $sql);
737$reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $object, $action);
738print $hookmanager->resPrint;
740print
'</table>'.
"\n";
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
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.
dolGetButtonTitle($label, $helpText='', $iconClass='fa fa-file', $url='', $id='', $status=1, $params=array())
Function dolGetButtonTitle : this kind of buttons are used in title in list.
natural_search($fields, $value, $mode=0, $nofirstand=0)
Generate natural SQL search string for a criteria (this criteria can be tested on one or several fiel...
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
dol_sort_array(&$array, $index, $order='asc', $natsort=0, $case_sensitive=0, $keepindex=0)
Advanced sort array by the value of a given key, which produces ascending (default) or descending out...
print_liste_field_titre($name, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $tooltip="", $forcenowrapcolumntitle=0)
Show title line of an array.
print_barre_liste($title, $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.
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.
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.