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(
'category')) {
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');
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 =
GETPOSTINT(
'conforboothid');
64$projectid = $fk_project;
70$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
71$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
73if (empty($page) || $page < 0 ||
GETPOST(
'button_search',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
77$offset = $limit * $page;
84$projectstatic =
new Project($db);
86$diroutputmassaction = $conf->eventorganization->dir_output.
'/temp/massgeneration/'.$user->id;
87$hookmanager->initHooks(array(
'conferenceorboothattendeelist'));
90$extrafields->fetch_name_optionals_label(
$object->table_element);
93$search_array_options = $extrafields->getOptionalsFromPost(
$object->table_element,
'',
'search_');
98 $sortfield =
"t.".key(
$object->fields);
105$search_all =
GETPOST(
'search_all',
'alphanohtml');
107foreach (
$object->fields as $key => $val) {
108 if (
GETPOST(
'search_'.$key,
'alpha') !==
'') {
109 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
111 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
118$fieldstosearchall = array();
119foreach (
$object->fields as $key => $val) {
120 if (!empty($val[
'searchall'])) {
121 $fieldstosearchall[
't.'.$key] = $val[
'label'];
126$arrayfields = array();
127foreach (
$object->fields as $key => $val) {
129 if (!empty($val[
'visible'])) {
130 $visible = (int)
dol_eval($val[
'visible'], 1);
131 $arrayfields[
't.'.$key] = array(
132 'label' => $val[
'label'],
133 'checked' => (($visible < 0) ? 0 : 1),
134 'enabled' => (abs($visible) != 3 && (bool)
dol_eval($val[
'enabled'], 1)),
135 'position' => $val[
'position'],
136 'help' => isset($val[
'help']) ? $val[
'help'] :
''
141include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_array_fields.tpl.php';
147$permissiontoread = $user->hasRight(
'eventorganization',
'read');
148$permissiontoadd = $user->hasRight(
'eventorganization',
'write');
149$permissiontodelete = $user->hasRight(
'eventorganization',
'delete');
152if (!isModEnabled(
'eventorganization')) {
156if ($user->socid > 0) {
161if (!$permissiontoread) {
170if (preg_match(
'/^set/', $action) && ($projectid > 0 || $projectref) && $user->hasRight(
'eventorganization',
'write')) {
172 $project_attr = preg_replace(
'/^set/',
'', $action);
173 if (array_key_exists($project_attr, $project->fields)) {
174 $result = $project->fetch($projectid, $projectref);
178 $projectid = $project->id;
179 $project->{$project_attr} =
GETPOST($project_attr);
180 $result = $project->update($user);
188if (
GETPOST(
'cancel',
'alpha')) {
192if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') {
196$parameters = array();
197$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
202if (empty($reshook)) {
204 include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
207 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
208 foreach (
$object->fields as $key => $val) {
210 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
211 $search[$key.
'_dtstart'] =
'';
212 $search[$key.
'_dtend'] =
'';
216 $search_array_options = array();
218 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')
219 ||
GETPOST(
'button_search_x',
'alpha') ||
GETPOST(
'button_search.x',
'alpha') ||
GETPOST(
'button_search',
'alpha')) {
224 $objectclass =
'ConferenceOrBoothAttendee';
225 $objectlabel =
'ConferenceOrBoothAttendee';
226 $uploaddir = $conf->eventorganization->dir_output;
227 include DOL_DOCUMENT_ROOT.
'/eventorganization/core/actions_massactions_mail.inc.php';
228 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
237$form =
new Form($db);
246if ($conf_or_booth_id > 0) {
247 $result = $confOrBooth->fetch($conf_or_booth_id);
251 $fk_project = $confOrBooth->fk_project;
255if ($fk_project > 0) {
256 $result = $projectstatic->fetch($fk_project);
266$sql .=
$object->getFieldList(
't');
268if (!empty($extrafields->attributes[
$object->table_element][
'label'])) {
269 foreach ($extrafields->attributes[
$object->table_element][
'label'] as $key => $val) {
270 $sql .= ($extrafields->attributes[
$object->table_element][
'type'][$key] !=
'separate' ?
", ef.".$key.
" as options_".$key :
'');
274$parameters = array();
275$reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object, $action);
276$sql .= $hookmanager->resPrint;
277$sql = preg_replace(
'/,\s*$/',
'', $sql);
282$sql .=
" FROM ".MAIN_DB_PREFIX.$object->table_element.
" as t";
283if (!empty($confOrBooth->id)) {
284 $sql .=
" INNER JOIN ".MAIN_DB_PREFIX.
"actioncomm as a on a.id=t.fk_actioncomm AND a.id=".((int) $confOrBooth->id);
286if (isset($extrafields->attributes[
$object->table_element][
'label']) && is_array($extrafields->attributes[
$object->table_element][
'label']) && count($extrafields->attributes[
$object->table_element][
'label'])) {
287 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element.
"_extrafields as ef on (t.rowid = ef.fk_object)";
290$parameters = array();
291$reshook = $hookmanager->executeHooks(
'printFieldListFrom', $parameters, $object, $action);
292$sql .= $hookmanager->resPrint;
293if (
$object->ismultientitymanaged == 1) {
294 $sql .=
" WHERE t.entity IN (".getEntity(
$object->element).
")";
296 $sql .=
" WHERE 1 = 1";
298if (!empty($projectstatic->id)) {
299 $sql .=
" AND t.fk_project = ".((int) $projectstatic->id);
301foreach ($search as $key => $val) {
302 if (array_key_exists($key,
$object->fields)) {
303 if ($key ==
'status' && $search[$key] == -1) {
307 if ((strpos(
$object->fields[$key][
'type'],
'integer:') === 0) || (strpos(
$object->fields[$key][
'type'],
'sellist:') === 0) || !empty(
$object->fields[$key][
'arrayofkeyval'])) {
308 if ($search[$key] ==
'-1' || ($search[$key] ===
'0' && (empty(
$object->fields[$key][
'arrayofkeyval']) || !array_key_exists(
'0',
$object->fields[$key][
'arrayofkeyval'])))) {
313 if ($search[$key] !=
'') {
314 $sql .=
natural_search($db->sanitize($key), $search[$key], (($key ==
'status') ? 2 : $mode_search));
317 if (preg_match(
'/(_dtstart|_dtend)$/', $key) && $search[$key] !=
'') {
318 $columnName = preg_replace(
'/(_dtstart|_dtend)$/',
'', $key);
319 if (preg_match(
'/^(date|timestamp|datetime)/',
$object->fields[$columnName][
'type'])) {
320 if (preg_match(
'/_dtstart$/', $key)) {
321 $sql .=
" AND t.".$db->escape($columnName).
" >= '".$db->idate($search[$key]).
"'";
323 if (preg_match(
'/_dtend$/', $key)) {
324 $sql .=
" AND t.".$db->escape($columnName).
" <= '".$db->idate($search[$key]).
"'";
331 $sql .=
natural_search(array_keys($fieldstosearchall), $search_all);
335include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
337$parameters = array();
338$reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object, $action);
339$sql .= $hookmanager->resPrint;
342$nbtotalofrecords =
'';
345 $sqlforcount = preg_replace(
'/^'.preg_quote($sqlfields,
'/').
'/',
'SELECT COUNT(*) as nbtotalofrecords', $sql);
346 $sqlforcount = preg_replace(
'/GROUP BY .*$/',
'', $sqlforcount);
347 $resql = $db->query($sqlforcount);
349 $objforcount = $db->fetch_object($resql);
350 $nbtotalofrecords = $objforcount->nbtotalofrecords;
355 if (($page * $limit) > $nbtotalofrecords) {
363$sql .= $db->order($sortfield, $sortorder);
365 $sql .= $db->plimit($limit + 1, $offset);
368$resql = $db->query($sql);
374$num = $db->num_rows($resql);
377if ($num == 1 &&
getDolGlobalInt(
'MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && $search_all && !$page) {
378 $obj = $db->fetch_object($resql);
380 header(
"Location: ".DOL_URL_ROOT.
'/eventorganization/conferenceorboothattendee_card.php?id='.((
int) $id));
384if ($confOrBooth->id > 0) {
385 $title = $langs->trans(
'ListOfAttendeesPerConference');
387 $title = $langs->trans(
'ListOfAttendeesOfEvent');
393llxHeader(
'', $title, $help_url,
'', 0, 0, $morejs, $morecss,
'',
'classforhorizontalscrolloftabs');
397if ($projectstatic->id > 0 || $confOrBooth > 0) {
398 if (
getDolGlobalString(
'PROJECT_ALLOW_COMMENT_ON_PROJECT') && method_exists($projectstatic,
'fetchComments') && empty($projectstatic->comments)) {
399 $projectstatic->fetchComments();
401 if (!empty($projectstatic->socid)) {
402 $projectstatic->fetch_thirdparty();
405 $withProjectUrl =
'';
406 $object->project = clone $projectstatic;
408 if (!empty($withproject)) {
410 $tab =
'eventorganisation';
411 $withProjectUrl =
"&withproject=1";
414 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1, ($projectstatic->public ?
'projectpub' :
'project'), 0,
'',
'');
416 $param = ($mode ==
'mine' ?
'&mode=mine' :
'');
420 $linkback =
'<a href="'.DOL_URL_ROOT.
'/projet/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
422 $morehtmlref =
'<div class="refidno">';
424 $morehtmlref .= $projectstatic->title;
426 if (!empty($projectstatic->thirdparty->id) && $projectstatic->thirdparty->id > 0) {
427 $morehtmlref .=
'<br>'.$projectstatic->thirdparty->getNomUrl(1,
'project');
429 $morehtmlref .=
'</div>';
432 if (!$user->hasRight(
'projet',
'all',
'lire')) {
433 $objectsListId = $projectstatic->getProjectsAuthorizedForUser($user, 0, 0);
434 $projectstatic->next_prev_filter =
"rowid IN (".$db->sanitize(count($objectsListId) ? implode(
',', array_keys($objectsListId)) :
'0').
")";
437 dol_banner_tab($projectstatic,
'project_ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
439 print
'<div class="fichecenter">';
440 print
'<div class="fichehalfleft">';
441 print
'<div class="underbanner clearboth"></div>';
443 print
'<table class="border tableforfield centpercent">';
447 print
'<tr><td class="tdtop">';
448 print $langs->trans(
"Usage");
452 print
'<input type="checkbox" disabled name="usage_opportunity"'.(GETPOSTISSET(
'usage_opportunity') ? (
GETPOST(
'usage_opportunity',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_opportunity ?
' checked="checked"' :
'')).
'"> ';
453 $htmltext = $langs->trans(
"ProjectFollowOpportunity");
454 print $form->textwithpicto($langs->trans(
"ProjectFollowOpportunity"), $htmltext);
458 print
'<input type="checkbox" disabled name="usage_task"'.(GETPOSTISSET(
'usage_task') ? (
GETPOST(
'usage_task',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_task ?
' checked="checked"' :
'')).
'"> ';
459 $htmltext = $langs->trans(
"ProjectFollowTasks");
460 print $form->textwithpicto($langs->trans(
"ProjectFollowTasks"), $htmltext);
464 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"' :
'')).
'"> ';
465 $htmltext = $langs->trans(
"ProjectBillTimeDescription");
466 print $form->textwithpicto($langs->trans(
"BillTime"), $htmltext);
469 if (isModEnabled(
'eventorganization')) {
470 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"' :
'')).
'"> ';
471 $htmltext = $langs->trans(
"EventOrganizationDescriptionLong");
472 print $form->textwithpicto($langs->trans(
"ManageOrganizeEvent"), $htmltext);
478 print
'<tr><td class="titlefield">'.$langs->trans(
"Visibility").
'</td><td>';
479 if ($projectstatic->public == 0) {
480 print
img_picto($langs->trans(
'PrivateProject'),
'private',
'class="paddingrightonly"');
481 print $langs->trans(
"PrivateProject");
483 print
img_picto($langs->trans(
'SharedProject'),
'world',
'class="paddingrightonly"');
484 print $langs->trans(
"SharedProject");
489 print
'<tr><td>'.$langs->trans(
"Budget").
'</td><td>';
490 if (strcmp($projectstatic->budget_amount,
'')) {
491 print
'<span class="amount">'.price($projectstatic->budget_amount, 0, $langs, 1, 0, 0, $conf->currency).
'</span>';
496 print
'<tr><td>'.$langs->trans(
"Dates").
' ('.$langs->trans(
"Project").
')</td><td>';
498 print($start ? $start :
'?');
501 print($end ? $end :
'?');
502 if ($projectstatic->hasDelay()) {
508 print
'<tr><td>'.$langs->trans(
"Dates").
' ('.$langs->trans(
"Event").
')</td><td>';
510 print($start ? $start :
'?');
513 print($end ? $end :
'?');
514 if ($projectstatic->hasDelay()) {
520 print
'<tr><td>'.$langs->trans(
"Location").
'</td><td>';
521 print $projectstatic->location;
528 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
535 print
'<div class="fichehalfright">';
536 print
'<div class="underbanner clearboth"></div>';
538 print
'<table class="border tableforfield centpercent">';
541 print
'<td class="titlefield tdtop">'.$langs->trans(
"Description").
'</td><td>';
546 if (isModEnabled(
'category')) {
547 print
'<tr><td class="valignmiddle">'.$langs->trans(
"Categories").
'</td><td>';
548 print $form->showCategories($projectstatic->id,
'project', 1);
552 print
'<tr><td class="nowrap">';
553 $typeofdata =
'checkbox:'.($projectstatic->accept_conference_suggestions ?
' checked="checked"' :
'');
554 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestConfHelp");
555 print $form->editfieldkey(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions', $projectstatic->accept_conference_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
557 print $form->editfieldval(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions', $projectstatic->accept_conference_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', null, 0,
'', 0,
'',
'projectid');
561 $typeofdata =
'checkbox:'.($projectstatic->accept_booth_suggestions ?
' checked="checked"' :
'');
562 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestBoothHelp");
563 print $form->editfieldkey(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions', $projectstatic->accept_booth_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
565 print $form->editfieldval(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions', $projectstatic->accept_booth_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', null, 0,
'', 0,
'',
'projectid');
569 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
571 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth', $projectstatic->price_booth, $projectstatic, 0,
'amount',
'',
null, 0,
'', 0,
'',
'projectid');
575 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
577 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration', $projectstatic->price_registration, $projectstatic, 0,
'amount',
'',
null, 0,
'', 0,
'',
'projectid');
580 print
'<tr><td class="titlefield">';
581 print $form->editfieldkey($form->textwithpicto($langs->trans(
'MaxNbOfAttendees'),
''),
'max_attendees',
'', $projectstatic, $permissiontoadd,
'integer:3',
'&withproject=1', 0, 0,
'projectid');
582 print
'</td><td class="valuefield">';
583 print $form->editfieldval($form->textwithpicto($langs->trans(
'MaxNbOfAttendees'),
''),
'max_attendees', $projectstatic->max_attendees, $projectstatic, $permissiontoadd,
'integer:3',
'',
null, 0,
'&withproject=1', 0,
'',
'projectid');
587 print
'<tr><td class="titlefield valignmiddle">'.$langs->trans(
"EventOrganizationICSLinkProject").
'</td><td class="valuefield">';
589 $urlwithouturlroot = preg_replace(
'/'.preg_quote(DOL_URL_ROOT,
'/').
'$/i',
'', trim($dolibarr_main_url_root));
590 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
593 $message =
'<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.
'/public/agenda/agendaexport.php?format=ical'.($conf->entity > 1 ?
"&entity=".$conf->entity :
"");
594 $message .=
'&exportkey='.urlencode(
getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY',
'...'));
595 $message .=
"&project=".$projectid.
'&module='.urlencode(
'project@eventorganization').
'&output=file">'.$langs->trans(
'DownloadICSLink').img_picto(
'',
'download',
'class="paddingleft"').
'</a>';
599 print
'<tr><td valign="middle">'.$langs->trans(
"EventOrganizationICSLink").
'</td><td>';
601 $urlwithouturlroot = preg_replace(
'/'.preg_quote(DOL_URL_ROOT,
'/').
'$/i',
'', trim($dolibarr_main_url_root));
602 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
605 $message =
'<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.
'/public/agenda/agendaexport.php?format=ical'.($conf->entity > 1 ?
"&entity=".$conf->entity :
"");
606 $message .=
'&exportkey='.(getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY') ? urlencode(
getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY')) :
'...');
607 $message .=
"&project=".$projectstatic->id.
'&module='.urlencode(
'conforbooth@eventorganization').
'&status='.ConferenceOrBooth::STATUS_CONFIRMED.
'&output=file">'.$langs->trans(
'DownloadICSLink').img_picto(
'',
'download',
'class="paddingleft"').
'</a>';
614 print $form->textwithpicto($langs->trans(
"SuggestOrVoteForConfOrBooth"), $langs->trans(
"EvntOrgRegistrationHelpMessage"));
617 $linksuggest = $dolibarr_main_url_root.
'/public/project/index.php?id='.$projectstatic->id;
618 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
619 $linksuggest .=
'&securekey='.urlencode($encodedsecurekey);
622 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.
'" class="quatrevingtpercent">'.$linksuggest.
'</a></div>';
623 print
'<a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.
'">'.
img_picto(
'',
'globe').
'</a>';
631 print $langs->trans(
"PublicAttendeeSubscriptionGlobalPage");
634 $link_subscription = $dolibarr_main_url_root.
'/public/eventorganization/attendee_new.php?id='.$projectstatic->id.
'&type=global';
635 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
636 $link_subscription .=
'&securekey='.urlencode($encodedsecurekey);
639 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$link_subscription.
'" class="quatrevingtpercent">'.$link_subscription.
'</a></div>';
640 print
'<a target="_blank" rel="noopener noreferrer" href="'.$link_subscription.
'">'.
img_picto(
'',
'globe').
'</a>';
650 print
'<div class="clearboth"></div>';
654 if (empty($confOrBooth->id)) {
657 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1, (!empty($project->public) ?
'projectpub' :
'project'), 0,
'',
'reposition');
661 if ($confOrBooth->id > 0) {
669 dol_banner_tab($object,
'ref',
'', 0);
671 print
'<div class="fichecenter">';
672 print
'<div class="fichehalfleft">';
673 print
'<div class="underbanner clearboth"></div>';
674 print
'<table class="border centpercent tableforfield">' .
"\n";
676 include DOL_DOCUMENT_ROOT .
'/core/tpl/commonfields_view.tpl.php';
679 include DOL_DOCUMENT_ROOT .
'/core/tpl/extrafields_view.tpl.php';
685 print
'<div class="clearboth"></div>';
691$arrayofselected = is_array($toselect) ? $toselect : array();
695 $param .=
'&mode='.urlencode($mode);
697if (!empty($contextpage) && $contextpage != $_SERVER[
"PHP_SELF"]) {
698 $param .=
'&contextpage='.urlencode($contextpage);
700if ($limit > 0 && $limit != $conf->liste_limit) {
701 $param .=
'&limit='.((int) $limit);
703if ($optioncss !=
'') {
704 $param .=
'&optioncss='.urlencode($optioncss);
706foreach ($search as $key => $val) {
707 if (is_array($search[$key])) {
708 foreach ($search[$key] as $skey) {
710 $param .=
'&search_'.$key.
'[]='.urlencode($skey);
713 } elseif (preg_match(
'/(_dtstart|_dtend)$/', $key) && !empty($val)) {
714 $param .=
'&search_'.$key.
'month='.(
GETPOSTINT(
'search_'.$key.
'month'));
715 $param .=
'&search_'.$key.
'day='.(
GETPOSTINT(
'search_'.$key.
'day'));
716 $param .=
'&search_'.$key.
'year='.(
GETPOSTINT(
'search_'.$key.
'year'));
717 } elseif ($search[$key] !=
'') {
718 $param .=
'&search_'.$key.
'='.urlencode($search[$key]);
721if ($confOrBooth->id > 0) {
722 $param .=
'&conforboothid='.urlencode($confOrBooth->id);
724if ($projectstatic->id > 0) {
725 $param .=
'&fk_project='.urlencode((
string) ($projectstatic->id));
727$param .= $withProjectUrl;
730include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
732$parameters = array(
'param' => &$param);
733$reshook = $hookmanager->executeHooks(
'printFieldListSearchParam', $parameters, $object, $action);
734$param .= $hookmanager->resPrint;
737$arrayofmassactions = array(
741 'presend' =>
img_picto(
'',
'email',
'class="pictofixedwidth"').$langs->trans(
"SendByMail"),
743if (!empty($permissiontodelete)) {
744 $arrayofmassactions[
'predelete'] =
img_picto(
'',
'delete',
'class="pictofixedwidth"').$langs->trans(
"Delete");
746if (
GETPOSTINT(
'nomassaction') || in_array($massaction, array(
'presend',
'predelete'))) {
747 $arrayofmassactions = array();
749$massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
751print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].(!empty($conf_or_booth_id) ?
'?conforboothid='.$conf_or_booth_id :
'').
'">'.
"\n";
752if ($optioncss !=
'') {
753 print
'<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
755print
'<input type="hidden" name="token" value="'.newToken().
'">';
756print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
757print
'<input type="hidden" name="action" value="list">';
758print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
759print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
760print
'<input type="hidden" name="page" value="'.$page.
'">';
761print
'<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
762print
'<input type="hidden" name="withproject" value="'.$withproject.
'">';
763print
'<input type="hidden" name="fk_project" value="'.$fk_project.
'">';
764print
'<input type="hidden" name="page_y" value="">';
765print
'<input type="hidden" name="mode" value="'.$mode.
'">';
767$params = array(
'morecss' =>
'reposition');
769$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);
772$newcardbutton .=
dolGetButtonTitle($langs->trans(
'New'),
'',
'fa fa-plus-circle', $urlnew,
'', $permissiontoadd, $params);
774print_barre_liste($title, $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
$object->picto, 0, $newcardbutton,
'', $limit, 0, 0, 1);
778$topicmail = $projectstatic->title;
779$modelmail =
"conferenceorbooth";
781$trackid =
'conferenceorbooth_'.$object->id;
782$withmaindocfilemail = 0;
783include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
788 foreach ($fieldstosearchall as $key => $val) {
789 $fieldstosearchall[$key] = $langs->trans($val);
790 $setupstring .= $key.
"=".$val.
";";
792 print
'<!-- Search done like if CONFERENCEORBOOTHATTENDEE_QUICKSEARCH_ON_FIELDS = '.$setupstring.
' -->'.
"\n";
793 print
'<div class="divsearchfieldfilter">'.$langs->trans(
"FilterOnInto", $search_all).implode(
', ', $fieldstosearchall).
'</div>';
801$parameters = array();
802$reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $object, $action);
803if (empty($reshook)) {
804 $moreforfilter .= $hookmanager->resPrint;
806 $moreforfilter = $hookmanager->resPrint;
809if (!empty($moreforfilter)) {
810 print
'<div class="liste_titre liste_titre_bydiv centpercent">';
811 print $moreforfilter;
815$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
816$htmlofselectarray = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
getDolGlobalString(
'MAIN_CHECKBOX_LEFT_COLUMN'));
817$selectedfields = ($mode !=
'kanban' ? $htmlofselectarray :
'');
818$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons(
'checkforselect', 1) :
'');
821print
'<div class="div-table-responsive">';
822print
'<table class="tagtable nobottomiftotal liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">'.
"\n";
827print
'<tr class="liste_titre_filter">';
830 print
'<td class="liste_titre center maxwidthsearch">';
831 $searchpicto = $form->showFilterButtons(
'left');
835foreach (
$object->fields as $key => $val) {
836 $searchkey = empty($search[$key]) ?
'' : $search[$key];
837 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
838 if ($key ==
'status') {
839 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
840 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
841 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
842 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
843 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
844 } 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'])) {
845 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
847 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
848 print
'<td class="liste_titre'.($cssforfield ?
' '.$cssforfield :
'').($key ==
'status' ?
' parentonrightofpage' :
'').
'">';
849 if (!empty($val[
'arrayofkeyval']) && is_array($val[
'arrayofkeyval'])) {
850 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);
851 } elseif ((strpos($val[
'type'],
'integer:') === 0) || (strpos($val[
'type'],
'sellist:') === 0)) {
852 print
$object->showInputField($val, $key, (isset($search[$key]) ? $search[$key] :
''),
'',
'',
'search_', $cssforfield.
' maxwidth250', 1);
853 } elseif (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
854 print
'<div class="nowrap">';
855 print $form->selectDate($search[$key.
'_dtstart'] ? $search[$key.
'_dtstart'] :
'',
"search_".$key.
"_dtstart", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'From'));
857 print
'<div class="nowrap">';
858 print $form->selectDate($search[$key.
'_dtend'] ? $search[$key.
'_dtend'] :
'',
"search_".$key.
"_dtend", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'to'));
860 } elseif ($key ==
'lang') {
861 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formadmin.class.php';
863 print $formadmin->select_language($search[$key],
'search_lang', 0,
null, 1, 0, 0,
'minwidth100imp maxwidth125', 2);
865 print
'<input type="text" class="flat maxwidth75" name="search_'.$key.
'" value="'.
dol_escape_htmltag(isset($search[$key]) ? $search[$key] :
'').
'">';
871include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_input.tpl.php';
874$parameters = array(
'arrayfields' => $arrayfields);
875$reshook = $hookmanager->executeHooks(
'printFieldListOption', $parameters, $object, $action);
876print $hookmanager->resPrint;
879 print
'<td class="liste_titre center maxwidthsearch">';
880 $searchpicto = $form->showFilterButtons();
886$totalarray = array();
887$totalarray[
'nbfield'] = 0;
891print
'<tr class="liste_titre">';
894 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
895 $totalarray[
'nbfield']++;
897foreach (
$object->fields as $key => $val) {
898 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
899 if ($key ==
'status') {
900 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
901 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
902 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
903 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
904 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
905 } 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'])) {
906 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
908 $cssforfield = preg_replace(
'/small\s*/',
'', $cssforfield);
909 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
910 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";
911 $totalarray[
'nbfield']++;
915include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
917$parameters = array(
'arrayfields' => $arrayfields,
'param' => $param,
'sortfield' => $sortfield,
'sortorder' => $sortorder,
'totalarray' => &$totalarray);
918$reshook = $hookmanager->executeHooks(
'printFieldListTitle', $parameters, $object, $action);
919print $hookmanager->resPrint;
922 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
923 $totalarray[
'nbfield']++;
929$needToFetchEachLine = 0;
930if (isset($extrafields->attributes[
$object->table_element][
'computed']) && is_array($extrafields->attributes[
$object->table_element][
'computed']) && count($extrafields->attributes[
$object->table_element][
'computed']) > 0) {
931 foreach ($extrafields->attributes[
$object->table_element][
'computed'] as $key => $val) {
932 if (!is_null($val) && preg_match(
'/\$object/', $val)) {
933 $needToFetchEachLine++;
942$savnbfield = $totalarray[
'nbfield'];
943$totalarray = array();
944$totalarray[
'nbfield'] = 0;
945$imaxinloop = ($limit ? min($num, $limit) : $num);
946while ($i < $imaxinloop) {
947 $obj = $db->fetch_object($resql);
953 $object->setVarsFromFetchObj($obj);
955 if ($mode ==
'kanban') {
957 print
'<tr class="trkanban"><td colspan="'.$savnbfield.
'">';
958 print
'<div class="box-flex-container kanban">';
962 if ($massactionbutton || $massaction) {
964 if (in_array(
$object->id, $arrayofselected)) {
968 print
$object->getKanbanView(
'', array(
'selected' => $selected));
969 if ($i == ($imaxinloop - 1)) {
976 print
'<tr data-rowid="'.$object->id.
'" class="oddeven">';
979 print
'<td class="nowrap center">';
980 if ($massactionbutton || $massaction) {
982 if (in_array(
$object->id, $arrayofselected)) {
985 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.
$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
989 $totalarray[
'nbfield']++;
992 foreach (
$object->fields as $key => $val) {
993 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
994 if (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
995 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
996 } elseif ($key ==
'status') {
997 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
1000 if (in_array($val[
'type'], array(
'timestamp'))) {
1001 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowraponall';
1002 } elseif ($key ==
'ref') {
1003 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowraponall';
1006 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'])) {
1007 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
1011 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
1012 print
'<td'.($cssforfield ?
' class="'.$cssforfield.(preg_match(
'/tdoverflow/', $cssforfield) ?
' classfortooltip' :
'').
'"' :
'');
1013 if (preg_match(
'/tdoverflow/', $cssforfield) && !is_numeric(
$object->$key)) {
1014 print
' title="'.dol_escape_htmltag(
$object->$key).
'"';
1017 if ($key ==
'status') {
1018 print
$object->getLibStatut(5);
1019 } elseif ($key ==
'ref') {
1020 $optionLink = (!empty($withproject) ?
'conforboothidproject' :
'conforboothid');
1021 if (empty($confOrBooth->id)) {
1022 $optionLink =
'projectid';
1024 print
$object->getNomUrl(1, $optionLink);
1030 $totalarray[
'nbfield']++;
1032 if (!empty($val[
'isameasure']) && $val[
'isameasure'] == 1) {
1034 $totalarray[
'pos'][$totalarray[
'nbfield']] =
't.'.$key;
1036 if (!isset($totalarray[
'val'])) {
1037 $totalarray[
'val'] = array();
1039 if (!isset($totalarray[
'val'][
't.'.$key])) {
1040 $totalarray[
'val'][
't.'.$key] = 0;
1042 $totalarray[
'val'][
't.'.$key] +=
$object->$key;
1047 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
1049 $parameters = array(
'arrayfields' => $arrayfields,
'object' => $object,
'obj' => $obj,
'i' => $i,
'totalarray' => &$totalarray);
1050 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters, $object, $action);
1051 print $hookmanager->resPrint;
1054 print
'<td class="nowrap center">';
1055 if ($massactionbutton || $massaction) {
1057 if (in_array(
$object->id, $arrayofselected)) {
1060 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.
$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
1064 $totalarray[
'nbfield']++;
1075include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
1080 foreach ($arrayfields as $key => $val) {
1081 if (!empty($val[
'checked'])) {
1085 print
'<tr><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</span></td></tr>';
1091$parameters = array(
'arrayfields' => $arrayfields,
'sql' => $sql);
1092$reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $object, $action);
1093print $hookmanager->resPrint;
1095print
'</table>'.
"\n";
1098print
'</form>'.
"\n";
1100if (in_array(
'builddoc', array_keys($arrayofmassactions)) && ($nbtotalofrecords ===
'' || $nbtotalofrecords)) {
1101 $hidegeneratedfilelistifempty = 1;
1102 if ($massaction ==
'builddoc' || $action ==
'remove_file' || $show_files) {
1103 $hidegeneratedfilelistifempty = 0;
1106 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
1110 $urlsource = $_SERVER[
'PHP_SELF'].
'?sortfield='.$sortfield.
'&sortorder='.$sortorder;
1111 $urlsource .= str_replace(
'&',
'&', $param);
1113 $filedir = $diroutputmassaction;
1114 $genallowed = $permissiontoread;
1115 $delallowed = $permissiontoadd;
1117 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()
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...
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.
print_barre_liste($title, $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.
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.
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 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', $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.