30require
'../main.inc.php';
40require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
41require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
42require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
43require_once DOL_DOCUMENT_ROOT.
'/core/lib/project.lib.php';
45require_once DOL_DOCUMENT_ROOT.
'/eventorganization/class/conferenceorbooth.class.php';
46require_once DOL_DOCUMENT_ROOT.
'/eventorganization/class/conferenceorboothattendee.class.php';
47require_once DOL_DOCUMENT_ROOT.
'/eventorganization/lib/eventorganization_conferenceorbooth.lib.php';
48require_once DOL_DOCUMENT_ROOT.
'/projet/class/project.class.php';
50 require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
54$langs->loadLangs(array(
"eventorganization",
"other",
"projects",
"bills"));
57$action =
GETPOST(
'action',
'aZ09') ?
GETPOST(
'action',
'aZ09') :
'view';
58$massaction =
GETPOST(
'massaction',
'alpha');
60$confirm =
GETPOST(
'confirm',
'alpha');
61$cancel =
GETPOST(
'cancel',
'alpha');
62$toselect =
GETPOST(
'toselect',
'array:int');
63$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') : str_replace(
'_',
'', basename(dirname(__FILE__)).basename(__FILE__,
'.php'));
64$backtopage =
GETPOST(
'backtopage',
'alpha');
65$optioncss =
GETPOST(
'optioncss',
'aZ');
69$conf_or_booth_id =
GETPOSTINT(
'conforboothid');
73$projectid = $fk_project;
74$projectref =
GETPOST(
'projectref');
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((string) $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(
'project',
'read');
158$permissiontoadd = $user->hasRight(
'project',
'write');
159$permissiontodelete = $user->hasRight(
'project',
'delete');
166if ($user->socid > 0) {
178if (preg_match(
'/^set/', $action) && ($projectid > 0 || $projectref) && $user->hasRight(
'project',
'write')) {
180 $project_attr = preg_replace(
'/^set/',
'', $action);
181 if (array_key_exists($project_attr, $project->fields)) {
182 $result = $project->fetch($projectid, $projectref);
186 $projectid = $project->id;
187 $project->{$project_attr} =
GETPOST($project_attr);
188 $result = $project->update($user);
196if (
GETPOST(
'cancel',
'alpha')) {
200if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') {
204$parameters = array();
205$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
210if (empty($reshook)) {
212 include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
215 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
216 foreach (
$object->fields as $key => $val) {
218 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
219 $search[$key.
'_dtstart'] =
'';
220 $search[$key.
'_dtend'] =
'';
224 $search_array_options = array();
226 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')
227 ||
GETPOST(
'button_search_x',
'alpha') ||
GETPOST(
'button_search.x',
'alpha') ||
GETPOST(
'button_search',
'alpha')) {
232 $objectclass =
'ConferenceOrBoothAttendee';
233 $objectlabel =
'ConferenceOrBoothAttendee';
234 $uploaddir = $conf->eventorganization->dir_output;
235 include DOL_DOCUMENT_ROOT.
'/eventorganization/core/actions_massactions_mail.inc.php';
236 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
245$form =
new Form($db);
248$help_url =
"EN:Module_Event_Organization";
254if ($conf_or_booth_id > 0) {
255 $result = $confOrBooth->fetch($conf_or_booth_id);
259 $fk_project = $confOrBooth->fk_project;
263if ($fk_project > 0) {
264 $result = $projectstatic->fetch($fk_project);
274$sql .=
$object->getFieldList(
't');
276if (!empty($extrafields->attributes[
$object->table_element][
'label'])) {
277 foreach ($extrafields->attributes[
$object->table_element][
'label'] as $key => $val) {
278 $sql .= ($extrafields->attributes[
$object->table_element][
'type'][$key] !=
'separate' ?
", ef.".$key.
" as options_".$key :
'');
282$parameters = array();
283$reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object, $action);
284$sql .= $hookmanager->resPrint;
285$sql = preg_replace(
'/,\s*$/',
'', $sql);
290$sql .=
" FROM ".MAIN_DB_PREFIX.$object->table_element.
" as t";
291if (!empty($confOrBooth->id)) {
292 $sql .=
" INNER JOIN ".MAIN_DB_PREFIX.
"actioncomm as a on a.id=t.fk_actioncomm AND a.id=".((int) $confOrBooth->id);
294if (isset($extrafields->attributes[
$object->table_element][
'label']) && is_array($extrafields->attributes[
$object->table_element][
'label']) && count($extrafields->attributes[
$object->table_element][
'label'])) {
295 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element.
"_extrafields as ef on (t.rowid = ef.fk_object)";
298$parameters = array();
299$reshook = $hookmanager->executeHooks(
'printFieldListFrom', $parameters, $object, $action);
300$sql .= $hookmanager->resPrint;
301if (
$object->ismultientitymanaged == 1) {
302 $sql .=
" WHERE t.entity IN (".getEntity(
$object->element).
")";
304 $sql .=
" WHERE 1 = 1";
306if (!empty($projectstatic->id)) {
307 $sql .=
" AND t.fk_project = ".((int) $projectstatic->id);
309foreach ($search as $key => $val) {
310 if (array_key_exists($key,
$object->fields)) {
311 if ($key ==
'status' && $search[$key] == -1) {
315 if ((strpos(
$object->fields[$key][
'type'],
'integer:') === 0) || (strpos(
$object->fields[$key][
'type'],
'sellist:') === 0) || !empty(
$object->fields[$key][
'arrayofkeyval'])) {
316 if ($search[$key] ==
'-1' || ($search[$key] ===
'0' && (empty(
$object->fields[$key][
'arrayofkeyval']) || !array_key_exists(
'0',
$object->fields[$key][
'arrayofkeyval'])))) {
321 if ($search[$key] !=
'') {
322 $sql .=
natural_search($db->sanitize($key), $search[$key], (($key ==
'status') ? 2 : $mode_search));
325 if (preg_match(
'/(_dtstart|_dtend)$/', $key) && $search[$key] !=
'') {
326 $columnName = preg_replace(
'/(_dtstart|_dtend)$/',
'', $key);
327 if (preg_match(
'/^(date|timestamp|datetime)/',
$object->fields[$columnName][
'type'])) {
328 if (preg_match(
'/_dtstart$/', $key)) {
329 $sql .=
" AND t.".$db->escape($columnName).
" >= '".$db->idate($search[$key]).
"'";
331 if (preg_match(
'/_dtend$/', $key)) {
332 $sql .=
" AND t.".$db->escape($columnName).
" <= '".$db->idate($search[$key]).
"'";
339 $sql .=
natural_search(array_keys($fieldstosearchall), $search_all);
343include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
345$parameters = array();
346$reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object, $action);
347$sql .= $hookmanager->resPrint;
350$nbtotalofrecords =
'';
353 $sqlforcount = preg_replace(
'/^'.preg_quote($sqlfields,
'/').
'/',
'SELECT COUNT(*) as nbtotalofrecords', $sql);
354 $sqlforcount = preg_replace(
'/GROUP BY .*$/',
'', $sqlforcount);
355 $resql = $db->query($sqlforcount);
357 $objforcount = $db->fetch_object($resql);
358 $nbtotalofrecords = $objforcount->nbtotalofrecords;
363 if (($page * $limit) > (
int) $nbtotalofrecords) {
371$sql .= $db->order($sortfield, $sortorder);
373 $sql .= $db->plimit($limit + 1, $offset);
376$resql = $db->query($sql);
382$num = $db->num_rows($resql);
385if ($num == 1 &&
getDolGlobalInt(
'MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && $search_all && !$page) {
386 $obj = $db->fetch_object($resql);
388 header(
"Location: ".DOL_URL_ROOT.
'/eventorganization/conferenceorboothattendee_card.php?id='.((
int) $id));
392if ($confOrBooth->id > 0) {
393 $title = $langs->trans(
'ListOfAttendeesPerConference');
395 $title = $langs->trans(
'ListOfAttendeesOfEvent');
401llxHeader(
'', $title, $help_url,
'', 0, 0, $morejs, $morecss,
'',
'mod-eventorganization page-attendee-list classforhorizontalscrolloftabs');
405if ($projectstatic->id > 0 || $confOrBooth > 0) {
406 if (
getDolGlobalString(
'PROJECT_ALLOW_COMMENT_ON_PROJECT') && method_exists($projectstatic,
'fetchComments') && empty($projectstatic->comments)) {
407 $projectstatic->fetchComments();
409 if (!empty($projectstatic->socid)) {
410 $projectstatic->fetch_thirdparty();
413 $withProjectUrl =
'';
414 $object->project = clone $projectstatic;
416 if (!empty($withproject)) {
418 $tab =
'eventorganisation';
419 $withProjectUrl =
"&withproject=1";
422 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1, ($projectstatic->public ?
'projectpub' :
'project'), 0,
'',
'');
424 $param = ($mode ==
'mine' ?
'&mode=mine' :
'');
428 $linkback =
'<a href="'.DOL_URL_ROOT.
'/projet/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
430 $morehtmlref =
'<div class="refidno">';
432 $morehtmlref .= $projectstatic->title;
434 if (!empty($projectstatic->thirdparty->id) && $projectstatic->thirdparty->id > 0) {
435 $morehtmlref .=
'<br>'.$projectstatic->thirdparty->getNomUrl(1,
'project');
437 $morehtmlref .=
'</div>';
440 if (!$user->hasRight(
'projet',
'all',
'lire')) {
441 $objectsListId = $projectstatic->getProjectsAuthorizedForUser($user, 0, 0);
442 $projectstatic->next_prev_filter =
"rowid:IN:".$db->sanitize(count($objectsListId) ? implode(
',', array_keys($objectsListId)) :
'0');
445 dol_banner_tab($projectstatic,
'project_ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
447 print
'<div class="fichecenter">';
448 print
'<div class="fichehalfleft">';
449 print
'<div class="underbanner clearboth"></div>';
451 print
'<table class="border tableforfield centpercent">';
455 print
'<tr><td class="tdtop">';
456 print $langs->trans(
"Usage");
460 print
'<input type="checkbox" disabled name="usage_opportunity"'.(GETPOSTISSET(
'usage_opportunity') ? (
GETPOST(
'usage_opportunity',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_opportunity ?
' checked="checked"' :
'')).
'"> ';
461 $htmltext = $langs->trans(
"ProjectFollowOpportunity");
462 print $form->textwithpicto($langs->trans(
"ProjectFollowOpportunity"), $htmltext);
466 print
'<input type="checkbox" disabled name="usage_task"'.(GETPOSTISSET(
'usage_task') ? (
GETPOST(
'usage_task',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_task ?
' checked="checked"' :
'')).
'"> ';
467 $htmltext = $langs->trans(
"ProjectFollowTasks");
468 print $form->textwithpicto($langs->trans(
"ProjectFollowTasks"), $htmltext);
472 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"' :
'')).
'"> ';
473 $htmltext = $langs->trans(
"ProjectBillTimeDescription");
474 print $form->textwithpicto($langs->trans(
"BillTime"), $htmltext);
478 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"' :
'')).
'"> ';
479 $htmltext = $langs->trans(
"EventOrganizationDescriptionLong");
480 print $form->textwithpicto($langs->trans(
"ManageOrganizeEvent"), $htmltext);
486 print
'<tr><td>'.$langs->trans(
"Budget").
'</td><td>';
487 if (strcmp($projectstatic->budget_amount,
'')) {
488 print
'<span class="amount">'.price($projectstatic->budget_amount, 0, $langs, 1, 0, 0, $conf->currency).
'</span>';
493 print
'<tr><td>'.$langs->trans(
"Dates").
' ('.$langs->trans(
"Project").
')</td><td>';
495 print($start ? $start :
'?');
498 print($end ? $end :
'?');
499 if ($projectstatic->hasDelay()) {
505 print
'<tr><td>'.$langs->trans(
"Dates").
' ('.$langs->trans(
"Event").
')</td><td>';
507 print($start ? $start :
'?');
510 print($end ? $end :
'?');
511 if ($projectstatic->hasDelay()) {
517 print
'<tr><td class="titlefield">'.$langs->trans(
"Visibility").
'</td><td>';
518 if ($projectstatic->public == 0) {
519 print
img_picto($langs->trans(
'PrivateProject'),
'private',
'class="paddingrightonly"');
520 print $langs->trans(
"PrivateProject");
522 print
img_picto($langs->trans(
'SharedProject'),
'world',
'class="paddingrightonly"');
523 print $langs->trans(
"SharedProject");
528 print
'<tr><td>'.$langs->trans(
"Location").
'</td><td>';
529 print $projectstatic->location;
536 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
543 print
'<div class="fichehalfright">';
544 print
'<div class="underbanner clearboth"></div>';
546 print
'<table class="border tableforfield centpercent">';
550 print
'<tr><td class="valignmiddle">'.$langs->trans(
"Categories").
'</td><td>';
551 print $form->showCategories($projectstatic->id,
'project', 1);
556 print
'<tr><td class="titlefield'.($projectstatic->description ?
' noborderbottom' :
'').
'" colspan="2">'.$langs->trans(
"Description").
'</td></tr>';
557 if ($projectstatic->description) {
558 print
'<tr><td class="nottitleforfield" colspan="2">';
559 print
'<div class="longmessagecut">';
565 print
'<tr><td class="nowrap">';
566 $typeofdata =
'checkbox:'.($projectstatic->accept_conference_suggestions ?
' checked="checked"' :
'');
567 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestConfHelp");
568 print $form->editfieldkey(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions', $projectstatic->accept_conference_suggestions ?
'1' :
'0', $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
570 print $form->editfieldval(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions', $projectstatic->accept_conference_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', null, null,
'', 0,
'',
'projectid');
574 $typeofdata =
'checkbox:'.($projectstatic->accept_booth_suggestions ?
' checked="checked"' :
'');
575 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestBoothHelp");
576 print $form->editfieldkey(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions', $projectstatic->accept_booth_suggestions ?
'1' :
'0', $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
578 print $form->editfieldval(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions', $projectstatic->accept_booth_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', null, null,
'', 0,
'',
'projectid');
582 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
584 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth', $projectstatic->price_booth, $projectstatic, 0,
'amount',
'',
null,
null,
'', 0,
'',
'projectid');
588 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
590 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration', $projectstatic->price_registration, $projectstatic, 0,
'amount',
'',
null,
null,
'', 0,
'',
'projectid');
593 print
'<tr><td class="titlefield">';
594 print $form->editfieldkey($form->textwithpicto($langs->trans(
'MaxNbOfAttendees'),
''),
'max_attendees',
'', $projectstatic, $permissiontoadd,
'integer:3',
'&withproject=1', 0, 0,
'projectid');
595 print
'</td><td class="valuefield">';
596 print $form->editfieldval($form->textwithpicto($langs->trans(
'MaxNbOfAttendees'),
''),
'max_attendees', $projectstatic->max_attendees, $projectstatic, $permissiontoadd,
'integer:3',
'',
null,
null,
'&withproject=1', 0,
'',
'projectid');
600 print
'<tr><td class="titlefield valignmiddle">'.$langs->trans(
"EventOrganizationICSLinkProject").
'</td><td class="valuefield">';
603 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
606 $message =
'<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.
'/public/agenda/agendaexport.php?format=ical'.($conf->entity > 1 ?
"&entity=".$conf->entity :
"");
607 $message .=
'&exportkey='.urlencode(
getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY',
'...'));
608 $message .=
"&project=".$projectid.
'&module='.urlencode(
'project@eventorganization').
'&output=file">'.$langs->trans(
'DownloadICSLink').img_picto(
'',
'download',
'class="paddingleft"').
'</a>';
612 print
'<tr><td valign="middle">'.$langs->trans(
"EventOrganizationICSLink").
'</td><td>';
615 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
618 $message =
'<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.
'/public/agenda/agendaexport.php?format=ical'.($conf->entity > 1 ?
"&entity=".$conf->entity :
"");
619 $message .=
'&exportkey='.(getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY') ? urlencode(
getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY')) :
'...');
620 $message .=
"&project=".$projectstatic->id.
'&module='.urlencode(
'conforbooth@eventorganization').
'&status='.ConferenceOrBooth::STATUS_CONFIRMED.
'&output=file">'.$langs->trans(
'DownloadICSLink').img_picto(
'',
'download',
'class="paddingleft"').
'</a>';
627 print $form->textwithpicto($langs->trans(
"SuggestOrVoteForConfOrBooth"), $langs->trans(
"EvntOrgRegistrationHelpMessage"));
631 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
632 $linksuggest .=
'&securekey='.urlencode($encodedsecurekey);
635 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.
'" class="quatrevingtpercent">'.$linksuggest.
'</a></div>';
636 print
'<a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.
'">'.
img_picto(
'',
'globe').
'</a>';
644 print $langs->trans(
"PublicAttendeeSubscriptionGlobalPage");
647 $link_subscription =
$dolibarr_main_url_root.
'/public/eventorganization/attendee_new.php?id='.$projectstatic->id.
'&type=global';
648 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
649 $link_subscription .=
'&securekey='.urlencode($encodedsecurekey);
652 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$link_subscription.
'" class="quatrevingtpercent">'.$link_subscription.
'</a></div>';
653 print
'<a target="_blank" rel="noopener noreferrer" href="'.$link_subscription.
'">'.
img_picto(
'',
'globe').
'</a>';
663 print
'<div class="clearboth"></div>';
667 if (empty($confOrBooth->id)) {
670 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1, (!empty($project->public) ?
'projectpub' :
'project'), 0,
'',
'reposition');
674 if ($confOrBooth->id > 0) {
682 dol_banner_tab($object,
'ref',
'', 0);
684 print
'<div class="fichecenter">';
685 print
'<div class="fichehalfleft">';
686 print
'<div class="underbanner clearboth"></div>';
687 print
'<table class="border centpercent tableforfield">' .
"\n";
689 include DOL_DOCUMENT_ROOT .
'/core/tpl/commonfields_view.tpl.php';
692 include DOL_DOCUMENT_ROOT .
'/core/tpl/extrafields_view.tpl.php';
698 print
'<div class="clearboth"></div>';
704$arrayofselected = is_array($toselect) ? $toselect : array();
708 $param .=
'&mode='.urlencode($mode);
710if (!empty($contextpage) && $contextpage != $_SERVER[
"PHP_SELF"]) {
711 $param .=
'&contextpage='.urlencode($contextpage);
713if ($limit > 0 && $limit != $conf->liste_limit) {
714 $param .=
'&limit='.((int) $limit);
716if ($optioncss !=
'') {
717 $param .=
'&optioncss='.urlencode($optioncss);
719foreach ($search as $key => $val) {
720 if (is_array($search[$key])) {
721 foreach ($search[$key] as $skey) {
723 $param .=
'&search_'.$key.
'[]='.urlencode($skey);
726 } elseif (preg_match(
'/(_dtstart|_dtend)$/', $key) && !empty($val)) {
727 $param .=
'&search_'.$key.
'month='.(
GETPOSTINT(
'search_'.$key.
'month'));
728 $param .=
'&search_'.$key.
'day='.(
GETPOSTINT(
'search_'.$key.
'day'));
729 $param .=
'&search_'.$key.
'year='.(
GETPOSTINT(
'search_'.$key.
'year'));
730 } elseif ($search[$key] !=
'') {
731 $param .=
'&search_'.$key.
'='.urlencode($search[$key]);
734if ($confOrBooth->id > 0) {
735 $param .=
'&conforboothid='.urlencode((
string) $confOrBooth->id);
737if ($projectstatic->id > 0) {
738 $param .=
'&fk_project='.urlencode((
string) ($projectstatic->id));
740$param .= $withProjectUrl;
743include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
745$parameters = array(
'param' => &$param);
746$reshook = $hookmanager->executeHooks(
'printFieldListSearchParam', $parameters, $object, $action);
747$param .= $hookmanager->resPrint;
750$arrayofmassactions = array(
754 'presend' =>
img_picto(
'',
'email',
'class="pictofixedwidth"').$langs->trans(
"SendByMail"),
756if (!empty($permissiontodelete)) {
757 $arrayofmassactions[
'predelete'] =
img_picto(
'',
'delete',
'class="pictofixedwidth"').$langs->trans(
"Delete");
759if (
GETPOSTINT(
'nomassaction') || in_array($massaction, array(
'presend',
'predelete'))) {
760 $arrayofmassactions = array();
762$massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
764print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].(!empty($conf_or_booth_id) ?
'?conforboothid='.$conf_or_booth_id :
'').
'">'.
"\n";
765if ($optioncss !=
'') {
766 print
'<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
768print
'<input type="hidden" name="token" value="'.newToken().
'">';
769print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
770print
'<input type="hidden" name="action" value="list">';
771print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
772print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
773print
'<input type="hidden" name="page" value="'.$page.
'">';
774print
'<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
775print
'<input type="hidden" name="withproject" value="'.$withproject.
'">';
776print
'<input type="hidden" name="fk_project" value="'.$fk_project.
'">';
777print
'<input type="hidden" name="page_y" value="">';
778print
'<input type="hidden" name="mode" value="'.$mode.
'">';
780$params = array(
'morecss' =>
'reposition');
782$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);
785$newcardbutton .=
dolGetButtonTitle($langs->trans(
'New'),
'',
'fa fa-plus-circle', $urlnew,
'', $permissiontoadd, $params);
787print_barre_liste($title, $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
$object->picto, 0, $newcardbutton,
'', $limit, 0, 0, 1);
791$topicmail = $projectstatic->title;
792$modelmail =
"conferenceorbooth";
794$trackid =
'conferenceorbooth_'.$object->id;
795$withmaindocfilemail = 0;
796include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
801 foreach ($fieldstosearchall as $key => $val) {
802 $fieldstosearchall[$key] = $langs->trans($val);
803 $setupstring .= $key.
"=".$val.
";";
805 print
'<!-- Search done like if CONFERENCEORBOOTHATTENDEE_QUICKSEARCH_ON_FIELDS = '.$setupstring.
' -->'.
"\n";
806 print
'<div class="divsearchfieldfilter">'.$langs->trans(
"FilterOnInto", $search_all).implode(
', ', $fieldstosearchall).
'</div>';
814$parameters = array();
815$reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $object, $action);
816if (empty($reshook)) {
817 $moreforfilter .= $hookmanager->resPrint;
819 $moreforfilter = $hookmanager->resPrint;
822if (!empty($moreforfilter)) {
823 print
'<div class="liste_titre liste_titre_bydiv centpercent">';
824 print $moreforfilter;
828$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
829$htmlofselectarray = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
getDolGlobalString(
'MAIN_CHECKBOX_LEFT_COLUMN'));
830$selectedfields = ($mode !=
'kanban' ? $htmlofselectarray :
'');
831$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons(
'checkforselect', 1) :
'');
834print
'<div class="div-table-responsive">';
835print
'<table class="tagtable nobottomiftotal liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">'.
"\n";
840print
'<tr class="liste_titre_filter">';
843 print
'<td class="liste_titre center maxwidthsearch">';
844 $searchpicto = $form->showFilterButtons(
'left');
848foreach (
$object->fields as $key => $val) {
849 $searchkey = empty($search[$key]) ?
'' : $search[$key];
850 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
851 if ($key ==
'status') {
852 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
853 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
854 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
855 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
856 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
857 } 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'])) {
858 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
860 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
861 print
'<td class="liste_titre'.($cssforfield ?
' '.$cssforfield :
'').($key ==
'status' ?
' parentonrightofpage' :
'').
'">';
862 if (!empty($val[
'arrayofkeyval']) && is_array($val[
'arrayofkeyval'])) {
863 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);
864 } elseif ((strpos($val[
'type'],
'integer:') === 0) || (strpos($val[
'type'],
'sellist:') === 0)) {
865 print
$object->showInputField($val, $key, (isset($search[$key]) ? $search[$key] :
''),
'',
'',
'search_', $cssforfield.
' maxwidth250', 1);
866 } elseif (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
867 print
'<div class="nowrap">';
868 print $form->selectDate($search[$key.
'_dtstart'] ? $search[$key.
'_dtstart'] :
'',
"search_".$key.
"_dtstart", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'From'));
870 print
'<div class="nowrap">';
871 print $form->selectDate($search[$key.
'_dtend'] ? $search[$key.
'_dtend'] :
'',
"search_".$key.
"_dtend", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'to'));
873 } elseif ($key ==
'lang') {
874 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formadmin.class.php';
876 print $formadmin->select_language($search[$key],
'search_lang', 0, array(), 1, 0, 0,
'minwidth100imp maxwidth125', 2);
878 print
'<input type="text" class="flat maxwidth'.($val[
'type'] ==
'integer' ?
'50' :
'75').
'" name="search_'.$key.
'" value="'.
dol_escape_htmltag(isset($search[$key]) ? $search[$key] :
'').
'">';
884include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_input.tpl.php';
887$parameters = array(
'arrayfields' => $arrayfields);
888$reshook = $hookmanager->executeHooks(
'printFieldListOption', $parameters, $object, $action);
889print $hookmanager->resPrint;
892 print
'<td class="liste_titre center maxwidthsearch">';
893 $searchpicto = $form->showFilterButtons();
904print
'<tr class="liste_titre">';
907 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
910foreach (
$object->fields as $key => $val) {
911 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
912 if ($key ==
'status') {
913 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
914 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
915 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
916 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
917 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
918 } 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'])) {
919 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
921 $cssforfield = preg_replace(
'/small\s*/',
'', $cssforfield);
922 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
923 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";
928include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
930$parameters = array(
'arrayfields' => $arrayfields,
'param' => $param,
'sortfield' => $sortfield,
'sortorder' => $sortorder,
'totalarray' => &$totalarray);
931$reshook = $hookmanager->executeHooks(
'printFieldListTitle', $parameters, $object, $action);
932print $hookmanager->resPrint;
935 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
942$needToFetchEachLine = 0;
943if (isset($extrafields->attributes[
$object->table_element][
'computed']) && is_array($extrafields->attributes[
$object->table_element][
'computed']) && count($extrafields->attributes[
$object->table_element][
'computed']) > 0) {
944 foreach ($extrafields->attributes[
$object->table_element][
'computed'] as $key => $val) {
945 if (!is_null($val) && preg_match(
'/\$object/', $val)) {
946 $needToFetchEachLine++;
958$imaxinloop = ($limit ? min($num, $limit) : $num);
959while ($i < $imaxinloop) {
960 $obj = $db->fetch_object($resql);
966 $object->setVarsFromFetchObj($obj);
968 if ($mode ==
'kanban') {
970 print
'<tr class="trkanban"><td colspan="'.$savnbfield.
'">';
971 print
'<div class="box-flex-container kanban">';
975 if ($massactionbutton || $massaction) {
977 if (in_array(
$object->id, $arrayofselected)) {
981 print
$object->getKanbanView(
'', array(
'selected' => $selected));
982 if ($i == ($imaxinloop - 1)) {
989 print
'<tr data-rowid="'.$object->id.
'" class="oddeven">';
992 print
'<td class="nowrap center">';
993 if ($massactionbutton || $massaction) {
995 if (in_array(
$object->id, $arrayofselected)) {
998 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.
$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
1005 foreach (
$object->fields as $key => $val) {
1006 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
1007 if (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
1008 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
1009 } elseif ($key ==
'status') {
1010 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
1013 if (in_array($val[
'type'], array(
'timestamp'))) {
1014 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowraponall';
1015 } elseif ($key ==
'ref') {
1016 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowraponall';
1019 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'])) {
1020 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
1024 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
1025 print
'<td'.($cssforfield ?
' class="'.$cssforfield.(preg_match(
'/tdoverflow/', $cssforfield) ?
' classfortooltip' :
'').
'"' :
'');
1026 if (preg_match(
'/tdoverflow/', $cssforfield) && !is_numeric(
$object->$key)) {
1027 print
' title="'.dol_escape_htmltag((
string)
$object->$key).
'"';
1030 if ($key ==
'status') {
1031 print
$object->getLibStatut(5);
1032 } elseif ($key ==
'ref') {
1033 $optionLink = (!empty($withproject) ?
'conforboothidproject' :
'conforboothid');
1034 if (empty($confOrBooth->id)) {
1035 $optionLink =
'projectid';
1037 print
$object->getNomUrl(1, $optionLink);
1039 print
$object->showOutputField($val, $key, (
string)
$object->$key,
'');
1045 if (!empty($val[
'isameasure']) && $val[
'isameasure'] == 1) {
1049 if (!isset($totalarray[
'val'])) {
1052 if (!isset($totalarray[
'val'][
't.'.$key])) {
1060 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
1062 $parameters = array(
'arrayfields' => $arrayfields,
'object' => $object,
'obj' => $obj,
'i' => $i,
'totalarray' => &$totalarray);
1063 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters, $object, $action);
1064 print $hookmanager->resPrint;
1067 print
'<td class="nowrap center">';
1068 if ($massactionbutton || $massaction) {
1070 if (in_array(
$object->id, $arrayofselected)) {
1073 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.
$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
1088include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
1093 foreach ($arrayfields as $key => $val) {
1094 if (!empty($val[
'checked'])) {
1098 print
'<tr><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</span></td></tr>';
1104$parameters = array(
'arrayfields' => $arrayfields,
'sql' => $sql);
1105$reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $object, $action);
1106print $hookmanager->resPrint;
1108print
'</table>'.
"\n";
1111print
'</form>'.
"\n";
1113if (in_array(
'builddoc', array_keys($arrayofmassactions)) && ($nbtotalofrecords ===
'' || $nbtotalofrecords)) {
1114 $hidegeneratedfilelistifempty = 1;
1115 if ($massaction ==
'builddoc' || $action ==
'remove_file' || $show_files) {
1116 $hidegeneratedfilelistifempty = 0;
1119 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
1123 $urlsource = $_SERVER[
'PHP_SELF'].
'?sortfield='.$sortfield.
'&sortorder='.$sortorder;
1124 $urlsource .= str_replace(
'&',
'&', $param);
1126 $filedir = $diroutputmassaction;
1127 $genallowed = $permissiontoread;
1128 $delallowed = $permissiontoadd;
1130 print $formfile->showdocuments(
'massfilesarea_eventorganization',
'', $filedir, $urlsource, 0, $delallowed,
'', 1, 1, 0, 48, 1, $param, $title,
'',
'',
'',
null, $hidegeneratedfilelistifempty);
$id
Support class for third parties, contacts, members, users or resources.
if(! $sortfield) if(! $sortorder) $object
global $dolibarr_main_url_root
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Class 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_now($mode='gmt')
Return date for now.
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm='auto', $check=1)
Return a timestamp date built from detailed information (by default a local PHP server timestamp) Rep...
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_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2, $allowothertags=array())
Show picto whatever it's its name (generic function)
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
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, $morecssdiv='')
Show tabs of a record.
dolPrintHTML($s, $allowiframe=0)
Return a string (that can be on several lines) ready to be output on a HTML page.
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, $sqltoadd='')
Generate natural SQL search string for a criteria (this criteria can be tested on one or several fiel...
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
dol_sort_array(&$array, $index, $order='asc', $natsort=0, $case_sensitive=0, $keepindex=0)
Advanced sort array by the value of a given key, which produces ascending (default) or descending out...
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_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false, $decorate=0)
Output date in a string format according to outputlangs (or langs if not defined).
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.
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.
dol_hash($chain, $type='0', $nosalt=0, $mode=0)
Returns a hash (non reversible encryption) of a string.
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.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.