30require
'../main.inc.php';
38require_once DOL_DOCUMENT_ROOT.
'/resource/class/dolresource.class.php';
39require_once DOL_DOCUMENT_ROOT.
'/core/lib/phone.lib.php';
42$langs->loadLangs(array(
"resource",
"companies",
"other"));
46$action =
GETPOST(
'action',
'alpha');
47$massaction =
GETPOST(
'massaction',
'alpha');
48$confirm =
GETPOST(
'confirm',
'alpha');
49$toselect =
GETPOST(
'toselect',
'array:int');
50$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'interventionlist';
53$element =
GETPOST(
'element',
'alpha');
57$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
58$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
59$optioncss =
GETPOST(
'optioncss',
'alpha');
62$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'resourcelist';
69$extrafields->fetch_name_optionals_label(
$object->table_element);
70$search_array_options = $extrafields->getOptionalsFromPost(
$object->table_element,
'',
'search_');
71if (!is_array($search_array_options)) {
72 $search_array_options = array();
74$search_all = trim(
GETPOST(
'search_all',
'alphanohtml'));
75$search_ref =
GETPOST(
"search_ref",
'alpha');
76$search_type =
GETPOST(
"search_type",
'alpha');
77$search_address =
GETPOST(
"search_address",
'alpha');
78$search_zip =
GETPOST(
"search_zip",
'alpha');
79$search_town =
GETPOST(
"search_town",
'alpha');
80$search_state =
GETPOST(
"search_state",
'alpha');
81$search_country =
GETPOST(
"search_country",
'alpha');
82$search_phone =
GETPOST(
"search_phone",
'alpha');
83$search_email =
GETPOST(
"search_email",
'alpha');
84$search_max_users =
GETPOST(
"search_max_users",
'alpha');
85$search_url =
GETPOST(
"search_url",
'alpha');
89$hookmanager->initHooks(array(
'resourcelist'));
91if (empty($sortorder)) {
94if (empty($sortfield)) {
98$search_all = trim(
GETPOST(
'search_all',
'alphanohtml'));
104if (empty($page) || $page == -1) {
107$offset = $limit * $page;
108$pageprev = $page - 1;
109$pagenext = $page + 1;
112$fieldstosearchall = array(
114 't.description' =>
'Description',
119 'label' => $langs->trans(
"Ref"),
124 'label' => $langs->trans(
"Type"),
128 't.address' => array(
129 'label' => $langs->trans(
"Address"),
134 'label' => $langs->trans(
"Zip"),
139 'label' => $langs->trans(
"Town"),
144 'label' => $langs->trans(
"State"),
149 'label' => $langs->trans(
"Country"),
154 'label' => $langs->trans(
"Phone"),
159 'label' => $langs->trans(
"Email"),
163 't.max_users' => array(
164 'label' => $langs->trans(
"MaxUsersLabel"),
169 'label' => $langs->trans(
"URL"),
175include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_array_fields.tpl.php';
177$parameters = array(
'arrayfields' => &$arrayfields);
178$reshook = $hookmanager->executeHooks(
'completeArrayFields', $parameters, $object, $action);
183include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
186if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
189 $search_address =
"";
193 $search_country =
"";
196 $search_max_users =
"";
199 $search_array_options = array();
202$permissiontoread = $user->hasRight(
'resource',
'read');
203$permissiontoadd = $user->hasRight(
'resource',
'write');
204$permissiontodelete = $user->hasRight(
'resource',
'delete');
205if (!$permissiontoread) {
210$objectclass =
'Dolresource';
211$objectlabel =
'Resources';
212$uploaddir =
$conf->resource->dir_output;
213include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
219if (
GETPOST(
'cancel',
'alpha')) {
223if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') {
227$parameters = array();
228$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
230 setEventMessages($hookmanager->error, $hookmanager->errors,
'errors');
237$form =
new Form($db);
241$title = $langs->trans(
'Resources');
245$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
246$selectedfields = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage);
252$sql .=
" t.address,";
255$sql .=
" t.fk_country,";
256$sql .=
" t.fk_state,";
257$sql .=
" t.description,";
260$sql .=
" t.max_users,";
262$sql .=
" t.fk_code_type_resource,";
263$sql .=
" t.tms as date_modification,";
264$sql .=
" t.datec as date_creation, ";
265$sql .=
" ty.label as type_label, ";
266$sql .=
" st.nom as state_label, ";
267$sql .=
" co.label as country_label ";
269if (!empty($extrafields->attributes[
$object->table_element][
'label'])) {
270 foreach ($extrafields->attributes[
$object->table_element][
'label'] as $key => $val) {
271 $sql .= ($extrafields->attributes[
$object->table_element][
'type'][$key] !=
'separate' ?
", ef.".$key.
" as options_".$key :
'');
275$parameters = array();
276$reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object, $action);
277$sql .= $hookmanager->resPrint;
281$sql .=
" FROM ".MAIN_DB_PREFIX.
"resource as t";
282$sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"c_type_resource as ty ON ty.code=t.fk_code_type_resource";
283$sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"c_departements as st ON st.rowid=t.fk_state";
284$sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"c_country as co ON co.rowid=t.fk_country";
285if (isset($extrafields->attributes[
$object->table_element][
'label']) && is_array($extrafields->attributes[
$object->table_element][
'label']) && count($extrafields->attributes[
$object->table_element][
'label'])) {
286 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element.
"_extrafields as ef on (t.rowid = ef.fk_object)";
290$parameters = array();
291$reshook = $hookmanager->executeHooks(
'printFieldListFrom', $parameters, $object, $action);
292$sql .= $hookmanager->resPrint;
294$sql .=
" WHERE t.entity IN (".getEntity(
'resource').
")";
296if (!empty($search_all)) {
297 $sql .=
natural_search(array_keys($fieldstosearchall), $search_all);
305if ($search_address) {
317if ($search_country && $search_country !=
'-1') {
318 $sql .=
" AND t.fk_country IN (".$db->sanitize($search_country).
')';
326if ($search_max_users) {
334include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
336$parameters = array();
337$reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object, $action);
338$sql .= $hookmanager->resPrint;
341$nbtotalofrecords =
'';
344 $sqlforcount = preg_replace(
'/^'.preg_quote($sqlfields,
'/').
'/',
'SELECT COUNT(*) as nbtotalofrecords', $sql);
345 $sqlforcount = preg_replace(
'/GROUP BY .*$/',
'', $sqlforcount);
346 $resql = $db->query($sqlforcount);
348 $objforcount = $db->fetch_object($resql);
349 $nbtotalofrecords = $objforcount->nbtotalofrecords;
351 dol_print_error($db);
354 if (($page * $limit) > (
int) $nbtotalofrecords) {
362$sql .= $db->order($sortfield, $sortorder);
364 $sql .= $db->plimit($limit + 1, $offset);
367$resql = $db->query($sql);
369 dol_print_error($db);
373$num = $db->num_rows($resql);
376if ($num == 1 &&
getDolGlobalString(
'MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && $search_all && !$page) {
377 $obj = $db->fetch_object($resql);
385llxHeader(
'', $title, $help_url,
'', 0, 0, $morejs, $morecss,
'',
'mod-resource page-list bodyforlist');
387$arrayofselected = is_array($toselect) ? $toselect : array();
390if (!empty($contextpage) && $contextpage != $_SERVER[
"PHP_SELF"]) {
391 $param .=
'&contextpage='.urlencode($contextpage);
393if ($limit > 0 && $limit !=
$conf->liste_limit) {
394 $param .=
'&limit='.((int) $limit);
396if ($search_ref !=
'') {
397 $param .=
'&search_ref='.urlencode($search_ref);
399if ($search_type !=
'') {
400 $param .=
'&search_type='.urlencode($search_type);
402if ($search_address !=
'') {
403 $param .=
'&search_address='.urlencode($search_address);
405if ($search_zip !=
'') {
406 $param .=
'&search_zip='.urlencode($search_zip);
408if ($search_town !=
'') {
409 $param .=
'&search_town='.urlencode($search_town);
411if ($search_state !=
'') {
412 $param .=
'&search_state='.urlencode($search_state);
414if ($search_country !=
'') {
415 $param .=
'&search_country='.urlencode($search_country);
417if ($search_phone !=
'') {
418 $param .=
'&search_phone='.urlencode($search_phone);
420if ($search_email !=
'') {
421 $param .=
'&search_email='.urlencode($search_email);
423if ($search_max_users !=
'') {
424 $param .=
'&search_max_users='.urlencode($search_max_users);
426if ($search_url !=
'') {
427 $param .=
'&search_url='.urlencode($search_url);
431include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
434$arrayofmassactions = array();
435if (!empty($permissiontodelete)) {
436 $arrayofmassactions[
'predelete'] = img_picto(
'',
'delete',
'class="pictofixedwidth"').$langs->trans(
"Delete");
438if (
GETPOSTINT(
'nomassaction') || in_array($massaction, array(
'presend',
'predelete'))) {
439 $arrayofmassactions = array();
441$massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
443$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
444$selectedfields = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
$conf->main_checkbox_left_column);
446print
'<form method="POST" id="searchFormList" action="'.dolBuildUrl($_SERVER[
"PHP_SELF"]).
'">';
447if ($optioncss !=
'') {
448 print
'<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
450print
'<input type="hidden" name="token" value="'.newToken().
'">';
451print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
452print
'<input type="hidden" name="action" value="list">';
453print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
454print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
455print
'<input type="hidden" name="page" value="'.$page.
'">';
456print
'<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
459$url = DOL_URL_ROOT.
'/resource/card.php?action=create';
461$newcardbutton =
dolGetButtonTitle($langs->trans(
'NewResource'),
'',
'fa fa-plus-circle', $url,
'', $permissiontoadd);
463print_barre_liste($title, $page, $_SERVER[
'PHP_SELF'], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
'object_'.
$object->picto, 0, $newcardbutton,
'', $limit, 0, 0, 1);
466$trackid =
'int'.$object->id;
467include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
471 foreach ($fieldstosearchall as $key => $val) {
472 $fieldstosearchall[$key] = $langs->trans($val);
473 $setupstring .= $key.
"=".$val.
";";
475 print
'<!-- Search done like if RESOURCE_QUICKSEARCH_ON_FIELDS = '.$setupstring.
' -->'.
"\n";
476 print
'<div class="divsearchfieldfilter">'.$langs->trans(
"FilterOnInto", $search_all).implode(
', ', $fieldstosearchall).
'</div>';
479$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
480$selectedfields = ($form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
$conf->main_checkbox_left_column));
481$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons(
'checkforselect', 1) :
'');
483print
'<div class="div-table-responsive">';
484print
'<table class="tagtable liste">'.
"\n";
488print
'<tr class="liste_titre_filter">';
490if (
$conf->main_checkbox_left_column) {
491 print
'<td class="liste_titre maxwidthsearch center">';
492 $searchpicto = $form->showFilterButtons(
'left');
496if (!empty($arrayfields[
't.ref'][
'checked'])) {
497 print
'<td class="liste_titre">';
498 print
'<input type="text" class="flat" name="search_ref" value="'.$search_ref.
'" size="8">';
501if (!empty($arrayfields[
'ty.label'][
'checked'])) {
502 print
'<td class="liste_titre">';
503 print
'<input type="text" class="flat" name="search_type" value="'.$search_type.
'" size="8">';
506if (!empty($arrayfields[
't.address'][
'checked'])) {
507 print
'<td class="liste_titre">';
508 print
'<input type="text" class="flat" name="search_address" value="'.$search_address.
'" size="8">';
511if (!empty($arrayfields[
't.zip'][
'checked'])) {
512 print
'<td class="liste_titre">';
513 print
'<input type="text" class="flat" name="search_zip" value="'.$search_zip.
'" size="8">';
516if (!empty($arrayfields[
't.town'][
'checked'])) {
517 print
'<td class="liste_titre">';
518 print
'<input type="text" class="flat" name="search_town" value="'.$search_town.
'" size="8">';
521if (!empty($arrayfields[
'st.nom'][
'checked'])) {
522 print
'<td class="liste_titre">';
523 print
'<input type="text" class="flat" name="search_state" value="'.$search_state.
'" size="8">';
526if (!empty($arrayfields[
'co.label'][
'checked'])) {
527 print
'<td class="liste_titre">';
528 print $form->select_country($search_country,
'search_country',
'', 0,
'minwidth100imp maxwidth100');
531if (!empty($arrayfields[
't.phone'][
'checked'])) {
532 print
'<td class="liste_titre">';
533 print
'<input type="text" class="flat" name="search_phone" value="'.$search_phone.
'" size="8">';
536if (!empty($arrayfields[
't.email'][
'checked'])) {
537 print
'<td class="liste_titre">';
538 print
'<input type="text" class="flat" name="search_email" value="'.$search_email.
'" size="8">';
541if (!empty($arrayfields[
't.max_users'][
'checked'])) {
542 print
'<td class="liste_titre">';
543 print
'<input type="text" class="flat" name="search_max_users" value="'.$search_max_users.
'" size="8">';
546if (!empty($arrayfields[
't.url'][
'checked'])) {
547 print
'<td class="liste_titre">';
548 print
'<input type="text" class="flat" name="search_url" value="'.$search_url.
'" size="8">';
552include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_input.tpl.php';
555if (!
$conf->main_checkbox_left_column) {
556 print
'<td class="liste_titre center maxwidthsearch">';
557 $searchpicto = $form->showFilterButtons();
563$totalarray = array();
564$totalarray[
'nbfield'] = 0;
568print
'<tr class="liste_titre">';
570if (
$conf->main_checkbox_left_column) {
571 print_liste_field_titre($selectedfields, $_SERVER[
"PHP_SELF"],
"",
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ');
573if (!empty($arrayfields[
't.ref'][
'checked'])) {
575 print_liste_field_titre($arrayfields[
't.ref'][
'label'], $_SERVER[
"PHP_SELF"],
"t.ref",
"", $param,
"", $sortfield, $sortorder);
577if (!empty($arrayfields[
'ty.label'][
'checked'])) {
578 print_liste_field_titre($arrayfields[
'ty.label'][
'label'], $_SERVER[
"PHP_SELF"],
"ty.label",
"", $param,
"", $sortfield, $sortorder);
580if (!empty($arrayfields[
't.address'][
'checked'])) {
581 print_liste_field_titre($arrayfields[
't.address'][
'label'], $_SERVER[
"PHP_SELF"],
"t.address",
"", $param,
"", $sortfield, $sortorder);
583if (!empty($arrayfields[
't.zip'][
'checked'])) {
584 print_liste_field_titre($arrayfields[
't.zip'][
'label'], $_SERVER[
"PHP_SELF"],
"t.zip",
"", $param,
"", $sortfield, $sortorder);
586if (!empty($arrayfields[
't.town'][
'checked'])) {
587 print_liste_field_titre($arrayfields[
't.town'][
'label'], $_SERVER[
"PHP_SELF"],
"t.town",
"", $param,
"", $sortfield, $sortorder);
589if (!empty($arrayfields[
'st.nom'][
'checked'])) {
590 print_liste_field_titre($arrayfields[
'st.nom'][
'label'], $_SERVER[
"PHP_SELF"],
"st.nom",
"", $param,
"", $sortfield, $sortorder);
592if (!empty($arrayfields[
'co.label'][
'checked'])) {
593 print_liste_field_titre($arrayfields[
'co.label'][
'label'], $_SERVER[
"PHP_SELF"],
"co.label",
"", $param,
"", $sortfield, $sortorder);
595if (!empty($arrayfields[
't.phone'][
'checked'])) {
596 print_liste_field_titre($arrayfields[
't.phone'][
'label'], $_SERVER[
"PHP_SELF"],
"t.phone",
"", $param,
"", $sortfield, $sortorder);
598if (!empty($arrayfields[
't.email'][
'checked'])) {
599 print_liste_field_titre($arrayfields[
't.email'][
'label'], $_SERVER[
"PHP_SELF"],
"t.email",
"", $param,
"", $sortfield, $sortorder);
601if (!empty($arrayfields[
't.max_users'][
'checked'])) {
602 print_liste_field_titre($arrayfields[
't.max_users'][
'label'], $_SERVER[
"PHP_SELF"],
"t.max_users",
"", $param,
"", $sortfield, $sortorder);
604if (!empty($arrayfields[
't.url'][
'checked'])) {
605 print_liste_field_titre($arrayfields[
't.url'][
'label'], $_SERVER[
"PHP_SELF"],
"t.url",
"", $param,
"", $sortfield, $sortorder);
608include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
610if (!
$conf->main_checkbox_left_column) {
611 print_liste_field_titre($selectedfields, $_SERVER[
"PHP_SELF"],
"",
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ');
618$savnbfield = $totalarray[
'nbfield'];
619$totalarray = array();
620$totalarray[
'nbfield'] = 0;
621$imaxinloop = ($limit ? min($num, $limit) : $num);
622while ($i < $imaxinloop) {
623 $obj = $db->fetch_object($resql);
624 $objectstatic->id = $obj->rowid;
625 $objectstatic->ref = $obj->ref;
626 $objectstatic->type_label = $obj->type_label;
627 $objectstatic->address = $obj->address;
628 $objectstatic->zip = $obj->zip;
629 $objectstatic->town = $obj->town;
630 $objectstatic->state = $obj->state_label;
631 $objectstatic->country = $obj->country_label;
632 $objectstatic->phone = $obj->phone;
633 $objectstatic->email = $obj->email;
634 $objectstatic->max_users = $obj->max_users;
635 $objectstatic->url = $obj->url;
637 print
'<tr data-rowid="'.$obj->rowid.
'" class="oddeven row-with-select">';
640 if (
$conf->main_checkbox_left_column) {
641 print
'<td class="nowrap center">';
642 if ($massactionbutton || $massaction) {
644 if (in_array($obj->rowid, $arrayofselected)) {
647 print
'<input id="cb'.$obj->rowid.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->rowid.
'"'.($selected ?
' checked="checked"' :
'').
'>';
651 $totalarray[
'nbfield']++;
655 if (!empty($arrayfields[
't.ref'][
'checked'])) {
656 print
'<td class="tdoverflowmax150">'.$objectstatic->getNomUrl(5).
'</td>';
658 $totalarray[
'nbfield']++;
662 if (!empty($arrayfields[
'ty.label'][
'checked'])) {
663 print
'<td class="tdoverflowmax200">'.$objectstatic->type_label.
'</td>';
665 $totalarray[
'nbfield']++;
669 if (!empty($arrayfields[
't.address'][
'checked'])) {
670 print
'<td>'.$objectstatic->address.
'</td>';
672 $totalarray[
'nbfield']++;
676 if (!empty($arrayfields[
't.zip'][
'checked'])) {
677 print
'<td>'.$objectstatic->zip.
'</td>';
679 $totalarray[
'nbfield']++;
683 if (!empty($arrayfields[
't.town'][
'checked'])) {
684 print
'<td>'.$objectstatic->town.
'</td>';
686 $totalarray[
'nbfield']++;
690 if (!empty($arrayfields[
'st.nom'][
'checked'])) {
691 print
'<td>'.$objectstatic->state.
'</td>';
693 $totalarray[
'nbfield']++;
697 if (!empty($arrayfields[
'co.label'][
'checked'])) {
698 print
'<td>'.$objectstatic->country.
'</td>';
700 $totalarray[
'nbfield']++;
704 if (!empty($arrayfields[
't.phone'][
'checked'])) {
705 print
'<td>'.dol_print_phone($objectstatic->phone,
'', 0, 0,
'AC_TEL',
" ",
'phone').
'</td>';
707 $totalarray[
'nbfield']++;
711 if (!empty($arrayfields[
't.email'][
'checked'])) {
712 $showinvalidemail = (int) !
getDolGlobalInt(
'MAIN_SHOW_INVALID_EMAIL_IN_LIST');
713 print
'<td class="tdoverflowmax150" title="'.dolPrintHTMLForAttribute((
string) $obj->email).
'">'.
dol_print_email((
string) $objectstatic->email, 0, 0, 1, 0, $showinvalidemail, 1).
'</td>';
715 $totalarray[
'nbfield']++;
719 if (!empty($arrayfields[
't.max_users'][
'checked'])) {
720 print
'<td>'.$objectstatic->max_users.
'</td>';
722 $totalarray[
'nbfield']++;
726 if (!empty($arrayfields[
't.url'][
'checked'])) {
727 print
'<td>'.dol_print_url($objectstatic->url,
'_blank', 32, 1).
'</td>';
729 $totalarray[
'nbfield']++;
733 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
736 if (!
$conf->main_checkbox_left_column) {
737 print
'<td class="nowrap center">';
738 if ($massactionbutton || $massaction) {
740 if (in_array($obj->rowid, $arrayofselected)) {
743 print
'<input id="cb'.$obj->rowid.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->rowid.
'"'.($selected ?
' checked="checked"' :
'').
'>';
747 $totalarray[
'nbfield']++;
756include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
761 foreach ($arrayfields as $key => $val) {
762 if (!empty($val[
'checked'])) {
766 print
'<tr><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</span></td></tr>';
771$parameters = array(
'arrayfields' => $arrayfields,
'sql' => $sql);
772$reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $object, $action);
773print $hookmanager->resPrint;
775print
'</table>'.
"\n";
$id
Support class for third parties, contacts, members, users or resources.
if(! $sortfield) if(! $sortorder) $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.
dol_print_email($email, $contactid=0, $socid=0, $addlink=0, $max=0, $showinvalid=2, $withpicto=0, $morecss='paddingrightonly')
Show EMail link formatted for HTML output.
natural_search($fields, $value, $mode=0, $nofirstand=0, $sqltoadd='')
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...
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0, $nodefault=0)
Return value of a param into GET or POST supervariable.
GETPOSTINT($paramname, $method=0, $nodefault=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
print_liste_field_titre($name, $file="", $field="", $begin="", $param="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $tooltip="", $forcenowrapcolumntitle=0)
Show title line of an array.
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.
dol_natural_search_phone($db, $fields, $value, $nofirstand=0)
Build a natural_search() SQL fragment for a phone/fax field, tolerant of the international storage fo...
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.