27require
'../main.inc.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
30require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
31require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
32require_once DOL_DOCUMENT_ROOT.
'/core/lib/project.lib.php';
34require_once DOL_DOCUMENT_ROOT.
'/eventorganization/class/conferenceorbooth.class.php';
35require_once DOL_DOCUMENT_ROOT.
'/eventorganization/class/conferenceorboothattendee.class.php';
36require_once DOL_DOCUMENT_ROOT.
'/eventorganization/lib/eventorganization_conferenceorbooth.lib.php';
37require_once DOL_DOCUMENT_ROOT.
'/projet/class/project.class.php';
38if (isModEnabled(
'categorie')) {
39 require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
42global $dolibarr_main_url_root;
45$langs->loadLangs(array(
"eventorganization",
"other",
"projects",
"bills"));
48$action =
GETPOST(
'action',
'aZ09') ?
GETPOST(
'action',
'aZ09') :
'view';
49$massaction =
GETPOST(
'massaction',
'alpha');
50$show_files =
GETPOST(
'show_files',
'int');
51$confirm =
GETPOST(
'confirm',
'alpha');
52$cancel =
GETPOST(
'cancel',
'alpha');
53$toselect =
GETPOST(
'toselect',
'array');
54$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') : str_replace(
'_',
'', basename(dirname(__FILE__)).basename(__FILE__,
'.php'));
55$backtopage =
GETPOST(
'backtopage',
'alpha');
56$optioncss =
GETPOST(
'optioncss',
'aZ');
60$conf_or_booth_id =
GETPOST(
'conforboothid',
'int');
62$withproject =
GETPOST(
'withproject',
'int');
63$fk_project =
GETPOST(
'fk_project',
'int') ?
GETPOST(
'fk_project',
'int') :
GETPOST(
'projectid',
'int');
64$projectid = $fk_project;
69$limit =
GETPOST(
'limit',
'int') ?
GETPOST(
'limit',
'int') : $conf->liste_limit;
70$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
71$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
72$page = GETPOSTISSET(
'pageplusone') ? (
GETPOST(
'pageplusone') - 1) :
GETPOST(
"page",
'int');
73if (empty($page) || $page < 0 ||
GETPOST(
'button_search',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
77$offset = $limit * $page;
84$projectstatic =
new Project($db);
85$diroutputmassaction = $conf->eventorganization->dir_output.
'/temp/massgeneration/'.$user->id;
86$hookmanager->initHooks(array(
'conferenceorboothattendeelist'));
89$extrafields->fetch_name_optionals_label($object->table_element);
92$search_array_options = $extrafields->getOptionalsFromPost($object->table_element,
'',
'search_');
96 reset($object->fields);
97 $sortfield =
"t.".key($object->fields);
104$search_all =
GETPOST(
'search_all',
'alphanohtml');
106foreach ($object->fields as $key => $val) {
107 if (
GETPOST(
'search_'.$key,
'alpha') !==
'') {
108 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
110 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
111 $search[$key.
'_dtstart'] =
dol_mktime(0, 0, 0,
GETPOST(
'search_'.$key.
'_dtstartmonth',
'int'),
GETPOST(
'search_'.$key.
'_dtstartday',
'int'),
GETPOST(
'search_'.$key.
'_dtstartyear',
'int'));
112 $search[$key.
'_dtend'] =
dol_mktime(23, 59, 59,
GETPOST(
'search_'.$key.
'_dtendmonth',
'int'),
GETPOST(
'search_'.$key.
'_dtendday',
'int'),
GETPOST(
'search_'.$key.
'_dtendyear',
'int'));
117$fieldstosearchall = array();
118foreach ($object->fields as $key => $val) {
119 if (!empty($val[
'searchall'])) {
120 $fieldstosearchall[
't.'.$key] = $val[
'label'];
125$arrayfields = array();
126foreach ($object->fields as $key => $val) {
128 if (!empty($val[
'visible'])) {
129 $visible = (int)
dol_eval($val[
'visible'], 1);
130 $arrayfields[
't.'.$key] = array(
131 'label'=>$val[
'label'],
132 'checked'=>(($visible < 0) ? 0 : 1),
133 'enabled'=>(abs($visible) != 3 &&
dol_eval($val[
'enabled'], 1)),
134 'position'=>$val[
'position'],
135 'help'=> isset($val[
'help']) ? $val[
'help'] :
''
140include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_array_fields.tpl.php';
146$permissiontoread = $user->rights->eventorganization->read;
147$permissiontoadd = $user->rights->eventorganization->write;
148$permissiontodelete = $user->rights->eventorganization->delete;
151if (empty($conf->eventorganization->enabled)) {
155if ($user->socid > 0) {
167if (preg_match(
'/^set/', $action) && $projectid > 0 && !empty($user->rights->eventorganization->write)) {
170 $project_attr=preg_replace(
'/^set/',
'', $action);
171 if (array_key_exists($project_attr, $project->fields)) {
172 $result = $project->fetch($projectid);
176 $project->{$project_attr}=
GETPOST($project_attr);
177 $result=$project->update($user);
185if (
GETPOST(
'cancel',
'alpha')) {
189if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') {
193$parameters = array();
194$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
199if (empty($reshook)) {
201 include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
204 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
205 foreach ($object->fields as $key => $val) {
207 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
208 $search[$key.
'_dtstart'] =
'';
209 $search[$key.
'_dtend'] =
'';
213 $search_array_options = array();
215 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')
216 ||
GETPOST(
'button_search_x',
'alpha') ||
GETPOST(
'button_search.x',
'alpha') ||
GETPOST(
'button_search',
'alpha')) {
221 $objectclass =
'ConferenceOrBoothAttendee';
222 $objectlabel =
'ConferenceOrBoothAttendee';
223 $uploaddir = $conf->eventorganization->dir_output;
224 include DOL_DOCUMENT_ROOT.
'/eventorganization/core/actions_massactions_mail.inc.php';
225 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
234$form =
new Form($db);
243if ($conf_or_booth_id > 0) {
244 $result = $confOrBooth->fetch($conf_or_booth_id);
248 $fk_project = $confOrBooth->fk_project;
252if ($fk_project > 0) {
253 $result = $projectstatic->fetch($fk_project);
263$sql .= $object->getFieldList(
't');
265if (!empty($extrafields->attributes[$object->table_element][
'label'])) {
266 foreach ($extrafields->attributes[$object->table_element][
'label'] as $key => $val) {
267 $sql .= ($extrafields->attributes[$object->table_element][
'type'][$key] !=
'separate' ?
", ef.".$key.
" as options_".$key :
'');
271$parameters = array();
272$reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object, $action);
273$sql .= $hookmanager->resPrint;
274$sql = preg_replace(
'/,\s*$/',
'', $sql);
279$sql .=
" FROM ".MAIN_DB_PREFIX.$object->table_element.
" as t";
280if (!empty($confOrBooth->id)) {
281 $sql .=
" INNER JOIN ".MAIN_DB_PREFIX.
"actioncomm as a on a.id=t.fk_actioncomm AND a.id=".((int) $confOrBooth->id);
283if (isset($extrafields->attributes[$object->table_element][
'label']) && is_array($extrafields->attributes[$object->table_element][
'label']) && count($extrafields->attributes[$object->table_element][
'label'])) {
284 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element.
"_extrafields as ef on (t.rowid = ef.fk_object)";
287$parameters = array();
288$reshook = $hookmanager->executeHooks(
'printFieldListFrom', $parameters, $object, $action);
289$sql .= $hookmanager->resPrint;
290if ($object->ismultientitymanaged == 1) {
291 $sql .=
" WHERE t.entity IN (".getEntity($object->element).
")";
293 $sql .=
" WHERE 1 = 1";
295if (!empty($projectstatic->id)) {
296 $sql .=
" AND t.fk_project = ".((int) $projectstatic->id);
298foreach ($search as $key => $val) {
299 if (array_key_exists($key, $object->fields)) {
300 if ($key ==
'status' && $search[$key] == -1) {
303 $mode_search = (($object->isInt($object->fields[$key]) || $object->isFloat($object->fields[$key])) ? 1 : 0);
304 if ((strpos($object->fields[$key][
'type'],
'integer:') === 0) || (strpos($object->fields[$key][
'type'],
'sellist:') === 0) || !empty($object->fields[$key][
'arrayofkeyval'])) {
305 if ($search[$key] ==
'-1' || ($search[$key] ===
'0' && (empty($object->fields[$key][
'arrayofkeyval']) || !array_key_exists(
'0', $object->fields[$key][
'arrayofkeyval'])))) {
310 if ($search[$key] !=
'') {
311 $sql .=
natural_search($key, $search[$key], (($key ==
'status') ? 2 : $mode_search));
314 if (preg_match(
'/(_dtstart|_dtend)$/', $key) && $search[$key] !=
'') {
315 $columnName = preg_replace(
'/(_dtstart|_dtend)$/',
'', $key);
316 if (preg_match(
'/^(date|timestamp|datetime)/', $object->fields[$columnName][
'type'])) {
317 if (preg_match(
'/_dtstart$/', $key)) {
318 $sql .=
" AND t.".$db->escape($columnName).
" >= '".$db->idate($search[$key]).
"'";
320 if (preg_match(
'/_dtend$/', $key)) {
321 $sql .=
" AND t.".$db->escape($columnName).
" <= '".$db->idate($search[$key]).
"'";
328 $sql .=
natural_search(array_keys($fieldstosearchall), $search_all);
332include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
334$parameters = array();
335$reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object, $action);
336$sql .= $hookmanager->resPrint;
340$nbtotalofrecords =
'';
343 $sqlforcount = preg_replace(
'/^'.preg_quote($sqlfields,
'/').
'/',
'SELECT COUNT(*) as nbtotalofrecords', $sql);
344 $sqlforcount = preg_replace(
'/GROUP BY .*$/',
'', $sqlforcount);
345 $resql = $db->query($sqlforcount);
347 $objforcount = $db->fetch_object($resql);
348 $nbtotalofrecords = $objforcount->nbtotalofrecords;
353 if (($page * $limit) > $nbtotalofrecords) {
361$sql .= $db->order($sortfield, $sortorder);
363 $sql .= $db->plimit($limit + 1, $offset);
366$resql = $db->query($sql);
372$num = $db->num_rows($resql);
375if ($num == 1 && !empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && $search_all && !$page) {
376 $obj = $db->fetch_object($resql);
378 header(
"Location: ".DOL_URL_ROOT.
'/eventorganization/conferenceorboothattendee_card.php?id='.((
int) $id));
382if ($confOrBooth->id > 0) {
383 $title = $langs->trans(
'ListOfAttendeesPerConference');
385 $title = $langs->trans(
'ListOfAttendeesOfEvent');
391llxHeader(
'', $title, $help_url,
'', 0, 0, $morejs, $morecss,
'',
'classforhorizontalscrolloftabs');
395if ($projectstatic->id > 0 || $confOrBooth > 0) {
396 if (!empty($conf->global->PROJECT_ALLOW_COMMENT_ON_PROJECT) && method_exists($projectstatic,
'fetchComments') && empty($projectstatic->comments)) {
397 $projectstatic->fetchComments();
399 if (!empty($projectstatic->socid)) {
400 $projectstatic->fetch_thirdparty();
404 $object->project = clone $projectstatic;
406 if (!empty($withproject)) {
408 $tab =
'eventorganisation';
409 $withProjectUrl =
"&withproject=1";
412 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1, ($projectstatic->public ?
'projectpub' :
'project'), 0,
'',
'');
414 $param = ($mode ==
'mine' ?
'&mode=mine' :
'');
418 $linkback =
'<a href="'.DOL_URL_ROOT.
'/projet/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
420 $morehtmlref =
'<div class="refidno">';
422 $morehtmlref .= $projectstatic->title;
424 if (!empty($projectstatic->thirdparty->id) && $projectstatic->thirdparty->id > 0) {
425 $morehtmlref .=
'<br>'.$projectstatic->thirdparty->getNomUrl(1,
'project');
427 $morehtmlref .=
'</div>';
430 if (empty($user->rights->projet->all->lire)) {
431 $objectsListId = $projectstatic->getProjectsAuthorizedForUser($user, 0, 0);
432 $projectstatic->next_prev_filter =
"rowid IN (".$db->sanitize(count($objectsListId) ?join(
',', array_keys($objectsListId)) :
'0').
")";
435 dol_banner_tab($projectstatic,
'project_ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
437 print
'<div class="fichecenter">';
438 print
'<div class="fichehalfleft">';
439 print
'<div class="underbanner clearboth"></div>';
441 print
'<table class="border tableforfield centpercent">';
444 if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES) || empty($conf->global->PROJECT_HIDE_TASKS) || isModEnabled(
'eventorganization')) {
445 print
'<tr><td class="tdtop">';
446 print $langs->trans(
"Usage");
449 if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES)) {
450 print
'<input type="checkbox" disabled name="usage_opportunity"'.(GETPOSTISSET(
'usage_opportunity') ? (
GETPOST(
'usage_opportunity',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_opportunity ?
' checked="checked"' :
'')).
'"> ';
451 $htmltext = $langs->trans(
"ProjectFollowOpportunity");
452 print $form->textwithpicto($langs->trans(
"ProjectFollowOpportunity"), $htmltext);
455 if (empty($conf->global->PROJECT_HIDE_TASKS)) {
456 print
'<input type="checkbox" disabled name="usage_task"'.(GETPOSTISSET(
'usage_task') ? (
GETPOST(
'usage_task',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_task ?
' checked="checked"' :
'')).
'"> ';
457 $htmltext = $langs->trans(
"ProjectFollowTasks");
458 print $form->textwithpicto($langs->trans(
"ProjectFollowTasks"), $htmltext);
461 if (empty($conf->global->PROJECT_HIDE_TASKS) && !empty($conf->global->PROJECT_BILL_TIME_SPENT)) {
462 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"' :
'')).
'"> ';
463 $htmltext = $langs->trans(
"ProjectBillTimeDescription");
464 print $form->textwithpicto($langs->trans(
"BillTime"), $htmltext);
467 if (isModEnabled(
'eventorganization')) {
468 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"' :
'')).
'"> ';
469 $htmltext = $langs->trans(
"EventOrganizationDescriptionLong");
470 print $form->textwithpicto($langs->trans(
"ManageOrganizeEvent"), $htmltext);
476 print
'<tr><td class="titlefield">'.$langs->trans(
"Visibility").
'</td><td>';
477 if ($projectstatic->public == 0) {
478 print
img_picto($langs->trans(
'PrivateProject'),
'private',
'class="paddingrightonly"');
479 print $langs->trans(
"PrivateProject");
481 print
img_picto($langs->trans(
'SharedProject'),
'world',
'class="paddingrightonly"');
482 print $langs->trans(
"SharedProject");
487 print
'<tr><td>'.$langs->trans(
"Budget").
'</td><td>';
488 if (strcmp($projectstatic->budget_amount,
'')) {
489 print
'<span class="amount">'.price($projectstatic->budget_amount,
'', $langs, 1, 0, 0, $conf->currency).
'</span>';
494 print
'<tr><td>'.$langs->trans(
"Dates").
' ('.$langs->trans(
"Project").
')</td><td>';
496 print ($start ? $start :
'?');
499 print ($end ? $end :
'?');
500 if ($projectstatic->hasDelay()) {
506 print
'<tr><td>'.$langs->trans(
"Dates").
' ('.$langs->trans(
"Event").
')</td><td>';
508 print ($start ? $start :
'?');
511 print ($end ? $end :
'?');
512 if ($projectstatic->hasDelay()) {
518 print
'<tr><td>'.$langs->trans(
"Location").
'</td><td>';
519 print $projectstatic->location;
524 $objectconf = $object;
525 $object = $projectstatic;
526 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
527 $object = $objectconf;
533 print
'<div class="fichehalfright">';
534 print
'<div class="underbanner clearboth"></div>';
536 print
'<table class="border tableforfield centpercent">';
539 print
'<td class="titlefield tdtop">'.$langs->trans(
"Description").
'</td><td>';
544 if (isModEnabled(
'categorie')) {
545 print
'<tr><td class="valignmiddle">'.$langs->trans(
"Categories").
'</td><td>';
546 print $form->showCategories($projectstatic->id,
'project', 1);
550 print
'<tr><td class="nowrap">';
551 $typeofdata =
'checkbox:'.($projectstatic->accept_conference_suggestions ?
' checked="checked"' :
'');
552 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestConfHelp");
553 print $form->editfieldkey(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions',
'', $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
555 print $form->editfieldval(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions',
'1', $projectstatic, 0, $typeofdata,
'', 0, 0,
'', 0,
'',
'projectid');
559 $typeofdata =
'checkbox:'.($projectstatic->accept_booth_suggestions ?
' checked="checked"' :
'');
560 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestBoothHelp");
561 print $form->editfieldkey(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions',
'', $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
563 print $form->editfieldval(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions',
'1', $projectstatic, 0, $typeofdata,
'', 0, 0,
'', 0,
'',
'projectid');
567 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
569 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth', $projectstatic->price_booth, $projectstatic, 0,
'amount',
'', 0, 0,
'', 0,
'',
'projectid');
573 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
575 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration', $projectstatic->price_registration, $projectstatic, 0,
'amount',
'', 0, 0,
'', 0,
'',
'projectid');
578 print
'<tr><td class="titlefield">';
579 print $form->editfieldkey($form->textwithpicto($langs->trans(
'MaxNbOfAttendees'),
''),
'max_attendees',
'', $projectstatic, $permissiontoadd,
'integer:3',
'&withproject=1', 0, 0,
'projectid');
580 print
'</td><td class="valuefield">';
581 print $form->editfieldval($form->textwithpicto($langs->trans(
'MaxNbOfAttendees'),
''),
'max_attendees', $projectstatic->max_attendees, $projectstatic, $permissiontoadd,
'integer:3',
'', 0, 0,
'&withproject=1', 0,
'',
'projectid');
584 print
'<tr><td valign="middle">'.$langs->trans(
"EventOrganizationICSLink").
'</td><td>';
586 $urlwithouturlroot = preg_replace(
'/'.preg_quote(DOL_URL_ROOT,
'/').
'$/i',
'', trim($dolibarr_main_url_root));
587 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
590 $message =
'<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.
'/public/agenda/agendaexport.php?format=ical'.($conf->entity > 1 ?
"&entity=".$conf->entity :
"");
591 $message .=
'&exportkey='.($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY ?urlencode($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY) :
'...');
592 $message .=
"&project=".$projectstatic->id.
'&module='.urlencode(
'@eventorganization').
'&status='.ConferenceOrBooth::STATUS_CONFIRMED.
'">'.$langs->trans(
'DownloadICSLink').img_picto(
'',
'download',
'class="paddingleft"').
'</a>';
599 print $form->textwithpicto($langs->trans(
"SuggestOrVoteForConfOrBooth"), $langs->trans(
"EvntOrgRegistrationHelpMessage"));
602 $linksuggest = $dolibarr_main_url_root.
'/public/project/index.php?id='.$projectstatic->id;
603 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
604 $linksuggest .=
'&securekey='.urlencode($encodedsecurekey);
607 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.
'" class="quatrevingtpercent">'.$linksuggest.
'</a></div>';
608 print
'<a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.
'">'.
img_picto(
'',
'globe').
'</a>';
616 print $langs->trans(
"PublicAttendeeSubscriptionGlobalPage");
619 $link_subscription = $dolibarr_main_url_root.
'/public/eventorganization/attendee_new.php?id='.$projectstatic->id.
'&type=global';
620 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
621 $link_subscription .=
'&securekey='.urlencode($encodedsecurekey);
624 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$link_subscription.
'" class="quatrevingtpercent">'.$link_subscription.
'</a></div>';
625 print
'<a target="_blank" rel="noopener noreferrer" href="'.$link_subscription.
'">'.
img_picto(
'',
'globe').
'</a>';
635 print
'<div class="clearboth"></div>';
639 if (empty($confOrBooth->id)) {
642 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1, (!empty($project->public) ?
'projectpub' :
'project'), 0,
'',
'reposition');
646 if ($confOrBooth->id > 0) {
649 print
dol_get_fiche_head($head,
'attendees', $langs->trans(
"ConferenceOrBooth"), -1, $object->picto);
651 $object_evt = $object;
652 $object = $confOrBooth;
656 print
'<div class="fichecenter">';
657 print
'<div class="fichehalfleft">';
658 print
'<div class="underbanner clearboth"></div>';
659 print
'<table class="border centpercent tableforfield">' .
"\n";
661 include DOL_DOCUMENT_ROOT .
'/core/tpl/commonfields_view.tpl.php';
664 include DOL_DOCUMENT_ROOT .
'/core/tpl/extrafields_view.tpl.php';
665 $object = $object_evt;
670 print
'<div class="clearboth"></div>';
676$arrayofselected = is_array($toselect) ? $toselect : array();
680 $param .=
'&mode='.urlencode($mode);
682if (!empty($contextpage) && $contextpage != $_SERVER[
"PHP_SELF"]) {
683 $param .=
'&contextpage='.urlencode($contextpage);
685if ($limit > 0 && $limit != $conf->liste_limit) {
686 $param .=
'&limit='.((int) $limit);
688if ($optioncss !=
'') {
689 $param .=
'&optioncss='.urlencode($optioncss);
691foreach ($search as $key => $val) {
692 if (is_array($search[$key])) {
693 foreach ($search[$key] as $skey) {
695 $param .=
'&search_'.$key.
'[]='.urlencode($skey);
698 } elseif (preg_match(
'/(_dtstart|_dtend)$/', $key) && !empty($val)) {
699 $param .=
'&search_'.$key.
'month='.((int)
GETPOST(
'search_'.$key.
'month',
'int'));
700 $param .=
'&search_'.$key.
'day='.((int)
GETPOST(
'search_'.$key.
'day',
'int'));
701 $param .=
'&search_'.$key.
'year='.((int)
GETPOST(
'search_'.$key.
'year',
'int'));
702 } elseif ($search[$key] !=
'') {
703 $param .=
'&search_'.$key.
'='.urlencode($search[$key]);
706if ($confOrBooth->id > 0) {
707 $param .=
'&conforboothid='.urlencode($confOrBooth->id);
709if ($projectstatic->id > 0) {
710 $param .=
'&fk_project='.urlencode($projectstatic->id);
712$param .= $withProjectUrl;
715include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
717$parameters = array();
718$reshook = $hookmanager->executeHooks(
'printFieldListSearchParam', $parameters, $object, $action);
719$param .= $hookmanager->resPrint;
722$arrayofmassactions = array(
726 'presend'=>
img_picto(
'',
'email',
'class="pictofixedwidth"').$langs->trans(
"SendByMail"),
728if (!empty($permissiontodelete)) {
729 $arrayofmassactions[
'predelete'] =
img_picto(
'',
'delete',
'class="pictofixedwidth"').$langs->trans(
"Delete");
731if (
GETPOST(
'nomassaction',
'int') || in_array($massaction, array(
'presend',
'predelete'))) {
732 $arrayofmassactions = array();
734$massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
736print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].(!empty($conf_or_booth_id)?
'?conforboothid='.$conf_or_booth_id:
'').
'">'.
"\n";
737if ($optioncss !=
'') {
738 print
'<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
740print
'<input type="hidden" name="token" value="'.newToken().
'">';
741print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
742print
'<input type="hidden" name="action" value="list">';
743print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
744print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
745print
'<input type="hidden" name="page" value="'.$page.
'">';
746print
'<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
747print
'<input type="hidden" name="withproject" value="'.$withproject.
'">';
748print
'<input type="hidden" name="fk_project" value="'.$fk_project.
'">';
749print
'<input type="hidden" name="page_y" value="">';
750print
'<input type="hidden" name="mode" value="'.$mode.
'">';
752$params = array(
'morecss'=>
'reposition');
755$newcardbutton .=
dolGetButtonTitle($langs->trans(
'New'),
'',
'fa fa-plus-circle', 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),
'', $permissiontoadd, $params);
757print_barre_liste($title, $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, $object->picto, 0, $newcardbutton,
'', $limit, 0, 0, 1);
761$topicmail = $projectstatic->title;
762$modelmail =
"conferenceorbooth";
764$trackid =
'conferenceorbooth_'.$object->id;
765$withmaindocfilemail = 0;
766include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
771 foreach ($fieldstosearchall as $key => $val) {
772 $fieldstosearchall[$key] = $langs->trans($val);
773 $setupstring .= $key.
"=".$val.
";";
775 print
'<!-- Search done like if CONFERENCEORBOOTHATTENDEE_QUICKSEARCH_ON_FIELDS = '.$setupstring.
' -->'.
"\n";
776 print
'<div class="divsearchfieldfilter">'.$langs->trans(
"FilterOnInto", $search_all).join(
', ', $fieldstosearchall).
'</div>';
784$parameters = array();
785$reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $object, $action);
786if (empty($reshook)) {
787 $moreforfilter .= $hookmanager->resPrint;
789 $moreforfilter = $hookmanager->resPrint;
792if (!empty($moreforfilter)) {
793 print
'<div class="liste_titre liste_titre_bydiv centpercent">';
794 print $moreforfilter;
795 $parameters = array();
796 $reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $object, $action);
797 print $hookmanager->resPrint;
801$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
802$selectedfields = ($mode !=
'kanban' ? $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
getDolGlobalString(
'MAIN_CHECKBOX_LEFT_COLUMN',
'')) :
'');
803$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons(
'checkforselect', 1) :
'');
805print
'<div class="div-table-responsive">';
806print
'<table class="tagtable nobottomiftotal liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">'.
"\n";
811print
'<tr class="liste_titre_filter">';
814 print
'<td class="liste_titre center maxwidthsearch">';
815 $searchpicto = $form->showFilterButtons(
'left');
819foreach ($object->fields as $key => $val) {
820 $searchkey = empty($search[$key]) ?
'' : $search[$key];
821 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
822 if ($key ==
'status') {
823 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
824 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
825 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
826 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
827 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
828 } 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'])) {
829 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
831 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
832 print
'<td class="liste_titre'.($cssforfield ?
' '.$cssforfield :
'').($key ==
'status' ?
' parentonrightofpage' :
'').
'">';
833 if (!empty($val[
'arrayofkeyval']) && is_array($val[
'arrayofkeyval'])) {
834 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);
835 } elseif ((strpos($val[
'type'],
'integer:') === 0) || (strpos($val[
'type'],
'sellist:') === 0)) {
836 print $object->showInputField($val, $key, (isset($search[$key]) ? $search[$key] :
''),
'',
'',
'search_', $cssforfield.
' maxwidth250', 1);
837 } elseif (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
838 print
'<div class="nowrap">';
839 print $form->selectDate($search[$key.
'_dtstart'] ? $search[$key.
'_dtstart'] :
'',
"search_".$key.
"_dtstart", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'From'));
841 print
'<div class="nowrap">';
842 print $form->selectDate($search[$key.
'_dtend'] ? $search[$key.
'_dtend'] :
'',
"search_".$key.
"_dtend", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'to'));
844 } elseif ($key ==
'lang') {
845 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formadmin.class.php';
847 print $formadmin->select_language($search[$key],
'search_lang', 0,
null, 1, 0, 0,
'minwidth150 maxwidth200', 2);
849 print
'<input type="text" class="flat maxwidth75" name="search_'.$key.
'" value="'.
dol_escape_htmltag(isset($search[$key]) ? $search[$key] :
'').
'">';
855include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_input.tpl.php';
858$parameters = array(
'arrayfields'=>$arrayfields);
859$reshook = $hookmanager->executeHooks(
'printFieldListOption', $parameters, $object, $action);
860print $hookmanager->resPrint;
863 print
'<td class="liste_titre center maxwidthsearch">';
864 $searchpicto = $form->showFilterButtons();
870$totalarray = array();
871$totalarray[
'nbfield'] = 0;
875print
'<tr class="liste_titre">';
878 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
879 $totalarray[
'nbfield']++;
881foreach ($object->fields as $key => $val) {
882 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
883 if ($key ==
'status') {
884 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
885 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
886 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
887 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
888 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
889 } 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'])) {
890 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
892 $cssforfield = preg_replace(
'/small\s*/',
'', $cssforfield);
893 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
894 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";
895 $totalarray[
'nbfield']++;
899include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
901$parameters = array(
'arrayfields'=>$arrayfields,
'param'=>$param,
'sortfield'=>$sortfield,
'sortorder'=>$sortorder,
'totalarray'=>&$totalarray);
902$reshook = $hookmanager->executeHooks(
'printFieldListTitle', $parameters, $object, $action);
903print $hookmanager->resPrint;
906 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
907 $totalarray[
'nbfield']++;
913$needToFetchEachLine = 0;
914if (isset($extrafields->attributes[$object->table_element][
'computed']) && is_array($extrafields->attributes[$object->table_element][
'computed']) && count($extrafields->attributes[$object->table_element][
'computed']) > 0) {
915 foreach ($extrafields->attributes[$object->table_element][
'computed'] as $key => $val) {
916 if (!is_null($val) && preg_match(
'/\$object/', $val)) {
917 $needToFetchEachLine++;
926$savnbfield = $totalarray[
'nbfield'];
927$totalarray = array();
928$totalarray[
'nbfield'] = 0;
929$imaxinloop = ($limit ? min($num, $limit) : $num);
930while ($i < $imaxinloop) {
931 $obj = $db->fetch_object($resql);
937 $object->setVarsFromFetchObj($obj);
939 if ($mode ==
'kanban') {
941 print
'<tr class="trkanban"><td colspan="'.$savnbfield.
'">';
942 print
'<div class="box-flex-container kanban">';
945 if ($massactionbutton || $massaction) {
947 if (in_array($object->id, $arrayofselected)) {
951 print $object->getKanbanView(
'', array(
'selected' => in_array($object->id, $arrayofselected)));
952 if ($i == ($imaxinloop - 1)) {
959 print
'<tr data-rowid="'.$object->id.
'" class="oddeven">';
962 print
'<td class="nowrap center">';
963 if ($massactionbutton || $massaction) {
965 if (in_array($object->id, $arrayofselected)) {
968 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
972 $totalarray[
'nbfield']++;
975 foreach ($object->fields as $key => $val) {
976 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
977 if (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
978 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
979 } elseif ($key ==
'status') {
980 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
983 if (in_array($val[
'type'], array(
'timestamp'))) {
984 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowraponall';
985 } elseif ($key ==
'ref') {
986 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowraponall';
989 if (in_array($val[
'type'], array(
'double(24,8)',
'double(6,3)',
'integer',
'real',
'price')) && !in_array($key, array(
'rowid',
'status')) && empty($val[
'arrayofkeyval'])) {
990 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
994 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
995 print
'<td'.($cssforfield ?
' class="'.$cssforfield.(preg_match(
'/tdoverflow/', $cssforfield) ?
' classfortooltip' :
'').
'"' :
'');
996 if (preg_match(
'/tdoverflow/', $cssforfield) && !is_numeric($object->$key)) {
997 print
' title="'.dol_escape_htmltag($object->$key).
'"';
1000 if ($key ==
'status') {
1001 print $object->getLibStatut(5);
1002 } elseif ($key ==
'ref') {
1003 $optionLink = (!empty($withproject)?
'conforboothidproject':
'conforboothid');
1004 if (empty($confOrBooth->id)) {
1005 $optionLink=
'projectid';
1007 print $object->getNomUrl(1, $optionLink);
1009 print $object->showOutputField($val, $key, $object->$key,
'');
1013 $totalarray[
'nbfield']++;
1015 if (!empty($val[
'isameasure']) && $val[
'isameasure'] == 1) {
1017 $totalarray[
'pos'][$totalarray[
'nbfield']] =
't.'.$key;
1019 if (!isset($totalarray[
'val'])) {
1020 $totalarray[
'val'] = array();
1022 if (!isset($totalarray[
'val'][
't.'.$key])) {
1023 $totalarray[
'val'][
't.'.$key] = 0;
1025 $totalarray[
'val'][
't.'.$key] += $object->$key;
1030 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
1032 $parameters = array(
'arrayfields'=>$arrayfields,
'object'=>$object,
'obj'=>$obj,
'i'=>$i,
'totalarray'=>&$totalarray);
1033 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters, $object, $action);
1034 print $hookmanager->resPrint;
1037 print
'<td class="nowrap center">';
1038 if ($massactionbutton || $massaction) {
1040 if (in_array($object->id, $arrayofselected)) {
1043 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
1047 $totalarray[
'nbfield']++;
1058include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
1063 foreach ($arrayfields as $key => $val) {
1064 if (!empty($val[
'checked'])) {
1068 print
'<tr><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</span></td></tr>';
1074$parameters = array(
'arrayfields'=>$arrayfields,
'sql'=>$sql);
1075$reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $object, $action);
1076print $hookmanager->resPrint;
1078print
'</table>'.
"\n";
1081print
'</form>'.
"\n";
1083if (in_array(
'builddoc', array_keys($arrayofmassactions)) && ($nbtotalofrecords ===
'' || $nbtotalofrecords)) {
1084 $hidegeneratedfilelistifempty = 1;
1085 if ($massaction ==
'builddoc' || $action ==
'remove_file' || $show_files) {
1086 $hidegeneratedfilelistifempty = 0;
1089 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
1093 $urlsource = $_SERVER[
'PHP_SELF'].
'?sortfield='.$sortfield.
'&sortorder='.$sortorder;
1094 $urlsource .= str_replace(
'&',
'&', $param);
1096 $filedir = $diroutputmassaction;
1097 $genallowed = $permissiontoread;
1098 $delallowed = $permissiontoadd;
1100 print $formfile->showdocuments(
'massfilesarea_eventorganization',
'', $filedir, $urlsource, 0, $delallowed,
'', 1, 1, 0, 48, 1, $param, $title,
'',
'',
'',
null, $hidegeneratedfilelistifempty);
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
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_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='rowid', $fieldref='ref', $morehtmlref='', $moreparam='', $nodbprefix=0, $morehtmlleft='', $morehtmlstatus='', $onlybanner=0, $morehtmlright='')
Show tab footer of a card.
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm='auto', $check=1)
Return a timestamp date built from detailed informations (by default a local PHP server timestamp) Re...
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
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.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
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.
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_print_date($time, $format='', $tzoutput='auto', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
dol_now($mode='auto')
Return date for now.
getDolGlobalInt($key, $default=0)
Return dolibarr global constant int value.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
dol_sort_array(&$array, $index, $order='asc', $natsort=0, $case_sensitive=0, $keepindex=0)
Advanced sort array by second index function, which produces ascending (default) or descending output...
dol_eval($s, $returnvalue=0, $hideerrors=1, $onlysimplestring='1')
Replace eval function to add more security.
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.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
print_barre_liste($titre, $page, $file, $options='', $sortfield='', $sortorder='', $morehtmlcenter='', $num=-1, $totalnboflines='', $picto='generic', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limit=-1, $hideselectlimit=0, $hidenavigation=0, $pagenavastextinput=0, $morehtmlrightbeforearrow='')
Print a title with navigation controls for pagination.
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 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...
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')
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.