29require
'../main.inc.php';
31require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
32require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
33require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
34require_once DOL_DOCUMENT_ROOT.
'/core/lib/project.lib.php';
36require_once DOL_DOCUMENT_ROOT.
'/eventorganization/class/conferenceorbooth.class.php';
37require_once DOL_DOCUMENT_ROOT.
'/eventorganization/class/conferenceorboothattendee.class.php';
38require_once DOL_DOCUMENT_ROOT.
'/eventorganization/lib/eventorganization_conferenceorbooth.lib.php';
39require_once DOL_DOCUMENT_ROOT.
'/projet/class/project.class.php';
40if (isModEnabled(
'category')) {
41 require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
55$langs->loadLangs(array(
"eventorganization",
"other",
"projects",
"bills"));
58$action =
GETPOST(
'action',
'aZ09') ?
GETPOST(
'action',
'aZ09') :
'view';
59$massaction =
GETPOST(
'massaction',
'alpha');
61$confirm =
GETPOST(
'confirm',
'alpha');
62$cancel =
GETPOST(
'cancel',
'alpha');
63$toselect =
GETPOST(
'toselect',
'array');
64$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') : str_replace(
'_',
'', basename(dirname(__FILE__)).basename(__FILE__,
'.php'));
65$backtopage =
GETPOST(
'backtopage',
'alpha');
66$optioncss =
GETPOST(
'optioncss',
'aZ');
70$conf_or_booth_id =
GETPOSTINT(
'conforboothid');
74$projectid = $fk_project;
80$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
81$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
83if (empty($page) || $page < 0 ||
GETPOST(
'button_search',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
87$offset = $limit * $page;
94$projectstatic =
new Project($db);
96$diroutputmassaction =
$conf->eventorganization->dir_output.
'/temp/massgeneration/'.$user->id;
97$hookmanager->initHooks(array(
'conferenceorboothattendeelist'));
100$extrafields->fetch_name_optionals_label(
$object->table_element);
103$search_array_options = $extrafields->getOptionalsFromPost(
$object->table_element,
'',
'search_');
108 $sortfield =
"t.".key(
$object->fields);
115$search_all =
GETPOST(
'search_all',
'alphanohtml');
117foreach (
$object->fields as $key => $val) {
118 if (
GETPOST(
'search_'.$key,
'alpha') !==
'') {
119 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
121 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
128$fieldstosearchall = array();
129foreach (
$object->fields as $key => $val) {
130 if (!empty($val[
'searchall'])) {
131 $fieldstosearchall[
't.'.$key] = $val[
'label'];
136$arrayfields = array();
137foreach (
$object->fields as $key => $val) {
139 if (!empty($val[
'visible'])) {
140 $visible = (int)
dol_eval((
string) $val[
'visible'], 1);
141 $arrayfields[
't.'.$key] = array(
142 'label' => $val[
'label'],
143 'checked' => (($visible < 0) ? 0 : 1),
144 'enabled' => (abs($visible) != 3 && (bool)
dol_eval($val[
'enabled'], 1)),
145 'position' => $val[
'position'],
146 'help' => isset($val[
'help']) ? $val[
'help'] :
''
151include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_array_fields.tpl.php';
157$permissiontoread = $user->hasRight(
'eventorganization',
'read');
158$permissiontoadd = $user->hasRight(
'eventorganization',
'write');
159$permissiontodelete = $user->hasRight(
'eventorganization',
'delete');
162if (!isModEnabled(
'eventorganization')) {
166if ($user->socid > 0) {
171if (!$permissiontoread) {
180if (preg_match(
'/^set/', $action) && ($projectid > 0 || $projectref) && $user->hasRight(
'eventorganization',
'write')) {
182 $project_attr = preg_replace(
'/^set/',
'', $action);
183 if (array_key_exists($project_attr, $project->fields)) {
184 $result = $project->fetch($projectid, $projectref);
188 $projectid = $project->id;
189 $project->{$project_attr} =
GETPOST($project_attr);
190 $result = $project->update($user);
198if (
GETPOST(
'cancel',
'alpha')) {
202if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') {
206$parameters = array();
207$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
212if (empty($reshook)) {
214 include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
217 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
218 foreach (
$object->fields as $key => $val) {
220 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
221 $search[$key.
'_dtstart'] =
'';
222 $search[$key.
'_dtend'] =
'';
226 $search_array_options = array();
228 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')
229 ||
GETPOST(
'button_search_x',
'alpha') ||
GETPOST(
'button_search.x',
'alpha') ||
GETPOST(
'button_search',
'alpha')) {
234 $objectclass =
'ConferenceOrBoothAttendee';
235 $objectlabel =
'ConferenceOrBoothAttendee';
236 $uploaddir =
$conf->eventorganization->dir_output;
237 include DOL_DOCUMENT_ROOT.
'/eventorganization/core/actions_massactions_mail.inc.php';
238 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
247$form =
new Form($db);
250$help_url =
"EN:Module_Event_Organization";
256if ($conf_or_booth_id > 0) {
257 $result = $confOrBooth->fetch($conf_or_booth_id);
261 $fk_project = $confOrBooth->fk_project;
265if ($fk_project > 0) {
266 $result = $projectstatic->fetch($fk_project);
276$sql .=
$object->getFieldList(
't');
278if (!empty($extrafields->attributes[
$object->table_element][
'label'])) {
279 foreach ($extrafields->attributes[
$object->table_element][
'label'] as $key => $val) {
280 $sql .= ($extrafields->attributes[
$object->table_element][
'type'][$key] !=
'separate' ?
", ef.".$key.
" as options_".$key :
'');
284$parameters = array();
285$reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object, $action);
286$sql .= $hookmanager->resPrint;
287$sql = preg_replace(
'/,\s*$/',
'', $sql);
292$sql .=
" FROM ".MAIN_DB_PREFIX.$object->table_element.
" as t";
293if (!empty($confOrBooth->id)) {
294 $sql .=
" INNER JOIN ".MAIN_DB_PREFIX.
"actioncomm as a on a.id=t.fk_actioncomm AND a.id=".((int) $confOrBooth->id);
296if (isset($extrafields->attributes[
$object->table_element][
'label']) && is_array($extrafields->attributes[
$object->table_element][
'label']) && count($extrafields->attributes[
$object->table_element][
'label'])) {
297 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element.
"_extrafields as ef on (t.rowid = ef.fk_object)";
300$parameters = array();
301$reshook = $hookmanager->executeHooks(
'printFieldListFrom', $parameters, $object, $action);
302$sql .= $hookmanager->resPrint;
303if (
$object->ismultientitymanaged == 1) {
304 $sql .=
" WHERE t.entity IN (".getEntity(
$object->element).
")";
306 $sql .=
" WHERE 1 = 1";
308if (!empty($projectstatic->id)) {
309 $sql .=
" AND t.fk_project = ".((int) $projectstatic->id);
311foreach ($search as $key => $val) {
312 if (array_key_exists($key,
$object->fields)) {
313 if ($key ==
'status' && $search[$key] == -1) {
317 if ((strpos(
$object->fields[$key][
'type'],
'integer:') === 0) || (strpos(
$object->fields[$key][
'type'],
'sellist:') === 0) || !empty(
$object->fields[$key][
'arrayofkeyval'])) {
318 if ($search[$key] ==
'-1' || ($search[$key] ===
'0' && (empty(
$object->fields[$key][
'arrayofkeyval']) || !array_key_exists(
'0',
$object->fields[$key][
'arrayofkeyval'])))) {
323 if ($search[$key] !=
'') {
324 $sql .=
natural_search($db->sanitize($key), $search[$key], (($key ==
'status') ? 2 : $mode_search));
327 if (preg_match(
'/(_dtstart|_dtend)$/', $key) && $search[$key] !=
'') {
328 $columnName = preg_replace(
'/(_dtstart|_dtend)$/',
'', $key);
329 if (preg_match(
'/^(date|timestamp|datetime)/',
$object->fields[$columnName][
'type'])) {
330 if (preg_match(
'/_dtstart$/', $key)) {
331 $sql .=
" AND t.".$db->escape($columnName).
" >= '".$db->idate($search[$key]).
"'";
333 if (preg_match(
'/_dtend$/', $key)) {
334 $sql .=
" AND t.".$db->escape($columnName).
" <= '".$db->idate($search[$key]).
"'";
341 $sql .=
natural_search(array_keys($fieldstosearchall), $search_all);
345include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
347$parameters = array();
348$reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object, $action);
349$sql .= $hookmanager->resPrint;
352$nbtotalofrecords =
'';
355 $sqlforcount = preg_replace(
'/^'.preg_quote($sqlfields,
'/').
'/',
'SELECT COUNT(*) as nbtotalofrecords', $sql);
356 $sqlforcount = preg_replace(
'/GROUP BY .*$/',
'', $sqlforcount);
357 $resql = $db->query($sqlforcount);
359 $objforcount = $db->fetch_object($resql);
360 $nbtotalofrecords = $objforcount->nbtotalofrecords;
365 if (($page * $limit) > $nbtotalofrecords) {
373$sql .= $db->order($sortfield, $sortorder);
375 $sql .= $db->plimit($limit + 1, $offset);
378$resql = $db->query($sql);
384$num = $db->num_rows($resql);
387if ($num == 1 &&
getDolGlobalInt(
'MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && $search_all && !$page) {
388 $obj = $db->fetch_object($resql);
390 header(
"Location: ".DOL_URL_ROOT.
'/eventorganization/conferenceorboothattendee_card.php?id='.((
int) $id));
394if ($confOrBooth->id > 0) {
395 $title = $langs->trans(
'ListOfAttendeesPerConference');
397 $title = $langs->trans(
'ListOfAttendeesOfEvent');
403llxHeader(
'', $title, $help_url,
'', 0, 0, $morejs, $morecss,
'',
'mod-eventorganization page-attendee-list classforhorizontalscrolloftabs');
407if ($projectstatic->id > 0 || $confOrBooth > 0) {
408 if (
getDolGlobalString(
'PROJECT_ALLOW_COMMENT_ON_PROJECT') && method_exists($projectstatic,
'fetchComments') && empty($projectstatic->comments)) {
409 $projectstatic->fetchComments();
411 if (!empty($projectstatic->socid)) {
412 $projectstatic->fetch_thirdparty();
415 $withProjectUrl =
'';
416 $object->project = clone $projectstatic;
418 if (!empty($withproject)) {
420 $tab =
'eventorganisation';
421 $withProjectUrl =
"&withproject=1";
424 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1, ($projectstatic->public ?
'projectpub' :
'project'), 0,
'',
'');
426 $param = ($mode ==
'mine' ?
'&mode=mine' :
'');
430 $linkback =
'<a href="'.DOL_URL_ROOT.
'/projet/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
432 $morehtmlref =
'<div class="refidno">';
434 $morehtmlref .= $projectstatic->title;
436 if (!empty($projectstatic->thirdparty->id) && $projectstatic->thirdparty->id > 0) {
437 $morehtmlref .=
'<br>'.$projectstatic->thirdparty->getNomUrl(1,
'project');
439 $morehtmlref .=
'</div>';
442 if (!$user->hasRight(
'projet',
'all',
'lire')) {
443 $objectsListId = $projectstatic->getProjectsAuthorizedForUser($user, 0, 0);
444 $projectstatic->next_prev_filter =
"rowid:IN:(".$db->sanitize(count($objectsListId) ? implode(
',', array_keys($objectsListId)) :
'0').
")";
447 dol_banner_tab($projectstatic,
'project_ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
449 print
'<div class="fichecenter">';
450 print
'<div class="fichehalfleft">';
451 print
'<div class="underbanner clearboth"></div>';
453 print
'<table class="border tableforfield centpercent">';
457 print
'<tr><td class="tdtop">';
458 print $langs->trans(
"Usage");
462 print
'<input type="checkbox" disabled name="usage_opportunity"'.(GETPOSTISSET(
'usage_opportunity') ? (
GETPOST(
'usage_opportunity',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_opportunity ?
' checked="checked"' :
'')).
'"> ';
463 $htmltext = $langs->trans(
"ProjectFollowOpportunity");
464 print $form->textwithpicto($langs->trans(
"ProjectFollowOpportunity"), $htmltext);
468 print
'<input type="checkbox" disabled name="usage_task"'.(GETPOSTISSET(
'usage_task') ? (
GETPOST(
'usage_task',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_task ?
' checked="checked"' :
'')).
'"> ';
469 $htmltext = $langs->trans(
"ProjectFollowTasks");
470 print $form->textwithpicto($langs->trans(
"ProjectFollowTasks"), $htmltext);
474 print
'<input type="checkbox" disabled name="usage_bill_time"'.(GETPOSTISSET(
'usage_bill_time') ? (
GETPOST(
'usage_bill_time',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_bill_time ?
' checked="checked"' :
'')).
'"> ';
475 $htmltext = $langs->trans(
"ProjectBillTimeDescription");
476 print $form->textwithpicto($langs->trans(
"BillTime"), $htmltext);
479 if (isModEnabled(
'eventorganization')) {
480 print
'<input type="checkbox" disabled name="usage_organize_event"'.(GETPOSTISSET(
'usage_organize_event') ? (
GETPOST(
'usage_organize_event',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_organize_event ?
' checked="checked"' :
'')).
'"> ';
481 $htmltext = $langs->trans(
"EventOrganizationDescriptionLong");
482 print $form->textwithpicto($langs->trans(
"ManageOrganizeEvent"), $htmltext);
488 print
'<tr><td class="titlefield">'.$langs->trans(
"Visibility").
'</td><td>';
489 if ($projectstatic->public == 0) {
490 print
img_picto($langs->trans(
'PrivateProject'),
'private',
'class="paddingrightonly"');
491 print $langs->trans(
"PrivateProject");
493 print
img_picto($langs->trans(
'SharedProject'),
'world',
'class="paddingrightonly"');
494 print $langs->trans(
"SharedProject");
499 print
'<tr><td>'.$langs->trans(
"Budget").
'</td><td>';
500 if (strcmp($projectstatic->budget_amount,
'')) {
501 print
'<span class="amount">'.price($projectstatic->budget_amount, 0, $langs, 1, 0, 0,
$conf->currency).
'</span>';
506 print
'<tr><td>'.$langs->trans(
"Dates").
' ('.$langs->trans(
"Project").
')</td><td>';
508 print($start ? $start :
'?');
511 print($end ? $end :
'?');
512 if ($projectstatic->hasDelay()) {
518 print
'<tr><td>'.$langs->trans(
"Dates").
' ('.$langs->trans(
"Event").
')</td><td>';
520 print($start ? $start :
'?');
523 print($end ? $end :
'?');
524 if ($projectstatic->hasDelay()) {
530 print
'<tr><td>'.$langs->trans(
"Location").
'</td><td>';
531 print $projectstatic->location;
538 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
545 print
'<div class="fichehalfright">';
546 print
'<div class="underbanner clearboth"></div>';
548 print
'<table class="border tableforfield centpercent">';
551 print
'<td class="titlefield tdtop">'.$langs->trans(
"Description").
'</td><td>';
556 if (isModEnabled(
'category')) {
557 print
'<tr><td class="valignmiddle">'.$langs->trans(
"Categories").
'</td><td>';
558 print $form->showCategories($projectstatic->id,
'project', 1);
562 print
'<tr><td class="nowrap">';
563 $typeofdata =
'checkbox:'.($projectstatic->accept_conference_suggestions ?
' checked="checked"' :
'');
564 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestConfHelp");
565 print $form->editfieldkey(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions', $projectstatic->accept_conference_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
567 print $form->editfieldval(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions', $projectstatic->accept_conference_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', null, 0,
'', 0,
'',
'projectid');
571 $typeofdata =
'checkbox:'.($projectstatic->accept_booth_suggestions ?
' checked="checked"' :
'');
572 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestBoothHelp");
573 print $form->editfieldkey(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions', $projectstatic->accept_booth_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
575 print $form->editfieldval(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions', $projectstatic->accept_booth_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', null, 0,
'', 0,
'',
'projectid');
579 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
581 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth', $projectstatic->price_booth, $projectstatic, 0,
'amount',
'',
null, 0,
'', 0,
'',
'projectid');
585 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
587 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration', $projectstatic->price_registration, $projectstatic, 0,
'amount',
'',
null, 0,
'', 0,
'',
'projectid');
590 print
'<tr><td class="titlefield">';
591 print $form->editfieldkey($form->textwithpicto($langs->trans(
'MaxNbOfAttendees'),
''),
'max_attendees',
'', $projectstatic, $permissiontoadd,
'integer:3',
'&withproject=1', 0, 0,
'projectid');
592 print
'</td><td class="valuefield">';
593 print $form->editfieldval($form->textwithpicto($langs->trans(
'MaxNbOfAttendees'),
''),
'max_attendees', $projectstatic->max_attendees, $projectstatic, $permissiontoadd,
'integer:3',
'',
null, 0,
'&withproject=1', 0,
'',
'projectid');
597 print
'<tr><td class="titlefield valignmiddle">'.$langs->trans(
"EventOrganizationICSLinkProject").
'</td><td class="valuefield">';
599 $urlwithouturlroot = preg_replace(
'/'.preg_quote(DOL_URL_ROOT,
'/').
'$/i',
'', trim($dolibarr_main_url_root));
600 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
603 $message =
'<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.
'/public/agenda/agendaexport.php?format=ical'.(
$conf->entity > 1 ?
"&entity=".$conf->entity :
"");
604 $message .=
'&exportkey='.urlencode(
getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY',
'...'));
605 $message .=
"&project=".$projectid.
'&module='.urlencode(
'project@eventorganization').
'&output=file">'.$langs->trans(
'DownloadICSLink').img_picto(
'',
'download',
'class="paddingleft"').
'</a>';
609 print
'<tr><td valign="middle">'.$langs->trans(
"EventOrganizationICSLink").
'</td><td>';
611 $urlwithouturlroot = preg_replace(
'/'.preg_quote(DOL_URL_ROOT,
'/').
'$/i',
'', trim($dolibarr_main_url_root));
612 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
615 $message =
'<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.
'/public/agenda/agendaexport.php?format=ical'.(
$conf->entity > 1 ?
"&entity=".$conf->entity :
"");
616 $message .=
'&exportkey='.($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY ? urlencode(
getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY')) :
'...');
617 $message .=
"&project=".$projectstatic->id.
'&module='.urlencode(
'conforbooth@eventorganization').
'&status='.ConferenceOrBooth::STATUS_CONFIRMED.
'&output=file">'.$langs->trans(
'DownloadICSLink').img_picto(
'',
'download',
'class="paddingleft"').
'</a>';
624 print $form->textwithpicto($langs->trans(
"SuggestOrVoteForConfOrBooth"), $langs->trans(
"EvntOrgRegistrationHelpMessage"));
627 $linksuggest = $dolibarr_main_url_root.
'/public/project/index.php?id='.$projectstatic->id;
628 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
629 $linksuggest .=
'&securekey='.urlencode($encodedsecurekey);
632 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.
'" class="quatrevingtpercent">'.$linksuggest.
'</a></div>';
633 print
'<a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.
'">'.
img_picto(
'',
'globe').
'</a>';
641 print $langs->trans(
"PublicAttendeeSubscriptionGlobalPage");
644 $link_subscription = $dolibarr_main_url_root.
'/public/eventorganization/attendee_new.php?id='.$projectstatic->id.
'&type=global';
645 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
646 $link_subscription .=
'&securekey='.urlencode($encodedsecurekey);
649 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$link_subscription.
'" class="quatrevingtpercent">'.$link_subscription.
'</a></div>';
650 print
'<a target="_blank" rel="noopener noreferrer" href="'.$link_subscription.
'">'.
img_picto(
'',
'globe').
'</a>';
660 print
'<div class="clearboth"></div>';
664 if (empty($confOrBooth->id)) {
667 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1, (!empty($project->public) ?
'projectpub' :
'project'), 0,
'',
'reposition');
671 if ($confOrBooth->id > 0) {
679 dol_banner_tab($object,
'ref',
'', 0);
681 print
'<div class="fichecenter">';
682 print
'<div class="fichehalfleft">';
683 print
'<div class="underbanner clearboth"></div>';
684 print
'<table class="border centpercent tableforfield">' .
"\n";
686 include DOL_DOCUMENT_ROOT .
'/core/tpl/commonfields_view.tpl.php';
689 include DOL_DOCUMENT_ROOT .
'/core/tpl/extrafields_view.tpl.php';
695 print
'<div class="clearboth"></div>';
701$arrayofselected = is_array($toselect) ? $toselect : array();
705 $param .=
'&mode='.urlencode($mode);
707if (!empty($contextpage) && $contextpage != $_SERVER[
"PHP_SELF"]) {
708 $param .=
'&contextpage='.urlencode($contextpage);
710if ($limit > 0 && $limit !=
$conf->liste_limit) {
711 $param .=
'&limit='.((int) $limit);
713if ($optioncss !=
'') {
714 $param .=
'&optioncss='.urlencode($optioncss);
716foreach ($search as $key => $val) {
717 if (is_array($search[$key])) {
718 foreach ($search[$key] as $skey) {
720 $param .=
'&search_'.$key.
'[]='.urlencode($skey);
723 } elseif (preg_match(
'/(_dtstart|_dtend)$/', $key) && !empty($val)) {
724 $param .=
'&search_'.$key.
'month='.(
GETPOSTINT(
'search_'.$key.
'month'));
725 $param .=
'&search_'.$key.
'day='.(
GETPOSTINT(
'search_'.$key.
'day'));
726 $param .=
'&search_'.$key.
'year='.(
GETPOSTINT(
'search_'.$key.
'year'));
727 } elseif ($search[$key] !=
'') {
728 $param .=
'&search_'.$key.
'='.urlencode($search[$key]);
731if ($confOrBooth->id > 0) {
732 $param .=
'&conforboothid='.urlencode((
string) $confOrBooth->id);
734if ($projectstatic->id > 0) {
735 $param .=
'&fk_project='.urlencode((
string) ($projectstatic->id));
737$param .= $withProjectUrl;
740include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
742$parameters = array(
'param' => &$param);
743$reshook = $hookmanager->executeHooks(
'printFieldListSearchParam', $parameters, $object, $action);
744$param .= $hookmanager->resPrint;
747$arrayofmassactions = array(
751 'presend' =>
img_picto(
'',
'email',
'class="pictofixedwidth"').$langs->trans(
"SendByMail"),
753if (!empty($permissiontodelete)) {
754 $arrayofmassactions[
'predelete'] =
img_picto(
'',
'delete',
'class="pictofixedwidth"').$langs->trans(
"Delete");
756if (
GETPOSTINT(
'nomassaction') || in_array($massaction, array(
'presend',
'predelete'))) {
757 $arrayofmassactions = array();
759$massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
761print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].(!empty($conf_or_booth_id) ?
'?conforboothid='.$conf_or_booth_id :
'').
'">'.
"\n";
762if ($optioncss !=
'') {
763 print
'<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
765print
'<input type="hidden" name="token" value="'.newToken().
'">';
766print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
767print
'<input type="hidden" name="action" value="list">';
768print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
769print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
770print
'<input type="hidden" name="page" value="'.$page.
'">';
771print
'<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
772print
'<input type="hidden" name="withproject" value="'.$withproject.
'">';
773print
'<input type="hidden" name="fk_project" value="'.$fk_project.
'">';
774print
'<input type="hidden" name="page_y" value="">';
775print
'<input type="hidden" name="mode" value="'.$mode.
'">';
777$params = array(
'morecss' =>
'reposition');
779$urlnew = DOL_URL_ROOT.
'/eventorganization/conferenceorboothattendee_card.php?action=create'.(!empty($confOrBooth->id) ?
'&conforboothid='.$confOrBooth->id :
'').(!empty($projectstatic->id) ?
'&fk_project='.$projectstatic->id :
'').$withProjectUrl.
'&backtopage='.urlencode($_SERVER[
'PHP_SELF'].
'?projectid='.$projectstatic->id.(empty($confOrBooth->id) ?
'' :
'&conforboothid='.$confOrBooth->id).$withProjectUrl);
782$newcardbutton .=
dolGetButtonTitle($langs->trans(
'New'),
'',
'fa fa-plus-circle', $urlnew,
'', $permissiontoadd, $params);
784print_barre_liste($title, $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
$object->picto, 0, $newcardbutton,
'', $limit, 0, 0, 1);
788$topicmail = $projectstatic->title;
789$modelmail =
"conferenceorbooth";
791$trackid =
'conferenceorbooth_'.$object->id;
792$withmaindocfilemail = 0;
793include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
798 foreach ($fieldstosearchall as $key => $val) {
799 $fieldstosearchall[$key] = $langs->trans($val);
800 $setupstring .= $key.
"=".$val.
";";
802 print
'<!-- Search done like if CONFERENCEORBOOTHATTENDEE_QUICKSEARCH_ON_FIELDS = '.$setupstring.
' -->'.
"\n";
803 print
'<div class="divsearchfieldfilter">'.$langs->trans(
"FilterOnInto", $search_all).implode(
', ', $fieldstosearchall).
'</div>';
811$parameters = array();
812$reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $object, $action);
813if (empty($reshook)) {
814 $moreforfilter .= $hookmanager->resPrint;
816 $moreforfilter = $hookmanager->resPrint;
819if (!empty($moreforfilter)) {
820 print
'<div class="liste_titre liste_titre_bydiv centpercent">';
821 print $moreforfilter;
825$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
826$htmlofselectarray = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
getDolGlobalString(
'MAIN_CHECKBOX_LEFT_COLUMN'));
827$selectedfields = ($mode !=
'kanban' ? $htmlofselectarray :
'');
828$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons(
'checkforselect', 1) :
'');
831print
'<div class="div-table-responsive">';
832print
'<table class="tagtable nobottomiftotal liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">'.
"\n";
837print
'<tr class="liste_titre_filter">';
840 print
'<td class="liste_titre center maxwidthsearch">';
841 $searchpicto = $form->showFilterButtons(
'left');
845foreach (
$object->fields as $key => $val) {
846 $searchkey = empty($search[$key]) ?
'' : $search[$key];
847 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
848 if ($key ==
'status') {
849 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
850 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
851 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
852 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
853 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
854 } elseif (in_array($val[
'type'], array(
'double(24,8)',
'double(6,3)',
'integer',
'real',
'price')) && !in_array($key, array(
'id',
'rowid',
'ref',
'status')) && $val[
'label'] !=
'TechnicalID' && empty($val[
'arrayofkeyval'])) {
855 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
857 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
858 print
'<td class="liste_titre'.($cssforfield ?
' '.$cssforfield :
'').($key ==
'status' ?
' parentonrightofpage' :
'').
'">';
859 if (!empty($val[
'arrayofkeyval']) && is_array($val[
'arrayofkeyval'])) {
860 print $form->selectarray(
'search_'.$key, $val[
'arrayofkeyval'], (isset($search[$key]) ? $search[$key] :
''), $val[
'notnull'], 0, 0,
'', 1, 0, 0,
'',
'maxwidth100'.($key ==
'status' ?
' search_status width100 onrightofpage' :
''), 1);
861 } elseif ((strpos($val[
'type'],
'integer:') === 0) || (strpos($val[
'type'],
'sellist:') === 0)) {
862 print
$object->showInputField($val, $key, (isset($search[$key]) ? $search[$key] :
''),
'',
'',
'search_', $cssforfield.
' maxwidth250', 1);
863 } elseif (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
864 print
'<div class="nowrap">';
865 print $form->selectDate($search[$key.
'_dtstart'] ? $search[$key.
'_dtstart'] :
'',
"search_".$key.
"_dtstart", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'From'));
867 print
'<div class="nowrap">';
868 print $form->selectDate($search[$key.
'_dtend'] ? $search[$key.
'_dtend'] :
'',
"search_".$key.
"_dtend", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'to'));
870 } elseif ($key ==
'lang') {
871 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formadmin.class.php';
873 print $formadmin->select_language($search[$key],
'search_lang', 0,
null, 1, 0, 0,
'minwidth100imp maxwidth125', 2);
875 print
'<input type="text" class="flat maxwidth'.($val[
'type'] ==
'integer' ?
'50' :
'75').
'" name="search_'.$key.
'" value="'.
dol_escape_htmltag(isset($search[$key]) ? $search[$key] :
'').
'">';
881include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_input.tpl.php';
884$parameters = array(
'arrayfields' => $arrayfields);
885$reshook = $hookmanager->executeHooks(
'printFieldListOption', $parameters, $object, $action);
886print $hookmanager->resPrint;
889 print
'<td class="liste_titre center maxwidthsearch">';
890 $searchpicto = $form->showFilterButtons();
896$totalarray = array();
897$totalarray[
'nbfield'] = 0;
901print
'<tr class="liste_titre">';
904 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
905 $totalarray[
'nbfield']++;
907foreach (
$object->fields as $key => $val) {
908 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
909 if ($key ==
'status') {
910 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
911 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
912 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
913 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
914 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
915 } elseif (in_array($val[
'type'], array(
'double(24,8)',
'double(6,3)',
'integer',
'real',
'price')) && !in_array($key, array(
'id',
'rowid',
'ref',
'status')) && $val[
'label'] !=
'TechnicalID' && empty($val[
'arrayofkeyval'])) {
916 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
918 $cssforfield = preg_replace(
'/small\s*/',
'', $cssforfield);
919 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
920 print
getTitleFieldOfList($arrayfields[
't.'.$key][
'label'], 0, $_SERVER[
'PHP_SELF'],
't.'.$key,
'', $param, ($cssforfield ?
'class="'.$cssforfield.
'"' :
''), $sortfield, $sortorder, ($cssforfield ? $cssforfield.
' ' :
''), 0, (empty($val[
'helplist']) ?
'' : $val[
'helplist'])).
"\n";
921 $totalarray[
'nbfield']++;
925include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
927$parameters = array(
'arrayfields' => $arrayfields,
'param' => $param,
'sortfield' => $sortfield,
'sortorder' => $sortorder,
'totalarray' => &$totalarray);
928$reshook = $hookmanager->executeHooks(
'printFieldListTitle', $parameters, $object, $action);
929print $hookmanager->resPrint;
932 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
933 $totalarray[
'nbfield']++;
939$needToFetchEachLine = 0;
940if (isset($extrafields->attributes[
$object->table_element][
'computed']) && is_array($extrafields->attributes[
$object->table_element][
'computed']) && count($extrafields->attributes[
$object->table_element][
'computed']) > 0) {
941 foreach ($extrafields->attributes[
$object->table_element][
'computed'] as $key => $val) {
942 if (!is_null($val) && preg_match(
'/\$object/', $val)) {
943 $needToFetchEachLine++;
952$savnbfield = $totalarray[
'nbfield'];
953$totalarray = array();
954$totalarray[
'nbfield'] = 0;
955$imaxinloop = ($limit ? min($num, $limit) : $num);
956while ($i < $imaxinloop) {
957 $obj = $db->fetch_object($resql);
963 $object->setVarsFromFetchObj($obj);
965 if ($mode ==
'kanban') {
967 print
'<tr class="trkanban"><td colspan="'.$savnbfield.
'">';
968 print
'<div class="box-flex-container kanban">';
972 if ($massactionbutton || $massaction) {
974 if (in_array(
$object->id, $arrayofselected)) {
978 print
$object->getKanbanView(
'', array(
'selected' => $selected));
979 if ($i == ($imaxinloop - 1)) {
986 print
'<tr data-rowid="'.$object->id.
'" class="oddeven">';
989 print
'<td class="nowrap center">';
990 if ($massactionbutton || $massaction) {
992 if (in_array(
$object->id, $arrayofselected)) {
995 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.
$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
999 $totalarray[
'nbfield']++;
1002 foreach (
$object->fields as $key => $val) {
1003 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
1004 if (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
1005 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
1006 } elseif ($key ==
'status') {
1007 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
1010 if (in_array($val[
'type'], array(
'timestamp'))) {
1011 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowraponall';
1012 } elseif ($key ==
'ref') {
1013 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowraponall';
1016 if (in_array($val[
'type'], array(
'double(24,8)',
'double(6,3)',
'integer',
'real',
'price')) && !in_array($key, array(
'id',
'rowid',
'ref',
'status')) && empty($val[
'arrayofkeyval'])) {
1017 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
1021 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
1022 print
'<td'.($cssforfield ?
' class="'.$cssforfield.(preg_match(
'/tdoverflow/', $cssforfield) ?
' classfortooltip' :
'').
'"' :
'');
1023 if (preg_match(
'/tdoverflow/', $cssforfield) && !is_numeric(
$object->$key)) {
1024 print
' title="'.dol_escape_htmltag(
$object->$key).
'"';
1027 if ($key ==
'status') {
1028 print
$object->getLibStatut(5);
1029 } elseif ($key ==
'ref') {
1030 $optionLink = (!empty($withproject) ?
'conforboothidproject' :
'conforboothid');
1031 if (empty($confOrBooth->id)) {
1032 $optionLink =
'projectid';
1034 print
$object->getNomUrl(1, $optionLink);
1040 $totalarray[
'nbfield']++;
1042 if (!empty($val[
'isameasure']) && $val[
'isameasure'] == 1) {
1044 $totalarray[
'pos'][$totalarray[
'nbfield']] =
't.'.$key;
1046 if (!isset($totalarray[
'val'])) {
1047 $totalarray[
'val'] = array();
1049 if (!isset($totalarray[
'val'][
't.'.$key])) {
1050 $totalarray[
'val'][
't.'.$key] = 0;
1052 $totalarray[
'val'][
't.'.$key] +=
$object->$key;
1057 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
1059 $parameters = array(
'arrayfields' => $arrayfields,
'object' => $object,
'obj' => $obj,
'i' => $i,
'totalarray' => &$totalarray);
1060 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters, $object, $action);
1061 print $hookmanager->resPrint;
1064 print
'<td class="nowrap center">';
1065 if ($massactionbutton || $massaction) {
1067 if (in_array(
$object->id, $arrayofselected)) {
1070 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.
$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
1074 $totalarray[
'nbfield']++;
1085include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
1090 foreach ($arrayfields as $key => $val) {
1091 if (!empty($val[
'checked'])) {
1095 print
'<tr><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</span></td></tr>';
1101$parameters = array(
'arrayfields' => $arrayfields,
'sql' => $sql);
1102$reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $object, $action);
1103print $hookmanager->resPrint;
1105print
'</table>'.
"\n";
1108print
'</form>'.
"\n";
1110if (in_array(
'builddoc', array_keys($arrayofmassactions)) && ($nbtotalofrecords ===
'' || $nbtotalofrecords)) {
1111 $hidegeneratedfilelistifempty = 1;
1112 if ($massaction ==
'builddoc' || $action ==
'remove_file' || $show_files) {
1113 $hidegeneratedfilelistifempty = 0;
1116 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
1120 $urlsource = $_SERVER[
'PHP_SELF'].
'?sortfield='.$sortfield.
'&sortorder='.$sortorder;
1121 $urlsource .= str_replace(
'&',
'&', $param);
1123 $filedir = $diroutputmassaction;
1124 $genallowed = $permissiontoread;
1125 $delallowed = $permissiontoadd;
1127 print $formfile->showdocuments(
'massfilesarea_eventorganization',
'', $filedir, $urlsource, 0, $delallowed,
'', 1, 1, 0, 48, 1, $param, $title,
'',
'',
'',
null, $hidegeneratedfilelistifempty);
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($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Class for ConferenceOrBoothAttendee.
Class for ConferenceOrBooth.
Class to manage projects.
conferenceorboothPrepareHead($object, $with_project=0)
Prepare array of tabs for ConferenceOrBooth.
conferenceorboothProjectPrepareHead($object)
Prepare array of tabs for ConferenceOrBooth Project tab.
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...
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_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
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.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
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_get_fiche_end($notab=0)
Return tab footer of a card.
dol_eval($s, $returnvalue=1, $hideerrors=1, $onlysimplestring='1')
Replace eval function to add more security.
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...
dol_now($mode='auto')
Return date for now.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
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...
getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $disablesortlink=0, $tooltip='', $forcenowrapcolumntitle=0)
Get 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_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
dol_htmlentitiesbr($stringtoencode, $nl2brmode=0, $pagecodefrom='UTF-8', $removelasteolbr=1)
This function is called to encode a string into a HTML string but differs from htmlentities because a...
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
project_prepare_head(Project $project, $moreparam='')
Prepare array with list of tabs.
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.
dol_hash($chain, $type='0', $nosalt=0)
Returns a hash (non reversible encryption) of a string.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.