29require
'../main.inc.php';
30require_once DOL_DOCUMENT_ROOT.
'/resource/class/dolresource.class.php';
41$langs->loadLangs(array(
"resource",
"companies",
"other"));
45$action =
GETPOST(
'action',
'alpha');
46$massaction =
GETPOST(
'massaction',
'alpha');
47$confirm =
GETPOST(
'confirm',
'alpha');
48$toselect =
GETPOST(
'toselect',
'array');
49$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'interventionlist';
52$element =
GETPOST(
'element',
'alpha');
56$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
57$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
58$optioncss =
GETPOST(
'optioncss',
'alpha');
61$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'resourcelist';
68$extrafields->fetch_name_optionals_label(
$object->table_element);
69$search_array_options = $extrafields->getOptionalsFromPost(
$object->table_element,
'',
'search_');
70if (!is_array($search_array_options)) {
71 $search_array_options = array();
73$search_ref =
GETPOST(
"search_ref",
'alpha');
74$search_type =
GETPOST(
"search_type",
'alpha');
75$search_address =
GETPOST(
"search_address",
'alpha');
76$search_zip =
GETPOST(
"search_zip",
'alpha');
77$search_town =
GETPOST(
"search_town",
'alpha');
78$search_state =
GETPOST(
"search_state",
'alpha');
79$search_country =
GETPOST(
"search_country",
'alpha');
80$search_phone =
GETPOST(
"search_phone",
'alpha');
81$search_email =
GETPOST(
"search_email",
'alpha');
82$search_max_users =
GETPOST(
"search_max_users",
'alpha');
83$search_url =
GETPOST(
"search_url",
'alpha');
87$hookmanager->initHooks(array(
'resourcelist'));
89if (empty($sortorder)) {
92if (empty($sortfield)) {
100if (empty($page) || $page == -1) {
103$offset = $limit * $page;
104$pageprev = $page - 1;
105$pagenext = $page + 1;
109 'label' => $langs->trans(
"Ref"),
114 'label' => $langs->trans(
"Type"),
118 't.address' => array(
119 'label' => $langs->trans(
"Address"),
124 'label' => $langs->trans(
"Zip"),
129 'label' => $langs->trans(
"Town"),
134 'label' => $langs->trans(
"State"),
139 'label' => $langs->trans(
"Country"),
144 'label' => $langs->trans(
"Phone"),
149 'label' => $langs->trans(
"Email"),
153 't.max_users' => array(
154 'label' => $langs->trans(
"MaxUsersLabel"),
159 'label' => $langs->trans(
"URL"),
165include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_array_fields.tpl.php';
169'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields';
171include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
174if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
177 $search_address =
"";
181 $search_country =
"";
184 $search_max_users =
"";
187 $search_array_options = array();
190$permissiontoread = $user->hasRight(
'resource',
'read');
191$permissiontoadd = $user->hasRight(
'resource',
'write');
192$permissiontodelete = $user->hasRight(
'resource',
'delete');
193if (!$permissiontoread) {
198$objectclass =
'Dolresource';
199$objectlabel =
'Resources';
200$uploaddir =
$conf->resource->dir_output;
201include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
207if (
GETPOST(
'cancel',
'alpha')) {
211if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') {
215$parameters = array();
216$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
225$form =
new Form($db);
229$title = $langs->trans(
'Resources');
233$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
234$selectedfields = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage);
240$sql .=
" t.address,";
243$sql .=
" t.fk_country,";
244$sql .=
" t.fk_state,";
245$sql .=
" t.description,";
248$sql .=
" t.max_users,";
250$sql .=
" t.fk_code_type_resource,";
251$sql .=
" t.tms as date_modification,";
252$sql .=
" t.datec as date_creation, ";
253$sql .=
" ty.label as type_label, ";
254$sql .=
" st.nom as state_label, ";
255$sql .=
" co.label as country_label ";
257if (!empty($extrafields->attributes[
$object->table_element][
'label'])) {
258 foreach ($extrafields->attributes[
$object->table_element][
'label'] as $key => $val) {
259 $sql .= ($extrafields->attributes[
$object->table_element][
'type'][$key] !=
'separate' ?
", ef.".$key.
" as options_".$key :
'');
263$parameters = array();
264$reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object, $action);
265$sql .= $hookmanager->resPrint;
269$sql .=
" FROM ".MAIN_DB_PREFIX.
"resource as t";
270$sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"c_type_resource as ty ON ty.code=t.fk_code_type_resource";
271$sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"c_departements as st ON st.rowid=t.fk_state";
272$sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"c_country as co ON co.rowid=t.fk_country";
273if (isset($extrafields->attributes[
$object->table_element][
'label']) && is_array($extrafields->attributes[
$object->table_element][
'label']) && count($extrafields->attributes[
$object->table_element][
'label'])) {
274 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element.
"_extrafields as ef on (t.rowid = ef.fk_object)";
278$parameters = array();
279$reshook = $hookmanager->executeHooks(
'printFieldListFrom', $parameters, $object, $action);
280$sql .= $hookmanager->resPrint;
282$sql .=
" WHERE t.entity IN (".getEntity(
'resource').
")";
289if ($search_address) {
301if ($search_country && $search_country !=
'-1') {
302 $sql .=
" AND t.fk_country IN (".$db->sanitize($search_country).
')';
310if ($search_max_users) {
318include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
320$parameters = array();
321$reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object, $action);
322$sql .= $hookmanager->resPrint;
325$nbtotalofrecords =
'';
328 $sqlforcount = preg_replace(
'/^'.preg_quote($sqlfields,
'/').
'/',
'SELECT COUNT(*) as nbtotalofrecords', $sql);
329 $sqlforcount = preg_replace(
'/GROUP BY .*$/',
'', $sqlforcount);
330 $resql = $db->query($sqlforcount);
332 $objforcount = $db->fetch_object($resql);
333 $nbtotalofrecords = $objforcount->nbtotalofrecords;
338 if (($page * $limit) > $nbtotalofrecords) {
346$sql .= $db->order($sortfield, $sortorder);
348 $sql .= $db->plimit($limit + 1, $offset);
351$resql = $db->query($sql);
357$num = $db->num_rows($resql);
360if ($num == 1 &&
getDolGlobalString(
'MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && !$page) {
361 $obj = $db->fetch_object($resql);
369llxHeader(
'', $title, $help_url,
'', 0, 0, $morejs, $morecss,
'',
'mod-resource page-list bodyforlist');
371$arrayofselected = is_array($toselect) ? $toselect : array();
374if (!empty($contextpage) && $contextpage != $_SERVER[
"PHP_SELF"]) {
375 $param .=
'&contextpage='.urlencode($contextpage);
377if ($limit > 0 && $limit !=
$conf->liste_limit) {
378 $param .=
'&limit='.((int) $limit);
380if ($search_ref !=
'') {
381 $param .=
'&search_ref='.urlencode($search_ref);
383if ($search_type !=
'') {
384 $param .=
'&search_type='.urlencode($search_type);
386if ($search_address !=
'') {
387 $param .=
'&search_address='.urlencode($search_address);
389if ($search_zip !=
'') {
390 $param .=
'&search_zip='.urlencode($search_zip);
392if ($search_town !=
'') {
393 $param .=
'&search_town='.urlencode($search_town);
395if ($search_state !=
'') {
396 $param .=
'&search_state='.urlencode($search_state);
398if ($search_country !=
'') {
399 $param .=
'&search_country='.urlencode($search_country);
401if ($search_phone !=
'') {
402 $param .=
'&search_phone='.urlencode($search_phone);
404if ($search_email !=
'') {
405 $param .=
'&search_email='.urlencode($search_email);
407if ($search_max_users !=
'') {
408 $param .=
'&search_max_users='.urlencode($search_max_users);
410if ($search_url !=
'') {
411 $param .=
'&search_url='.urlencode($search_url);
415include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
418$arrayofmassactions = array();
419if (!empty($permissiontodelete)) {
420 $arrayofmassactions[
'predelete'] =
img_picto(
'',
'delete',
'class="pictofixedwidth"').$langs->trans(
"Delete");
422if (
GETPOSTINT(
'nomassaction') || in_array($massaction, array(
'presend',
'predelete'))) {
423 $arrayofmassactions = array();
425$massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
427$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
428$selectedfields = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
getDolGlobalString(
'MAIN_CHECKBOX_LEFT_COLUMN'));
430print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].
'">';
431if ($optioncss !=
'') {
432 print
'<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
434print
'<input type="hidden" name="token" value="'.newToken().
'">';
435print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
436print
'<input type="hidden" name="action" value="list">';
437print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
438print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
439print
'<input type="hidden" name="page" value="'.$page.
'">';
440print
'<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
443$url = DOL_URL_ROOT.
'/resource/card.php?action=create';
445$newcardbutton =
dolGetButtonTitle($langs->trans(
'NewResource'),
'',
'fa fa-plus-circle', $url,
'', $permissiontoadd);
447print_barre_liste($title, $page, $_SERVER[
'PHP_SELF'], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
'object_'.
$object->picto, 0, $newcardbutton,
'', $limit, 0, 0, 1);
450$trackid =
'int'.$object->id;
451include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
453$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
454$selectedfields = ($form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
getDolGlobalString(
'MAIN_CHECKBOX_LEFT_COLUMN')));
455$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons(
'checkforselect', 1) :
'');
457print
'<div class="div-table-responsive">';
458print
'<table class="tagtable liste">'.
"\n";
462print
'<tr class="liste_titre_filter">';
463if (!empty($arrayfields[
't.ref'][
'checked'])) {
464 print
'<td class="liste_titre">';
465 print
'<input type="text" class="flat" name="search_ref" value="'.$search_ref.
'" size="8">';
468if (!empty($arrayfields[
'ty.label'][
'checked'])) {
469 print
'<td class="liste_titre">';
470 print
'<input type="text" class="flat" name="search_type" value="'.$search_type.
'" size="8">';
473if (!empty($arrayfields[
't.address'][
'checked'])) {
474 print
'<td class="liste_titre">';
475 print
'<input type="text" class="flat" name="search_address" value="'.$search_address.
'" size="8">';
478if (!empty($arrayfields[
't.zip'][
'checked'])) {
479 print
'<td class="liste_titre">';
480 print
'<input type="text" class="flat" name="search_zip" value="'.$search_zip.
'" size="8">';
483if (!empty($arrayfields[
't.town'][
'checked'])) {
484 print
'<td class="liste_titre">';
485 print
'<input type="text" class="flat" name="search_town" value="'.$search_town.
'" size="8">';
488if (!empty($arrayfields[
'st.nom'][
'checked'])) {
489 print
'<td class="liste_titre">';
490 print
'<input type="text" class="flat" name="search_state" value="'.$search_state.
'" size="8">';
493if (!empty($arrayfields[
'co.label'][
'checked'])) {
494 print
'<td class="liste_titre">';
495 print $form->select_country($search_country,
'search_country',
'', 0,
'minwidth100imp maxwidth100');
498if (!empty($arrayfields[
't.phone'][
'checked'])) {
499 print
'<td class="liste_titre">';
500 print
'<input type="text" class="flat" name="search_phone" value="'.$search_phone.
'" size="8">';
503if (!empty($arrayfields[
't.email'][
'checked'])) {
504 print
'<td class="liste_titre">';
505 print
'<input type="text" class="flat" name="search_email" value="'.$search_email.
'" size="8">';
508if (!empty($arrayfields[
't.max_users'][
'checked'])) {
509 print
'<td class="liste_titre">';
510 print
'<input type="text" class="flat" name="search_max_users" value="'.$search_max_users.
'" size="8">';
513if (!empty($arrayfields[
't.url'][
'checked'])) {
514 print
'<td class="liste_titre">';
515 print
'<input type="text" class="flat" name="search_url" value="'.$search_url.
'" size="8">';
519include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_input.tpl.php';
523 print
'<td class="liste_titre center maxwidthsearch">';
524 $searchpicto = $form->showFilterButtons();
530$totalarray = array();
531$totalarray[
'nbfield'] = 0;
535print
'<tr class="liste_titre">';
536if (!empty($arrayfields[
't.ref'][
'checked'])) {
538 print_liste_field_titre($arrayfields[
't.ref'][
'label'], $_SERVER[
"PHP_SELF"],
"t.ref",
"", $param,
"", $sortfield, $sortorder);
540if (!empty($arrayfields[
'ty.label'][
'checked'])) {
541 print_liste_field_titre($arrayfields[
'ty.label'][
'label'], $_SERVER[
"PHP_SELF"],
"ty.label",
"", $param,
"", $sortfield, $sortorder);
543if (!empty($arrayfields[
't.address'][
'checked'])) {
544 print_liste_field_titre($arrayfields[
't.address'][
'label'], $_SERVER[
"PHP_SELF"],
"t.address",
"", $param,
"", $sortfield, $sortorder);
546if (!empty($arrayfields[
't.zip'][
'checked'])) {
547 print_liste_field_titre($arrayfields[
't.zip'][
'label'], $_SERVER[
"PHP_SELF"],
"t.zip",
"", $param,
"", $sortfield, $sortorder);
549if (!empty($arrayfields[
't.town'][
'checked'])) {
550 print_liste_field_titre($arrayfields[
't.town'][
'label'], $_SERVER[
"PHP_SELF"],
"t.town",
"", $param,
"", $sortfield, $sortorder);
552if (!empty($arrayfields[
'st.nom'][
'checked'])) {
553 print_liste_field_titre($arrayfields[
'st.nom'][
'label'], $_SERVER[
"PHP_SELF"],
"st.nom",
"", $param,
"", $sortfield, $sortorder);
555if (!empty($arrayfields[
'co.label'][
'checked'])) {
556 print_liste_field_titre($arrayfields[
'co.label'][
'label'], $_SERVER[
"PHP_SELF"],
"co.label",
"", $param,
"", $sortfield, $sortorder);
558if (!empty($arrayfields[
't.phone'][
'checked'])) {
559 print_liste_field_titre($arrayfields[
't.phone'][
'label'], $_SERVER[
"PHP_SELF"],
"t.phone",
"", $param,
"", $sortfield, $sortorder);
561if (!empty($arrayfields[
't.email'][
'checked'])) {
562 print_liste_field_titre($arrayfields[
't.email'][
'label'], $_SERVER[
"PHP_SELF"],
"t.email",
"", $param,
"", $sortfield, $sortorder);
564if (!empty($arrayfields[
't.max_users'][
'checked'])) {
565 print_liste_field_titre($arrayfields[
't.max_users'][
'label'], $_SERVER[
"PHP_SELF"],
"t.max_users",
"", $param,
"", $sortfield, $sortorder);
567if (!empty($arrayfields[
't.url'][
'checked'])) {
568 print_liste_field_titre($arrayfields[
't.url'][
'label'], $_SERVER[
"PHP_SELF"],
"t.url",
"", $param,
"", $sortfield, $sortorder);
571include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
574 print_liste_field_titre($selectedfields, $_SERVER[
"PHP_SELF"],
"",
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ');
581$savnbfield = $totalarray[
'nbfield'];
582$totalarray = array();
583$totalarray[
'nbfield'] = 0;
584$imaxinloop = ($limit ? min($num, $limit) : $num);
585while ($i < $imaxinloop) {
586 $obj = $db->fetch_object($resql);
587 $objectstatic->id = $obj->rowid;
588 $objectstatic->ref = $obj->ref;
589 $objectstatic->type_label = $obj->type_label;
590 $objectstatic->address = $obj->address;
591 $objectstatic->zip = $obj->zip;
592 $objectstatic->town = $obj->town;
593 $objectstatic->state = $obj->state_label;
594 $objectstatic->country = $obj->country_label;
595 $objectstatic->phone = $obj->phone;
596 $objectstatic->email = $obj->email;
597 $objectstatic->max_users = $obj->max_users;
598 $objectstatic->url = $obj->url;
600 print
'<tr class="oddeven">';
602 if (!empty($arrayfields[
't.ref'][
'checked'])) {
603 print
'<td>'.$objectstatic->getNomUrl(5).
'</td>';
605 $totalarray[
'nbfield']++;
609 if (!empty($arrayfields[
'ty.label'][
'checked'])) {
610 print
'<td>'.$objectstatic->type_label.
'</td>';
612 $totalarray[
'nbfield']++;
616 if (!empty($arrayfields[
't.address'][
'checked'])) {
617 print
'<td>'.$objectstatic->address.
'</td>';
619 $totalarray[
'nbfield']++;
623 if (!empty($arrayfields[
't.zip'][
'checked'])) {
624 print
'<td>'.$objectstatic->zip.
'</td>';
626 $totalarray[
'nbfield']++;
630 if (!empty($arrayfields[
't.town'][
'checked'])) {
631 print
'<td>'.$objectstatic->town.
'</td>';
633 $totalarray[
'nbfield']++;
637 if (!empty($arrayfields[
'st.nom'][
'checked'])) {
638 print
'<td>'.$objectstatic->state.
'</td>';
640 $totalarray[
'nbfield']++;
644 if (!empty($arrayfields[
'co.label'][
'checked'])) {
645 print
'<td>'.$objectstatic->country.
'</td>';
647 $totalarray[
'nbfield']++;
651 if (!empty($arrayfields[
't.phone'][
'checked'])) {
652 print
'<td>'.dol_print_phone($objectstatic->phone,
'', 0, 0,
'AC_TEL',
" ",
'phone').
'</td>';
654 $totalarray[
'nbfield']++;
658 if (!empty($arrayfields[
't.email'][
'checked'])) {
659 print
'<td>'.dol_print_email($objectstatic->email, 0, 0, 1, 0, 0, 1).
'</td>';
661 $totalarray[
'nbfield']++;
665 if (!empty($arrayfields[
't.max_users'][
'checked'])) {
666 print
'<td>'.$objectstatic->max_users.
'</td>';
668 $totalarray[
'nbfield']++;
672 if (!empty($arrayfields[
't.url'][
'checked'])) {
673 print
'<td>'.dol_print_url($objectstatic->url,
'_blank', 32, 1).
'</td>';
675 $totalarray[
'nbfield']++;
679 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
683 print
'<td class="nowrap center">';
684 if ($massactionbutton || $massaction) {
686 if (in_array($obj->rowid, $arrayofselected)) {
689 print
'<input id="cb'.$obj->rowid.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->rowid.
'"'.($selected ?
' checked="checked"' :
'').
'>';
693 $totalarray[
'nbfield']++;
702include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
707 foreach ($arrayfields as $key => $val) {
708 if (!empty($val[
'checked'])) {
712 print
'<tr><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</span></td></tr>';
717$parameters = array(
'arrayfields' => $arrayfields,
'sql' => $sql);
718$reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $object, $action);
719print $hookmanager->resPrint;
721print
'</table>'.
"\n";
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
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.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
print_barre_liste($title, $page, $file, $options='', $sortfield='', $sortorder='', $morehtmlcenter='', $num=-1, $totalnboflines='', $picto='generic', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limit=-1, $selectlimitsuffix=0, $hidenavigation=0, $pagenavastextinput=0, $morehtmlrightbeforearrow='')
Print a title with navigation controls for pagination.
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.
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.
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 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...
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.