37require
'../main.inc.php';
46require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
47require_once DOL_DOCUMENT_ROOT.
'/contact/class/contact.class.php';
48require_once DOL_DOCUMENT_ROOT.
'/fichinter/class/fichinter.class.php';
49require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
51 require_once DOL_DOCUMENT_ROOT.
'/projet/class/project.class.php';
54 require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
55 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcategory.class.php';
58 require_once DOL_DOCUMENT_ROOT.
'/contrat/class/contrat.class.php';
63$langs->loadLangs(array(
'companies',
'bills',
'interventions'));
65 $langs->load(
"projects");
68 $langs->load(
"contracts");
71 $langs->load(
"categories");
74$action =
GETPOST(
'action',
'aZ09');
75$massaction =
GETPOST(
'massaction',
'alpha');
77$confirm =
GETPOST(
'confirm',
'alpha');
78$toselect =
GETPOST(
'toselect',
'array:int');
79$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'interventionlist';
80$mode =
GETPOST(
'mode',
'alpha');
83 $userschilds = $user->getAllChildIds();
85 $userschilds = array();
88$search_ref =
GETPOST(
'search_ref') ?
GETPOST(
'search_ref',
'alpha') :
GETPOST(
'search_inter',
'alpha');
89$search_ref_client =
GETPOST(
'search_ref_client',
'alpha');
90$search_company =
GETPOST(
'search_company',
'alpha');
91$search_desc =
GETPOST(
'search_desc',
'alpha');
92$search_projet_ref =
GETPOST(
'search_projet_ref',
'alpha');
93$search_contrat_ref =
GETPOST(
'search_contrat_ref',
'alpha');
94$search_status =
GETPOST(
'search_status',
'alpha');
95$search_signed_status =
GETPOST(
'search_signed_status',
'alpha');
96$search_all = trim(
GETPOST(
'search_all',
'alphanohtml'));
97$search_date_startday =
GETPOSTINT(
'search_date_startday');
98$search_date_startmonth =
GETPOSTINT(
'search_date_startmonth');
99$search_date_startyear =
GETPOSTINT(
'search_date_startyear');
100$search_date_endday =
GETPOSTINT(
'search_date_endday');
101$search_date_endmonth =
GETPOSTINT(
'search_date_endmonth');
102$search_date_endyear =
GETPOSTINT(
'search_date_endyear');
103$search_date_start =
dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);
104$search_date_end =
dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear);
105$optioncss =
GETPOST(
'optioncss',
'alpha');
108$searchCategoryFichinterOperator = 0;
110 $searchCategoryFichinterOperator =
GETPOSTINT(
'search_category_fichinter_operator');
112 $searchCategoryFichinterOperator =
getDolGlobalString(
'MAIN_SEARCH_CAT_OR_BY_DEFAULT');
114$searchCategoryFichinterList =
GETPOST(
'search_category_fichinter_list',
'array');
115$catid =
GETPOST(
'catid',
'int');
116if (!empty($catid) && empty($searchCategoryFichinterList)) {
117 $searchCategoryFichinterList = array($catid);
120$diroutputmassaction =
$conf->ficheinter->dir_output.
'/temp/massgeneration/'.$user->id;
124$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
125$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
127if (empty($page) || $page < 0 ||
GETPOST(
'button_search',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
131$offset = $limit * $page;
132$pageprev = $page - 1;
133$pagenext = $page + 1;
138 $sortfield =
"f.ref";
143$hookmanager->initHooks(array($contextpage));
146$extrafields->fetch_name_optionals_label(
$object->table_element);
148$search_array_options = $extrafields->getOptionalsFromPost(
$object->table_element,
'',
'search_');
151$fieldstosearchall = array(
153 's.nom' =>
"ThirdParty",
154 'f.description' =>
'Description',
155 'f.note_public' =>
'NotePublic',
156 'fd.description' =>
'DescriptionOfLine',
158if (empty($user->socid)) {
159 $fieldstosearchall[
"f.note_private"] =
"NotePrivate";
162 unset($fieldstosearchall[
'fd.description']);
167 'f.ref' => array(
'label' =>
'Ref',
'checked' =>
'1'),
168 'f.ref_client' => array(
'label' =>
'RefCustomer',
'checked' =>
'1'),
169 's.nom' => array(
'label' =>
'ThirdParty',
'checked' =>
'1'),
170 'pr.ref' => array(
'label' =>
'Project',
'checked' =>
'1',
'enabled' => (!
isModEnabled(
'project') ?
'0' :
'1')),
171 'c.ref' => array(
'label' =>
'Contract',
'checked' =>
'1',
'enabled' => (empty(
$conf->contrat->enabled) ?
'0' :
'1')),
172 'f.description' => array(
'label' =>
'Description',
'checked' =>
'1'),
173 'f.datec' => array(
'label' =>
'DateCreation',
'checked' =>
'0',
'position' => 500),
174 'f.tms' => array(
'label' =>
'DateModificationShort',
'checked' =>
'0',
'position' => 500),
175 'f.note_public' => array(
'label' =>
'NotePublic',
'checked' =>
'0',
'position' => 510,
'enabled' => (string) (!
getDolGlobalInt(
'MAIN_LIST_HIDE_PUBLIC_NOTES'))),
176 'f.note_private' => array(
'label' =>
'NotePrivate',
'checked' =>
'0',
'position' => 511,
'enabled' => (string) (!
getDolGlobalInt(
'MAIN_LIST_HIDE_PRIVATE_NOTES'))),
177 'f.fk_statut' => array(
'label' =>
'Status',
'checked' =>
'1',
'position' => 1000),
178 'f.signed_status' => array(
'label' =>
'SignedStatus',
'checked' =>
'0',
'position' => 1001),
179 'fd.description' => array(
'label' =>
"DescriptionOfLine",
'checked' =>
'1',
'enabled' =>
getDolGlobalString(
'FICHINTER_DISABLE_DETAILS') !=
'1' ?
'1' :
'0'),
180 'fd.date' => array(
'label' =>
'DateOfLine',
'checked' =>
'1',
'enabled' =>
getDolGlobalString(
'FICHINTER_DISABLE_DETAILS') !=
'1' ?
'1' :
'0'),
181 'fd.duree' => array(
'label' =>
'DurationOfLine',
'type' =>
'duration',
'checked' =>
'1',
'enabled' => !
getDolGlobalString(
'FICHINTER_DISABLE_DETAILS') ?
'1' :
'0'),
184include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_array_fields.tpl.php';
187$parameters = array(
'arrayfields' => &$arrayfields);
188$reshook = $hookmanager->executeHooks(
'completeArrayFields', $parameters, $object, $action);
196 $socid = $user->socid;
200$permissiontoreadallthirdparty = $user->hasRight(
'societe',
'client',
'voir');
201$permissiontoread = $user->hasRight(
'ficheinter',
'lire');
202$permissiontoadd = $user->hasRight(
'ficheinter',
'creer');
203$permissiontodelete = $user->hasRight(
'ficheinter',
'supprimer');
210if (
GETPOST(
'cancel',
'alpha')) {
214if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') {
218$parameters = array(
'socid' => $socid,
'arrayfields' => &$arrayfields);
219$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
221 setEventMessages($hookmanager->error, $hookmanager->errors,
'errors');
224if (empty($reshook)) {
226 include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
229 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
231 $search_ref_client =
"";
232 $searchCategoryFichinterList = array();
233 $search_company =
"";
234 $search_projet_ref =
"";
235 $search_contrat_ref =
"";
238 $search_signed_status =
'';
239 $search_date_startday =
'';
240 $search_date_startmonth =
'';
241 $search_date_startyear =
'';
242 $search_date_endday =
'';
243 $search_date_endmonth =
'';
244 $search_date_endyear =
'';
245 $search_date_start =
'';
246 $search_date_end =
'';
248 $search_array_options = array();
252 $objectclass =
'Fichinter';
253 $objectlabel =
'Interventions';
254 $uploaddir =
$conf->ficheinter->dir_output;
255 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
265$form =
new Form($db);
268$companystatic =
new Societe($db);
270$contratstatic =
null;
272 $projetstatic =
new Project($db);
275 $contratstatic =
new Contrat($db);
280$title = $langs->trans(
"Interventions");
286$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
287$selectedfields = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage);
289$atleastonefieldinlines = 0;
290foreach ($arrayfields as $tmpkey => $tmpval) {
291 if (preg_match(
'/^fd\./', $tmpkey) && !empty($arrayfields[$tmpkey][
'checked'])) {
292 $atleastonefieldinlines++;
298$sql .=
" f.ref, f.ref_client, f.rowid, f.fk_statut as status, f.signed_status as signed_status, f.description, f.datec as date_creation, f.tms as date_modification, f.note_public, f.note_private,";
300 $sql .=
" fd.rowid as lineid, fd.description as descriptiondetail, fd.date as dp, fd.duree,";
302$sql .=
" s.nom as name, s.rowid as socid, s.client, s.fournisseur, s.email, s.status as thirdpartystatus";
304 $sql .=
", pr.rowid as projet_id, pr.ref as projet_ref, pr.title as projet_title";
307 $sql .=
", c.rowid as contrat_id, c.ref as contrat_ref, c.ref_customer as contrat_ref_customer, c.ref_supplier as contrat_ref_supplier";
310if (!empty($extrafields->attributes[
$object->table_element][
'label'])) {
311 foreach ($extrafields->attributes[
$object->table_element][
'label'] as $key => $val) {
312 $sql .= ($extrafields->attributes[
$object->table_element][
'type'][$key] !=
'separate' ?
", ef.".$key.
" as options_".$key :
'');
316$parameters = array();
317$reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object, $action);
318$sql .= $hookmanager->resPrint;
322$sql .=
" FROM ".MAIN_DB_PREFIX.
"fichinter as f";
324 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"projet as pr on f.fk_projet = pr.rowid";
327 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"contrat as c on f.fk_contrat = c.rowid";
329if (isset($extrafields->attributes[
$object->table_element][
'label']) && is_array($extrafields->attributes[
$object->table_element][
'label']) && count($extrafields->attributes[
$object->table_element][
'label'])) {
330 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element.
"_extrafields as ef on (f.rowid = ef.fk_object)";
333 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.
"fichinterdet as fd ON fd.fk_fichinter = f.rowid";
337$parameters = array();
338$reshook = $hookmanager->executeHooks(
'printFieldListFrom', $parameters, $object, $action);
339$sql .= $hookmanager->resPrint;
341$sql .=
", ".MAIN_DB_PREFIX.
"societe as s";
342$sql .=
" WHERE f.entity IN (".getEntity(
'intervention').
")";
343$sql .=
" AND f.fk_soc = s.rowid";
347if ($search_ref_client) {
350if ($search_company) {
353if ($search_projet_ref) {
356if ($search_contrat_ref) {
361 $sql .=
natural_search(array(
'f.description',
'fd.description'), $search_desc);
367if (!empty($searchCategoryFichinterList)) {
368 $searchCategoryFichinterSqlList = array();
369 $listofcategoryid =
'';
370 foreach ($searchCategoryFichinterList as $searchCategoryFichinter) {
371 if (intval($searchCategoryFichinter) == -2) {
372 $searchCategoryFichinterSqlList[] =
"NOT EXISTS (SELECT ck.fk_fichinter FROM ".MAIN_DB_PREFIX.
"categorie_fichinter as ck WHERE f.rowid = ck.fk_fichinter)";
373 } elseif (intval($searchCategoryFichinter) > 0) {
374 if ($searchCategoryFichinterOperator == 0) {
375 $searchCategoryFichinterSqlList[] =
" EXISTS (SELECT ck.fk_fichinter FROM ".MAIN_DB_PREFIX.
"categorie_fichinter as ck WHERE f.rowid = ck.fk_fichinter AND ck.fk_categorie = ".((int) $searchCategoryFichinter).
")";
377 $listofcategoryid .= ($listofcategoryid ?
', ' :
'') .((
int) $searchCategoryFichinter);
381 if ($listofcategoryid) {
382 $searchCategoryFichinterSqlList[] =
" EXISTS (SELECT ck.fk_fichinter FROM ".MAIN_DB_PREFIX.
"categorie_fichinter as ck WHERE f.rowid = ck.fk_fichinter AND ck.fk_categorie IN (".$db->sanitize($listofcategoryid).
"))";
384 if ($searchCategoryFichinterOperator == 1) {
385 if (!empty($searchCategoryFichinterSqlList)) {
386 $sql .=
" AND (".implode(
' OR ', $searchCategoryFichinterSqlList).
")";
389 if (!empty($searchCategoryFichinterSqlList)) {
390 $sql .=
" AND (".implode(
' AND ', $searchCategoryFichinterSqlList).
")";
394if ($search_status !=
'' && $search_status >= 0) {
395 $sql .=
' AND f.fk_statut = '.((int) ($search_status));
397if ($search_signed_status !=
'' && $search_signed_status >= 0) {
398 $sql .=
' AND f.signed_status = '.((int) $search_signed_status);
401 if ($search_date_start) {
402 $sql .=
" AND fd.date >= '".$db->idate($search_date_start).
"'";
404 if ($search_date_end) {
405 $sql .=
" AND fd.date <= '".$db->idate($search_date_end).
"'";
409 $sql .=
" AND s.rowid = ".((int) $socid);
412if (empty($user->socid) && !$permissiontoreadallthirdparty) {
413 $sql .=
" AND (EXISTS (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX.
"societe_commerciaux as sc WHERE sc.fk_soc = f.fk_soc AND sc.fk_user = ".((int) $user->id).
")";
415 $sql .=
" OR EXISTS (SELECT sc.fk_soc FROM ".MAIN_DB_PREFIX.
"societe_commerciaux as sc WHERE sc.fk_soc = f.fk_soc AND sc.fk_user IN (".$db->sanitize(implode(
',', $userschilds)).
"))";
421 $sql .=
natural_search(array_keys($fieldstosearchall), $search_all);
433include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
435$parameters = array();
436$reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object, $action);
437$sql .= $hookmanager->resPrint;
439$parameters = array(
'search_all' => $search_all,
'fieldstosearchall' => $fieldstosearchall);
440$reshook = $hookmanager->executeHooks(
'printFieldListGroupBy', $parameters, $object);
441$sql .= $hookmanager->resPrint;
444$nbtotalofrecords =
'';
447 $sqlforcount = preg_replace(
'/^'.preg_quote($sqlfields,
'/').
'/',
'SELECT COUNT(*) as nbtotalofrecords', $sql);
448 $sqlforcount = preg_replace(
'/GROUP BY .*$/',
'', $sqlforcount);
449 $resql = $db->query($sqlforcount);
451 $objforcount = $db->fetch_object($resql);
452 $nbtotalofrecords = $objforcount->nbtotalofrecords;
454 dol_print_error($db);
457 if (($page * $limit) > (
int) $nbtotalofrecords) {
465$sql .= $db->order($sortfield, $sortorder);
467 $sql .= $db->plimit($limit + 1, $offset);
470$resql = $db->query($sql);
472 dol_print_error($db);
476$num = $db->num_rows($resql);
480if ($num == 1 &&
getDolGlobalString(
'MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && $search_all && !$page) {
481 $obj = $db->fetch_object($resql);
491foreach ($searchCategoryFichinterList as $searchCategoryFichinter) {
492 $paramsCat .=
"&search_category_fichinter_list[]=".urlencode($searchCategoryFichinter);
495llxHeader(
'', $title, $help_url,
'', 0, 0, $morejs, $morecss,
'',
'bodyforlist mod-fichinter page-list');
498$arrayofselected = is_array($toselect) ? $toselect : array();
503 if (empty($search_company)) {
504 $search_company = $soc->name;
510 $param .=
'&mode='.urlencode($mode);
512if (!empty($contextpage) && $contextpage != $_SERVER[
"PHP_SELF"]) {
513 $param .=
'&contextpage='.urlencode($contextpage);
515if ($limit > 0 && $limit !=
$conf->liste_limit) {
516 $param .=
'&limit='.((int) $limit);
519 $param .=
"&search_all=".urlencode($search_all);
522 $param .=
"&socid=".urlencode((
string) ($socid));
524if ($searchCategoryFichinterOperator == 1) {
525 $param .=
"&search_category_fichinter_operator=".urlencode((
string) $searchCategoryFichinterOperator);
527foreach ($searchCategoryFichinterList as $searchCategoryFichinter) {
528 $param .=
"&search_category_fichinter_list[]=".urlencode($searchCategoryFichinter);
531 $param .=
"&search_ref=".urlencode($search_ref);
533if ($search_ref_client) {
534 $param .=
"&search_ref_client=".urlencode($search_ref_client);
536if ($search_company) {
537 $param .=
"&search_company=".urlencode($search_company);
540 $param .=
"&search_desc=".urlencode($search_desc);
542if ($search_projet_ref) {
543 $param .=
"&search_projet_ref=".urlencode($search_projet_ref);
545if ($search_contrat_ref) {
546 $param .=
"&search_contrat_ref=".urlencode($search_contrat_ref);
548if ($search_status !=
'' && $search_status > -1) {
549 $param .=
"&search_status=".urlencode($search_status);
551if ($search_signed_status !=
'' && $search_signed_status >= 0) {
552 $param .=
'&search_signed_status='.urlencode($search_signed_status);
554if ($search_date_startday > 0) {
555 $param .=
'&search_date_startday='.urlencode((
string) ($search_date_startday));
557if ($search_date_startmonth > 0) {
558 $param .=
'&search_date_startmonth='.urlencode((
string) ($search_date_startmonth));
560if ($search_date_startyear > 0) {
561 $param .=
'&search_date_startyear='.urlencode((
string) ($search_date_startyear));
563if ($search_date_endday > 0) {
564 $param .=
'&search_date_endday='.urlencode((
string) ($search_date_endday));
566if ($search_date_endmonth > 0) {
567 $param .=
'&search_date_endmonth='.urlencode((
string) ($search_date_endmonth));
569if ($search_date_endyear > 0) {
570 $param .=
'&search_date_endyear='.urlencode((
string) ($search_date_endyear));
573 $param .=
'&show_files='.urlencode((
string) ($show_files));
575if ($optioncss !=
'') {
576 $param .=
'&optioncss='.urlencode($optioncss);
579include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
581$parameters = array(
'param' => &$param);
582$reshook = $hookmanager->executeHooks(
'printFieldListSearchParam', $parameters, $object, $action);
583$param .= $hookmanager->resPrint;
586$arrayofmassactions = array(
587 'generate_doc' => img_picto(
'',
'pdf',
'class="pictofixedwidth"').$langs->trans(
"ReGeneratePDF"),
588 'builddoc' => img_picto(
'',
'pdf',
'class="pictofixedwidth"').$langs->trans(
"PDFMerge"),
591if (!empty($permissiontodelete)) {
592 $arrayofmassactions[
'predelete'] = img_picto(
'',
'delete',
'class="pictofixedwidth"').$langs->trans(
"Delete");
594if (
isModEnabled(
'category') && $user->hasRight(
'categorie',
'creer')) {
595 $arrayofmassactions[
'preaffecttag'] = img_picto(
'',
'category',
'class="pictofixedwidth"').$langs->trans(
"AffectTag");
597if (
GETPOSTINT(
'nomassaction') || in_array($massaction, array(
'presend',
'predelete',
'preaffecttag'))) {
598 $arrayofmassactions = array();
600$massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
603print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].
'">'.
"\n";
604if ($optioncss !=
'') {
605 print
'<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
607print
'<input type="hidden" name="token" value="'.newToken().
'">';
608print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
609print
'<input type="hidden" name="action" value="list">';
610print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
611print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
612print
'<input type="hidden" name="page" value="'.$page.
'">';
613print
'<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
614print
'<input type="hidden" name="page_y" value="">';
615print
'<input type="hidden" name="mode" value="'.$mode.
'">';
618$url = DOL_URL_ROOT.
'/fichinter/card.php?action=create';
620 $url .=
'&socid='.$socid;
623$newcardbutton .=
dolGetButtonTitle($langs->trans(
'ViewList'),
'',
'fa fa-bars imgforviewmode', $_SERVER[
"PHP_SELF"].
'?mode=common'.preg_replace(
'/(&|\?)*mode=[^&]+/',
'', $param),
'', ((empty($mode) || $mode ==
'common') ? 2 : 1), array(
'morecss' =>
'reposition'));
624$newcardbutton .=
dolGetButtonTitle($langs->trans(
'ViewKanban'),
'',
'fa fa-th-list imgforviewmode', $_SERVER[
"PHP_SELF"].
'?mode=kanban'.preg_replace(
'/(&|\?)*mode=[^&]+/',
'', $param),
'', ($mode ==
'kanban' ? 2 : 1), array(
'morecss' =>
'reposition'));
625$newcardbutton .=
dolGetButtonTitle($langs->trans(
'Statistics'),
'',
'fa fa-chart-bar imgforviewmode', DOL_URL_ROOT.
'/fichinter/stats/index.php?'.preg_replace(
'/(&|\?)*(mode|groupby)=[^&]+/',
'', $param),
'', ($mode ==
'statistics' ? 2 : 1), array(
'morecss' =>
'reposition'));
627$newcardbutton .=
dolGetButtonTitle($langs->trans(
'NewIntervention'),
'',
'fa fa-plus-circle', $url,
'', $user->hasRight(
'ficheinter',
'creer'));
629print_barre_liste($title, $page, $_SERVER[
'PHP_SELF'], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
'object_'.
$object->picto, 0, $newcardbutton,
'', $limit, 0, 0, 1);
631$topicmail =
"Information";
632$modelmail =
"intervention";
634$trackid =
'int'.$object->id;
635include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
638 print
"<div id='ways'>";
640 $ways =
$c->print_all_ways(
' > ',
'fichinter/list.php');
641 print
" > ".$ways[0].
"<br>\n";
647 foreach ($fieldstosearchall as $key => $val) {
648 $fieldstosearchall[$key] = $langs->trans($val);
649 $setupstring .= $key.
"=".$val.
";";
651 print
'<!-- Search done like if MYOBJECT_QUICKSEARCH_ON_FIELDS = '.$setupstring.
' -->'.
"\n";
652 print
'<div class="divsearchfieldfilter">'.$langs->trans(
"FilterOnInto", $search_all).implode(
', ', $fieldstosearchall).
'</div>'.
"\n";
657if (
isModEnabled(
'category') && $user->hasRight(
'categorie',
'lire')) {
659 $moreforfilter .= $formcategory->getFilterBox(Categorie::TYPE_FICHINTER, $searchCategoryFichinterList,
'minwidth300', $searchCategoryFichinterOperator ? $searchCategoryFichinterOperator : 0);
661$parameters = array();
662$reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $object, $action);
663if (empty($reshook)) {
664 $moreforfilter .= $hookmanager->resPrint;
666 $moreforfilter = $hookmanager->resPrint;
669if (!empty($moreforfilter)) {
670 print
'<div class="liste_titre liste_titre_bydiv centpercent">';
671 print $moreforfilter;
675$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
676$htmlofselectarray = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
$conf->main_checkbox_left_column);
677$selectedfields = ($mode !=
'kanban' ? $htmlofselectarray :
'');
678$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons(
'checkforselect', 1) :
'');
680print
'<div class="div-table-responsive">';
681print
'<table class="tagtable nobottomiftotal liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">'.
"\n";
685print
'<tr class="liste_titre_filter">';
687if (
$conf->main_checkbox_left_column) {
688 print
'<td class="liste_titre center maxwidthsearch">';
689 $searchpicto = $form->showFilterButtons(
'left');
693if (!empty($arrayfields[
'f.ref'][
'checked'])) {
694 print
'<td class="liste_titre">';
695 print
'<input type="text" class="flat" name="search_ref" value="'.$search_ref.
'" size="8">';
698if (!empty($arrayfields[
'f.ref_client'][
'checked'])) {
699 print
'<td class="liste_titre">';
700 print
'<input type="text" class="flat" name="search_ref_client" value="'.$search_ref_client.
'" size="8">';
703if (!empty($arrayfields[
's.nom'][
'checked'])) {
704 print
'<td class="liste_titre">';
705 print
'<input type="text" class="flat" name="search_company" value="'.$search_company.
'" size="10">';
708if (!empty($arrayfields[
'pr.ref'][
'checked'])) {
709 print
'<td class="liste_titre">';
710 print
'<input type="text" class="flat" name="search_projet_ref" value="'.$search_projet_ref.
'" size="8">';
713if (!empty($arrayfields[
'c.ref'][
'checked'])) {
714 print
'<td class="liste_titre">';
715 print
'<input type="text" class="flat" name="search_contrat_ref" value="'.$search_contrat_ref.
'" size="8">';
718if (!empty($arrayfields[
'f.description'][
'checked'])) {
719 print
'<td class="liste_titre">';
720 print
'<input type="text" class="flat" name="search_desc" value="'.$search_desc.
'" size="12">';
724include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_input.tpl.php';
727$parameters = array(
'arrayfields' => $arrayfields);
728$reshook = $hookmanager->executeHooks(
'printFieldListOption', $parameters, $object, $action);
729print $hookmanager->resPrint;
730if (!empty($arrayfields[
'f.datec'][
'checked'])) {
732 print
'<td class="liste_titre">';
735if (!empty($arrayfields[
'f.tms'][
'checked'])) {
737 print
'<td class="liste_titre">';
740if (!empty($arrayfields[
'f.note_public'][
'checked'])) {
742 print
'<td class="liste_titre">';
745if (!empty($arrayfields[
'f.note_private'][
'checked'])) {
747 print
'<td class="liste_titre">';
751if (!empty($arrayfields[
'f.fk_statut'][
'checked'])) {
752 print
'<td class="liste_titre right parentonrightofpage">';
753 $objecttmp->getLibStatut();
760 print $form->selectarray(
'search_status', $objecttmp->labelStatus, $search_status, 1, 0, 0,
'', 1, 0, 0,
'',
'search_status width100 onrightofpage');
764if (!empty($arrayfields[
'f.signed_status'][
'checked'])) {
765 print
'<td class="liste_titre center">';
766 $list_signed_status =
$object->getSignedStatusLocalisedArray();
767 print $form->selectarray(
'search_signed_status', $list_signed_status, $search_signed_status, 1, 0, 0,
'', 1, 0, 0,
'',
'search_status');
771if (!empty($arrayfields[
'fd.description'][
'checked'])) {
772 print
'<td class="liste_titre"> </td>';
774if (!empty($arrayfields[
'fd.date'][
'checked'])) {
775 print
'<td class="liste_titre center">';
776 print
'<div class="nowrapfordate">';
777 print $form->selectDate($search_date_start ?: -1,
'search_date_start', 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'From'));
779 print
'<div class="nowrapfordate">';
780 print $form->selectDate($search_date_end ?: -1,
'search_date_end', 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'to'));
784if (!empty($arrayfields[
'fd.duree'][
'checked'])) {
785 print
'<td class="liste_titre"> </td>';
788if (!
$conf->main_checkbox_left_column) {
789 print
'<td class="liste_titre center maxwidthsearch">';
790 $searchpicto = $form->showFilterButtons();
796$totalarray = array();
797$totalarray[
'nbfield'] = 0;
801print
'<tr class="liste_titre">';
803if (
$conf->main_checkbox_left_column) {
804 print_liste_field_titre($selectedfields, $_SERVER[
"PHP_SELF"],
"",
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ');
805 $totalarray[
'nbfield']++;
807if (!empty($arrayfields[
'f.ref'][
'checked'])) {
809 print_liste_field_titre($arrayfields[
'f.ref'][
'label'], $_SERVER[
"PHP_SELF"],
"f.ref",
"", $param,
'', $sortfield, $sortorder);
810 $totalarray[
'nbfield']++;
812if (!empty($arrayfields[
'f.ref_client'][
'checked'])) {
813 print_liste_field_titre($arrayfields[
'f.ref_client'][
'label'], $_SERVER[
"PHP_SELF"],
"f.ref_client",
"", $param,
'', $sortfield, $sortorder);
814 $totalarray[
'nbfield']++;
816if (!empty($arrayfields[
's.nom'][
'checked'])) {
817 print_liste_field_titre($arrayfields[
's.nom'][
'label'], $_SERVER[
"PHP_SELF"],
"s.nom",
"", $param,
'', $sortfield, $sortorder);
818 $totalarray[
'nbfield']++;
820if (!empty($arrayfields[
'pr.ref'][
'checked'])) {
821 print_liste_field_titre($arrayfields[
'pr.ref'][
'label'], $_SERVER[
"PHP_SELF"],
"pr.ref",
"", $param,
'', $sortfield, $sortorder);
822 $totalarray[
'nbfield']++;
824if (!empty($arrayfields[
'c.ref'][
'checked'])) {
825 print_liste_field_titre($arrayfields[
'c.ref'][
'label'], $_SERVER[
"PHP_SELF"],
"c.ref",
"", $param,
'', $sortfield, $sortorder);
826 $totalarray[
'nbfield']++;
828if (!empty($arrayfields[
'f.description'][
'checked'])) {
829 print_liste_field_titre($arrayfields[
'f.description'][
'label'], $_SERVER[
"PHP_SELF"],
"f.description",
"", $param,
'', $sortfield, $sortorder);
830 $totalarray[
'nbfield']++;
833include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
835$parameters = array(
'arrayfields' => $arrayfields,
'param' => $param,
'sortfield' => $sortfield,
'sortorder' => $sortorder,
'totalarray' => &$totalarray);
836$reshook = $hookmanager->executeHooks(
'printFieldListTitle', $parameters, $object, $action);
837print $hookmanager->resPrint;
838if (!empty($arrayfields[
'f.datec'][
'checked'])) {
839 print_liste_field_titre($arrayfields[
'f.datec'][
'label'], $_SERVER[
"PHP_SELF"],
"f.datec",
"", $param,
'', $sortfield, $sortorder,
'center nowrap ');
840 $totalarray[
'nbfield']++;
842if (!empty($arrayfields[
'f.tms'][
'checked'])) {
843 print_liste_field_titre($arrayfields[
'f.tms'][
'label'], $_SERVER[
"PHP_SELF"],
"f.tms",
"", $param,
'', $sortfield, $sortorder,
'center nowrap ');
844 $totalarray[
'nbfield']++;
846if (!empty($arrayfields[
'f.note_public'][
'checked'])) {
847 print_liste_field_titre($arrayfields[
'f.note_public'][
'label'], $_SERVER[
"PHP_SELF"],
"f.note_public",
"", $param,
'', $sortfield, $sortorder,
'center nowrap ');
848 $totalarray[
'nbfield']++;
850if (!empty($arrayfields[
'f.note_private'][
'checked'])) {
851 print_liste_field_titre($arrayfields[
'f.note_private'][
'label'], $_SERVER[
"PHP_SELF"],
"f.note_private",
"", $param,
'', $sortfield, $sortorder,
'center nowrap ');
852 $totalarray[
'nbfield']++;
854if (!empty($arrayfields[
'f.fk_statut'][
'checked'])) {
855 print_liste_field_titre($arrayfields[
'f.fk_statut'][
'label'], $_SERVER[
"PHP_SELF"],
"f.fk_statut",
"", $param,
'', $sortfield, $sortorder,
'center ');
856 $totalarray[
'nbfield']++;
858if (!empty($arrayfields[
'f.signed_status'][
'checked'])) {
859 print_liste_field_titre($arrayfields[
'f.signed_status'][
'label'], $_SERVER[
"PHP_SELF"],
"f.signed_status",
"", $param,
'', $sortfield, $sortorder,
'center ');
860 $totalarray[
'nbfield']++;
862if (!empty($arrayfields[
'fd.description'][
'checked'])) {
864 $totalarray[
'nbfield']++;
866if (!empty($arrayfields[
'fd.date'][
'checked'])) {
867 print_liste_field_titre($arrayfields[
'fd.date'][
'label'], $_SERVER[
"PHP_SELF"],
"fd.date",
"", $param,
'', $sortfield, $sortorder,
'center ');
868 $totalarray[
'nbfield']++;
870if (!empty($arrayfields[
'fd.duree'][
'checked'])) {
871 print_liste_field_titre($arrayfields[
'fd.duree'][
'label'], $_SERVER[
"PHP_SELF"],
"fd.duree",
"", $param,
'', $sortfield, $sortorder,
'right ');
872 $totalarray[
'nbfield']++;
876if (!
$conf->main_checkbox_left_column) {
877 print_liste_field_titre($selectedfields, $_SERVER[
"PHP_SELF"],
"",
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ');
878 $totalarray[
'nbfield']++;
886$savnbfield = $totalarray[
'nbfield'];
887$totalarray = array();
888$totalarray[
'nbfield'] = 0;
889$totalarray[
'val'] = array();
890$totalarray[
'val'][
'fd.duree'] = 0;
892$imaxinloop = ($limit ? min($num, $limit) : $num);
893while ($i < $imaxinloop) {
894 $obj = $db->fetch_object($resql);
902 $objectstatic->id = $obj->rowid;
903 $objectstatic->ref = $obj->ref;
904 $objectstatic->ref_client = $obj->ref_client;
905 $objectstatic->statut = $obj->status;
906 $objectstatic->status = $obj->status;
907 $objectstatic->signed_status = $obj->signed_status;
909 $companystatic->name = $obj->name;
910 $companystatic->id = $obj->socid;
911 $companystatic->client = $obj->client;
912 $companystatic->fournisseur = $obj->fournisseur;
913 $companystatic->email = $obj->email;
914 $companystatic->status = $obj->thirdpartystatus;
917 if ($mode ==
'kanban') {
919 print
'<tr class="trkanban"><td colspan="'.$savnbfield.
'">';
920 print
'<div class="box-flex-container kanban">';
924 if ($massactionbutton || $massaction) {
926 if (in_array(
$object->id, $arrayofselected)) {
931 $objectstatic->duration = $obj->duree;
932 $arraydata = array();
933 $arraydata[
'thirdparty'] = $companystatic;
934 print $objectstatic->getKanbanView(
'', $arraydata);
935 if ($i == ($imaxinloop - 1)) {
942 print
'<tr data-rowid="'.$object->id.
'" class="oddeven row-with-select">';
944 if (
$conf->main_checkbox_left_column) {
945 print
'<td class="nowrap center">';
946 if ($massactionbutton || $massaction) {
948 if (in_array($obj->rowid, $arrayofselected)) {
951 print
'<input id="cb'.$obj->rowid.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->rowid.
'"'.($selected ?
' checked="checked"' :
'').
'>';
955 $totalarray[
'nbfield']++;
960 if (!empty($arrayfields[
'f.ref'][
'checked'])) {
963 print
'<table class="nobordernopadding"><tr class="nocellnopadd">';
964 print
'<td class="nobordernopadding nowraponall">';
965 print $objectstatic->getNomUrl(1);
970 if (!empty($obj->note_private)) {
971 $warnornote .= ($warnornote ?
' ' :
'');
972 $warnornote .=
'<span class="note">';
973 $warnornote .=
'<a href="note.php?id='.$obj->rowid.
'">'.img_picto($langs->trans(
"ViewPrivateNote"),
'object_generic').
'</a>';
974 $warnornote .=
'</span>';
977 print
'<td style="min-width: 20px" class="nobordernopadding nowrap">';
983 print
'<td width="16" class="right nobordernopadding hideonsmartphone">';
986 $urlsource = $_SERVER[
'PHP_SELF'].
'?id='.$obj->rowid;
987 print $formfile->getDocumentsLink($objectstatic->element, $filename, $filedir);
988 print
'</td></tr></table>';
992 $totalarray[
'nbfield']++;
997 if (!empty($arrayfields[
'f.ref_client'][
'checked'])) {
998 print
'<td class="nowrap tdoverflowmax200">';
1002 $totalarray[
'nbfield']++;
1006 if (!empty($arrayfields[
's.nom'][
'checked'])) {
1007 print
'<td class="tdoverflowmax125">';
1008 print $companystatic->getNomUrl(1,
'', 44);
1011 $totalarray[
'nbfield']++;
1015 if (!empty($arrayfields[
'pr.ref'][
'checked']) && $projetstatic !==
null) {
1016 print
'<td class="tdoverflowmax150">';
1017 $projetstatic->id = $obj->projet_id;
1018 $projetstatic->ref = $obj->projet_ref;
1019 $projetstatic->title = $obj->projet_title;
1020 if ($projetstatic->id > 0) {
1021 print $projetstatic->getNomUrl(1,
'');
1025 $totalarray[
'nbfield']++;
1029 if (!empty($arrayfields[
'c.ref'][
'checked']) && $contratstatic !==
null) {
1030 print
'<td class="tdoverflowmax150">';
1031 $contratstatic->id = $obj->contrat_id;
1032 $contratstatic->ref = $obj->contrat_ref;
1033 $contratstatic->ref_customer = $obj->contrat_ref_customer;
1034 $contratstatic->ref_supplier = $obj->contrat_ref_supplier;
1035 if ($contratstatic->id > 0) {
1036 print $contratstatic->getNomUrl(1, 0);
1040 $totalarray[
'nbfield']++;
1043 if (!empty($arrayfields[
'f.description'][
'checked'])) {
1046 $totalarray[
'nbfield']++;
1051 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
1053 $parameters = array(
'arrayfields' => $arrayfields,
'obj' => $obj,
'i' => $i,
'totalarray' => &$totalarray);
1054 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters);
1055 print $hookmanager->resPrint;
1057 if (!empty($arrayfields[
'f.datec'][
'checked'])) {
1058 print
'<td class="center nowraponall">';
1059 print
dol_print_date($db->jdate($obj->date_creation),
'dayhour',
'tzuser');
1062 $totalarray[
'nbfield']++;
1066 if (!empty($arrayfields[
'f.tms'][
'checked'])) {
1067 print
'<td class="center nowraponall">';
1068 print
dol_print_date($db->jdate($obj->date_modification),
'dayhour',
'tzuser');
1071 $totalarray[
'nbfield']++;
1075 if (!empty($arrayfields[
'f.note_public'][
'checked'])) {
1076 print
'<td class="sensiblehtmlcontent center">';
1077 print
'<div class="small lineheightsmall twolinesmax-normallineheight">'.dolPrintHTML(
dolGetFirstLineOfText($obj->note_public, 5)).
'</div>';
1080 $totalarray[
'nbfield']++;
1084 if (!empty($arrayfields[
'f.note_private'][
'checked'])) {
1085 print
'<td class="sensiblehtmlcontent center">';
1086 print
'<div class="small lineheightsmall twolinesmax-normallineheight">'.dolPrintHTML(
dolGetFirstLineOfText($obj->note_private, 5)).
'</div>';
1089 $totalarray[
'nbfield']++;
1093 if (!empty($arrayfields[
'f.fk_statut'][
'checked'])) {
1094 print
'<td class="center">'.$objectstatic->getLibStatut(5).
'</td>';
1096 $totalarray[
'nbfield']++;
1100 if (!empty($arrayfields[
'f.signed_status'][
'checked'])) {
1101 print
'<td class="center">'.$objectstatic->getLibSignedStatus(5).
'</td>';
1103 $totalarray[
'nbfield']++;
1107 if (!empty($arrayfields[
'fd.description'][
'checked'])) {
1110 print
'<div class="classfortooltip tdoverflowmax250 small" title="'.dol_escape_htmltag($obj->descriptiondetail, 1, 1).
'">';
1115 $totalarray[
'nbfield']++;
1119 if (!empty($arrayfields[
'fd.date'][
'checked'])) {
1120 print
'<td class="center nowraponall" title="'.dol_print_date($db->jdate($obj->dp),
'dayhour').
'">'.
dol_print_date($db->jdate($obj->dp),
'dayhour').
"</td>\n";
1122 $totalarray[
'nbfield']++;
1126 if (!empty($arrayfields[
'fd.duree'][
'checked'])) {
1127 print
'<td class="right">'.convertSecondToTime($obj->duree,
'allhourmin').
'</td>';
1129 $totalarray[
'nbfield']++;
1132 $totalarray[
'type'][$totalarray[
'nbfield']] =
'duration';
1135 $totalarray[
'pos'][$totalarray[
'nbfield']] =
'fd.duree';
1137 $totalarray[
'val'][
'fd.duree'] += $obj->duree;
1140 if (!
$conf->main_checkbox_left_column) {
1141 print
'<td class="nowrap center">';
1142 if ($massactionbutton || $massaction) {
1144 if (in_array($obj->rowid, $arrayofselected)) {
1147 print
'<input id="cb'.$obj->rowid.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->rowid.
'"'.($selected ?
' checked="checked"' :
'').
'>';
1151 $totalarray[
'nbfield']++;
1157 $total += (isset($obj->duree) ? $obj->duree : 0);
1164include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
1169 foreach ($arrayfields as $key => $val) {
1170 if (!empty($val[
'checked'])) {
1174 print
'<tr><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</span></td></tr>';
1179$parameters = array(
'arrayfields' => $arrayfields,
'sql' => $sql);
1180$reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $object, $action);
1181print $hookmanager->resPrint;
1183print
'</table>'.
"\n";
1186print
'</form>'.
"\n";
1188if (in_array(
'builddoc', array_keys($arrayofmassactions)) && ($nbtotalofrecords ===
'' || $nbtotalofrecords)) {
1189 $hidegeneratedfilelistifempty = 1;
1190 if ($massaction ==
'builddoc' || $action ==
'remove_file' || $show_files) {
1191 $hidegeneratedfilelistifempty = 0;
1194 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
1198 $urlsource = $_SERVER[
'PHP_SELF'].
'?sortfield='.$sortfield.
'&sortorder='.$sortorder;
1199 $urlsource .= str_replace(
'&',
'&', $param);
1201 $filedir = $diroutputmassaction;
1202 $genallowed = $permissiontoread;
1203 $delallowed = $permissiontoadd;
1205 print $formfile->showdocuments(
'massfilesarea_interventions',
'', $filedir, $urlsource, 0, $delallowed,
'', 1, 1, 0, 48, 1, $param, $title,
'',
'',
'',
null, $hidegeneratedfilelistifempty);
$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.
Class to manage categories.
const STATUS_BILLED
Billed.
Class to manage projects.
Class to manage third parties objects (customers, suppliers, prospects...)
dol_now($mode='gmt')
Return date for now.
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm='auto', $check=1)
Return a timestamp date built from detailed information (by default a local PHP server timestamp) Rep...
dolGetFirstLineOfText($text, $nboflines=1, $charset='UTF-8')
Return first line of text.
dol_string_nohtmltag($stringtoclean, $removelinefeed=1, $pagecodeto='UTF-8', $strip_tags=0, $removedoublespaces=1)
Clean a string from all HTML tags and entities.
dol_sanitizeFileName($str, $newstr='_', $unaccent=1, $includequotes=0, $allowdash=0)
Clean a string to use it as a file name.
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.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false, $decorate=0)
Output date in a string format according to outputlangs (or langs if not defined).
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.
isModEnabled($module)
Is Dolibarr module enabled.
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.
dolGetButtonTitleSeparator($moreClass="")
Add space between dolGetButtonTitle.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $nodie=0, $mode='')
Check permissions of a user to show a page and an object.