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');
79$withThirdpartyUrl =
'';
83$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
84$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
86if (empty($page) || $page < 0 ||
GETPOST(
'button_search',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
90$offset = $limit * $page;
99$diroutputmassaction =
$conf->eventorganization->dir_output.
'/temp/massgeneration/'.$user->id;
100if ($thirdpartyid > 0) {
101 $hookmanager->initHooks(array(
'thirdpartyattendee',
'globalcard'));
103 $hookmanager->initHooks(array($contextpage));
107$extrafields->fetch_name_optionals_label(
$object->table_element);
110$search_array_options = $extrafields->getOptionalsFromPost(
$object->table_element,
'',
'search_');
115 $sortfield =
"t.".key(
$object->fields);
122$search_all =
GETPOST(
'search_all',
'alphanohtml');
124foreach (
$object->fields as $key => $val) {
125 if (
GETPOST(
'search_'.$key,
'alpha') !==
'') {
126 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
128 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
135$fieldstosearchall = array();
136foreach (
$object->fields as $key => $val) {
137 if (!empty($val[
'searchall'])) {
138 $fieldstosearchall[
't.'.$key] = $val[
'label'];
143$arrayfields = array();
144foreach (
$object->fields as $key => $val) {
146 if (!empty($val[
'visible'])) {
147 $visible = (int)
dol_eval((
string) $val[
'visible'], 1);
148 $arrayfields[
't.'.$key] = array(
149 'label' => $val[
'label'],
150 'checked' => (($visible < 0) ? 0 : 1),
151 'enabled' => (abs($visible) != 3 && (bool)
dol_eval((
string) $val[
'enabled'], 1)),
152 'position' => $val[
'position'],
153 'help' => isset($val[
'help']) ? $val[
'help'] :
''
158include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_array_fields.tpl.php';
160$parameters = array(
'arrayfields' => &$arrayfields);
161$reshook = $hookmanager->executeHooks(
'completeArrayFields', $parameters, $object, $action);
167$permissiontoread = $user->hasRight(
'project',
'read');
168$permissiontoadd = $user->hasRight(
'project',
'write');
169$permissiontodelete = $user->hasRight(
'project',
'delete');
176if ($user->socid > 0) {
188if (preg_match(
'/^set/', $action) && ($projectid > 0 || $projectref) && $user->hasRight(
'project',
'write')) {
190 $project_attr = preg_replace(
'/^set/',
'', $action);
191 if (array_key_exists($project_attr, $project->fields)) {
192 $result = $project->fetch($projectid, $projectref);
196 $projectid = $project->id;
197 $project->{$project_attr} =
GETPOST($project_attr);
198 $result = $project->update($user);
206if (
GETPOST(
'cancel',
'alpha')) {
210if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') {
214$parameters = array();
215$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
220if (empty($reshook)) {
222 include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
225 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
226 foreach (
$object->fields as $key => $val) {
228 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
229 $search[$key.
'_dtstart'] =
'';
230 $search[$key.
'_dtend'] =
'';
234 $search_array_options = array();
236 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')
237 ||
GETPOST(
'button_search_x',
'alpha') ||
GETPOST(
'button_search.x',
'alpha') ||
GETPOST(
'button_search',
'alpha')) {
242 $objectclass =
'ConferenceOrBoothAttendee';
243 $objectlabel =
'ConferenceOrBoothAttendee';
244 $uploaddir =
$conf->eventorganization->dir_output;
245 include DOL_DOCUMENT_ROOT.
'/eventorganization/core/actions_massactions_mail.inc.php';
246 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
258$help_url =
"EN:Module_Event_Organization";
261if ($conf_or_booth_id > 0) {
262 $result = $confOrBooth->fetch($conf_or_booth_id);
266 $fk_project = $confOrBooth->fk_project;
269$title = $langs->trans(
'Attendees');
273if ($fk_project > 0) {
274 $result = $projectstatic->fetch($fk_project);
279 $title = $projectstatic->ref .
' ' . $projectstatic->name .
' - ' . $title;
290$sql .=
$object->getFieldList(
't');
292if (!empty($extrafields->attributes[
$object->table_element][
'label'])) {
293 foreach ($extrafields->attributes[
$object->table_element][
'label'] as $key => $val) {
294 $sql .= ($extrafields->attributes[
$object->table_element][
'type'][$key] !=
'separate' ?
", ef.".$key.
" as options_".$key :
'');
298$parameters = array();
299$reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object, $action);
300$sql .= $hookmanager->resPrint;
301$sql = preg_replace(
'/,\s*$/',
'', $sql);
306$sql .=
" FROM ".MAIN_DB_PREFIX.$object->table_element.
" as t";
307if (!empty($confOrBooth->id)) {
308 $sql .=
" INNER JOIN ".MAIN_DB_PREFIX.
"actioncomm as a on a.id=t.fk_actioncomm AND a.id=".((int) $confOrBooth->id);
310if (isset($extrafields->attributes[
$object->table_element][
'label']) && is_array($extrafields->attributes[
$object->table_element][
'label']) && count($extrafields->attributes[
$object->table_element][
'label'])) {
311 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element.
"_extrafields as ef on (t.rowid = ef.fk_object)";
314$parameters = array();
315$reshook = $hookmanager->executeHooks(
'printFieldListFrom', $parameters, $object, $action);
316$sql .= $hookmanager->resPrint;
317if (
$object->ismultientitymanaged == 1) {
318 $sql .=
" WHERE t.entity IN (".getEntity(
$object->element).
")";
320 $sql .=
" WHERE 1 = 1";
322if (!empty($projectstatic->id)) {
323 $sql .=
" AND t.fk_project = ".((int) $projectstatic->id);
325if (!empty($thirdpartyid)) {
326 $sql .=
" AND t.fk_soc = ".((int) $thirdpartyid);
328foreach ($search as $key => $val) {
329 if (array_key_exists($key,
$object->fields)) {
330 if ($key ==
'status' && $search[$key] == -1) {
334 if ((strpos(
$object->fields[$key][
'type'],
'integer:') === 0) || (strpos(
$object->fields[$key][
'type'],
'sellist:') === 0) || !empty(
$object->fields[$key][
'arrayofkeyval'])) {
335 if ($search[$key] ==
'-1' || ($search[$key] ===
'0' && (empty(
$object->fields[$key][
'arrayofkeyval']) || !array_key_exists(
'0',
$object->fields[$key][
'arrayofkeyval'])))) {
340 if ($search[$key] !=
'') {
341 $sql .=
natural_search(
$db->sanitize($key), $search[$key], (($key ==
'status') ? 2 : $mode_search));
344 if (preg_match(
'/(_dtstart|_dtend)$/', $key) && $search[$key] !=
'') {
345 $columnName = preg_replace(
'/(_dtstart|_dtend)$/',
'', $key);
346 if (preg_match(
'/^(date|timestamp|datetime)/',
$object->fields[$columnName][
'type'])) {
347 if (preg_match(
'/_dtstart$/', $key)) {
348 $sql .=
" AND t.".$db->sanitize($columnName).
" >= '".
$db->idate($search[$key]).
"'";
350 if (preg_match(
'/_dtend$/', $key)) {
351 $sql .=
" AND t.".$db->sanitize($columnName).
" <= '".
$db->idate($search[$key]).
"'";
358 $sql .=
natural_search(array_keys($fieldstosearchall), $search_all);
362include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
364$parameters = array();
365$reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object, $action);
366$sql .= $hookmanager->resPrint;
369$nbtotalofrecords =
'';
372 $sqlforcount = preg_replace(
'/^'.preg_quote($sqlfields,
'/').
'/',
'SELECT COUNT(*) as nbtotalofrecords', $sql);
373 $sqlforcount = preg_replace(
'/GROUP BY .*$/',
'', $sqlforcount);
374 $resql =
$db->query($sqlforcount);
376 $objforcount =
$db->fetch_object($resql);
377 $nbtotalofrecords = $objforcount->nbtotalofrecords;
382 if (($page * $limit) > (
int) $nbtotalofrecords) {
390$sql .=
$db->order($sortfield, $sortorder);
392 $sql .=
$db->plimit($limit + 1, $offset);
395$resql =
$db->query($sql);
401$num =
$db->num_rows($resql);
404if ($num == 1 &&
getDolGlobalInt(
'MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && $search_all && !$page) {
405 $obj =
$db->fetch_object($resql);
407 header(
"Location: ".DOL_URL_ROOT.
'/eventorganization/conferenceorboothattendee_card.php?id='.((
int) $id));
414llxHeader(
'', $title, $help_url,
'', 0, 0, $morejs, $morecss,
'',
'mod-eventorganization page-attendee-list classforhorizontalscrolloftabs');
417if (($thirdpartyid > 0 && $user->hasRight(
'societe',
'lire')) || $confOrBooth > 0) {
418 $withThirdpartyUrl =
'';
420 if (!empty($withthirdparty)) {
422 $tab =
'eventorganisation';
423 $withThirdpartyUrl =
"&withthirdparty=1";
426 $res = $socstat->fetch($thirdpartyid);
433 print
dol_get_fiche_head($head,
'eventorganization', $langs->trans(
"ThirdParty"), -1,
'company');
435 dol_banner_tab($socstat,
'socid',
'', ($user->socid ? 0 : 1),
'rowid',
'nom');
437 print
'<div class="fichecenter">';
439 print
'<div class="underbanner clearboth"></div>';
440 print
'<table class="border centpercent tableforfield">';
443 print
'<tr><td class="titlefield">'.$langs->trans(
'NatureOfThirdParty').
'</td><td>';
444 print $socstat->getTypeUrl(1);
448 if ($socstat->client && !empty($socstat->code_client)) {
449 print
'<tr><td class="titlefield">';
450 print $langs->trans(
'CustomerCode').
'</td><td>';
452 $tmpcheck = $socstat->check_codeclient();
453 if ($tmpcheck != 0 && $tmpcheck != -5) {
454 print
' <span class="error">('.$langs->trans(
"WrongCustomerCode").
')</span>';
460 if ($socstat->fournisseur && !empty($socstat->code_fournisseur)) {
461 print
'<tr><td class="titlefield">';
462 print $langs->trans(
'SupplierCode').
'</td><td>';
464 $tmpcheck = $socstat->check_codefournisseur();
465 if ($tmpcheck != 0 && $tmpcheck != -5) {
466 print
' <span class="error">('.$langs->trans(
"WrongSupplierCode").
')</span>';
476 if (empty($confOrBooth->id)) {
479 print
dol_get_fiche_head($head, $tab, $langs->trans(
"ThirdParty"), -1,
'company', 0,
'',
'reposition');
485if ($projectstatic->id > 0 || $confOrBooth > 0) {
486 if (
getDolGlobalString(
'PROJECT_ALLOW_COMMENT_ON_PROJECT') && method_exists($projectstatic,
'fetchComments') && empty($projectstatic->comments)) {
487 $projectstatic->fetchComments();
489 if (!empty($projectstatic->socid)) {
490 $projectstatic->fetch_thirdparty();
493 $withProjectUrl =
'';
494 $object->project = clone $projectstatic;
496 if (!empty($withproject)) {
498 $tab =
'eventorganisation';
499 $withProjectUrl =
"&withproject=1";
502 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1, ($projectstatic->public ?
'projectpub' :
'project'), 0,
'',
'');
504 $param = ($mode ==
'mine' ?
'&mode=mine' :
'');
508 $linkback =
'<a href="'.DOL_URL_ROOT.
'/projet/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
510 $morehtmlref =
'<div class="refidno">';
512 $morehtmlref .= $projectstatic->title;
514 if (!empty($projectstatic->thirdparty->id) && $projectstatic->thirdparty->id > 0) {
515 $morehtmlref .=
'<br>'.$projectstatic->thirdparty->getNomUrl(1,
'project');
517 $morehtmlref .=
'</div>';
520 if (!$user->hasRight(
'projet',
'all',
'lire')) {
521 $objectsListId = $projectstatic->getProjectsAuthorizedForUser($user, 0, 0);
522 $projectstatic->next_prev_filter =
"rowid:IN:".$db->sanitize(count($objectsListId) ? implode(
',', array_keys($objectsListId)) :
'0');
525 dol_banner_tab($projectstatic,
'project_ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
527 print
'<div class="fichecenter">';
528 print
'<div class="fichehalfleft">';
529 print
'<div class="underbanner clearboth"></div>';
531 print
'<table class="border tableforfield centpercent">';
535 print
'<tr><td class="tdtop">';
536 print $langs->trans(
"Usage");
540 print
'<input type="checkbox" disabled name="usage_opportunity"'.(GETPOSTISSET(
'usage_opportunity') ? (
GETPOST(
'usage_opportunity',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_opportunity ?
' checked="checked"' :
'')).
'"> ';
541 $htmltext = $langs->trans(
"ProjectFollowOpportunity");
542 print $form->textwithpicto($langs->trans(
"ProjectFollowOpportunity"), $htmltext);
546 print
'<input type="checkbox" disabled name="usage_task"'.(GETPOSTISSET(
'usage_task') ? (
GETPOST(
'usage_task',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_task ?
' checked="checked"' :
'')).
'"> ';
547 $htmltext = $langs->trans(
"ProjectFollowTasks");
548 print $form->textwithpicto($langs->trans(
"ProjectFollowTasks"), $htmltext);
552 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"' :
'')).
'"> ';
553 $htmltext = $langs->trans(
"ProjectBillTimeDescription");
554 print $form->textwithpicto($langs->trans(
"BillTime"), $htmltext);
558 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"' :
'')).
'"> ';
559 $htmltext = $langs->trans(
"EventOrganizationDescriptionLong");
560 print $form->textwithpicto($langs->trans(
"ManageOrganizeEvent"), $htmltext);
566 print
'<tr><td>'.$langs->trans(
"Budget").
'</td><td>';
567 if (strcmp($projectstatic->budget_amount,
'')) {
568 print
'<span class="amount">'.price($projectstatic->budget_amount, 0, $langs, 1, 0, 0,
$conf->currency).
'</span>';
573 print
'<tr><td>'.$langs->trans(
"Dates").
' ('.$langs->trans(
"Project").
')</td><td>';
575 print($start ? $start :
'?');
578 print($end ? $end :
'?');
579 if ($projectstatic->hasDelay()) {
585 print
'<tr><td>'.$langs->trans(
"Dates").
' ('.$langs->trans(
"Event").
')</td><td>';
587 print($start ? $start :
'?');
590 print($end ? $end :
'?');
591 if ($projectstatic->hasDelay()) {
597 print
'<tr><td class="titlefield">'.$langs->trans(
"Visibility").
'</td><td>';
598 if ($projectstatic->public == 0) {
599 print
img_picto($langs->trans(
'PrivateProject'),
'private',
'class="paddingrightonly"');
600 print $langs->trans(
"PrivateProject");
602 print
img_picto($langs->trans(
'SharedProject'),
'world',
'class="paddingrightonly"');
603 print $langs->trans(
"SharedProject");
608 print
'<tr><td>'.$langs->trans(
"Location").
'</td><td>';
616 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
623 print
'<div class="fichehalfright">';
624 print
'<div class="underbanner clearboth"></div>';
626 print
'<table class="border tableforfield centpercent">';
630 print
'<tr><td class="valignmiddle">'.$langs->trans(
"Categories").
'</td><td>';
631 print $form->showCategories($projectstatic->id, Categorie::TYPE_PROJECT, 1);
636 print
'<tr><td class="titlefield'.($projectstatic->description ?
' noborderbottom' :
'').
'" colspan="2">'.$langs->trans(
"Description").
'</td></tr>';
637 if ($projectstatic->description) {
638 print
'<tr><td class="nottitleforfield" colspan="2">';
639 print
'<div class="longmessagecut">';
645 print
'<tr><td class="nowrap">';
646 $typeofdata =
'checkbox:'.($projectstatic->accept_conference_suggestions ?
' checked="checked"' :
'');
647 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestConfHelp");
648 print $form->editfieldkey(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions', $projectstatic->accept_conference_suggestions ?
'1' :
'0', $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
650 print $form->editfieldval(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions', $projectstatic->accept_conference_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', null, null,
'', 0,
'',
'projectid');
654 $typeofdata =
'checkbox:'.($projectstatic->accept_booth_suggestions ?
' checked="checked"' :
'');
655 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestBoothHelp");
656 print $form->editfieldkey(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions', $projectstatic->accept_booth_suggestions ?
'1' :
'0', $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
658 print $form->editfieldval(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions', $projectstatic->accept_booth_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', null, null,
'', 0,
'',
'projectid');
662 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
664 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth', $projectstatic->price_booth, $projectstatic, 0,
'amount',
'',
null,
null,
'', 0,
'',
'projectid');
668 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
670 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration', $projectstatic->price_registration, $projectstatic, 0,
'amount',
'',
null,
null,
'', 0,
'',
'projectid');
673 print
'<tr><td class="titlefield">';
674 print $form->editfieldkey($form->textwithpicto($langs->trans(
'MaxNbOfAttendees'),
''),
'max_attendees',
'', $projectstatic, $permissiontoadd,
'integer:3',
'&withproject=1', 0, 0,
'projectid');
675 print
'</td><td class="valuefield">';
676 print $form->editfieldval($form->textwithpicto($langs->trans(
'MaxNbOfAttendees'),
''),
'max_attendees', $projectstatic->max_attendees, $projectstatic, $permissiontoadd,
'integer:3',
'',
null,
null,
'&withproject=1', 0,
'',
'projectid');
680 print
'<tr><td class="titlefield valignmiddle">'.$langs->trans(
"EventOrganizationICSLinkProject").
'</td><td class="valuefield">';
683 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
686 $message =
'<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.
'/public/agenda/agendaexport.php?format=ical'.(
$conf->entity > 1 ?
"&entity=".$conf->entity :
"");
687 $message .=
'&exportkey='.urlencode(
getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY',
'...'));
688 $message .=
"&project=".$projectid.
'&module='.urlencode(
'project@eventorganization').
'&output=file">'.$langs->trans(
'DownloadICSLink').img_picto(
'',
'download',
'class="paddingleft"').
'</a>';
692 print
'<tr><td class="valignmiddle">'.$langs->trans(
"EventOrganizationICSLink").
'</td><td>';
695 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
698 $message =
'<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.
'/public/agenda/agendaexport.php?format=ical'.(
$conf->entity > 1 ?
"&entity=".$conf->entity :
"");
699 $message .=
'&exportkey='.(getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY') ? urlencode(
getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY')) :
'...');
700 $message .=
"&project=".$projectstatic->id.
'&module='.urlencode(
'conforbooth@eventorganization').
'&status='.ConferenceOrBooth::STATUS_CONFIRMED.
'&output=file">'.$langs->trans(
'DownloadICSLink').img_picto(
'',
'download',
'class="paddingleft"').
'</a>';
707 print $form->textwithpicto($langs->trans(
"SuggestOrVoteForConfOrBooth"), $langs->trans(
"EvntOrgRegistrationHelpMessage"));
709 print
'</td><td class="valuefield nowrap">';
711 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
712 $linksuggest .=
'&securekey='.urlencode($encodedsecurekey);
715 print
'<div class="tdoverflowmax150 inline-block valignmiddle"><a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.
'" class="quatrevingtpercent">'.$linksuggest.
'</a></div>';
716 print
'<a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.
'">'.
img_picto(
'',
'globe').
'</a>';
724 print $langs->trans(
"PublicAttendeeSubscriptionGlobalPage");
727 $link_subscription =
$dolibarr_main_url_root.
'/public/eventorganization/attendee_new.php?id='.$projectstatic->id.
'&type=global';
728 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
729 $link_subscription .=
'&securekey='.urlencode($encodedsecurekey);
732 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$link_subscription.
'" class="quatrevingtpercent">'.$link_subscription.
'</a></div>';
733 print
'<a target="_blank" rel="noopener noreferrer" href="'.$link_subscription.
'">'.
img_picto(
'',
'globe').
'</a>';
743 print
'<div class="clearboth"></div>';
747 if (empty($confOrBooth->id)) {
750 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1,
'', 0,
'',
'reposition');
754 if ($confOrBooth->id > 0) {
762 dol_banner_tab($object,
'ref',
'', 0);
764 print
'<div class="fichecenter">';
765 print
'<div class="fichehalfleft">';
766 print
'<div class="underbanner clearboth"></div>';
767 print
'<table class="border centpercent tableforfield">' .
"\n";
769 include DOL_DOCUMENT_ROOT .
'/core/tpl/commonfields_view.tpl.php';
772 include DOL_DOCUMENT_ROOT .
'/core/tpl/extrafields_view.tpl.php';
778 print
'<div class="clearboth"></div>';
784$arrayofselected = is_array($toselect) ? $toselect : array();
788 $param .=
'&mode='.urlencode($mode);
790if (!empty($contextpage) && $contextpage != $_SERVER[
"PHP_SELF"]) {
791 $param .=
'&contextpage='.urlencode($contextpage);
793if ($limit > 0 && $limit !=
$conf->liste_limit) {
794 $param .=
'&limit='.((int) $limit);
796if ($optioncss !=
'') {
797 $param .=
'&optioncss='.urlencode($optioncss);
799if ($confOrBooth->id > 0) {
800 $param .=
'&conforboothid='.urlencode((
string) $confOrBooth->id);
802if ($projectstatic->id > 0) {
803 $param .=
'&fk_project='.urlencode((
string) ($projectstatic->id));
805foreach ($search as $key => $val) {
806 if (is_array($search[$key])) {
807 foreach ($search[$key] as $skey) {
809 $param .=
'&search_'.$key.
'[]='.urlencode($skey);
812 } elseif (preg_match(
'/(_dtstart|_dtend)$/', $key) && !empty($val)) {
813 $param .=
'&search_'.$key.
'month='.(
GETPOSTINT(
'search_'.$key.
'month'));
814 $param .=
'&search_'.$key.
'day='.(
GETPOSTINT(
'search_'.$key.
'day'));
815 $param .=
'&search_'.$key.
'year='.(
GETPOSTINT(
'search_'.$key.
'year'));
816 } elseif ($search[$key] !=
'') {
817 $param .=
'&search_'.$key.
'='.urlencode($search[$key]);
820$param .= $withProjectUrl;
823include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
825$parameters = array(
'param' => &$param);
826$reshook = $hookmanager->executeHooks(
'printFieldListSearchParam', $parameters, $object, $action);
827$param .= $hookmanager->resPrint;
830$arrayofmassactions = array(
834 'presend' =>
img_picto(
'',
'email',
'class="pictofixedwidth"').$langs->trans(
"SendByMail"),
836if (!empty($permissiontodelete)) {
837 $arrayofmassactions[
'predelete'] =
img_picto(
'',
'delete',
'class="pictofixedwidth"').$langs->trans(
"Delete");
839if (
GETPOSTINT(
'nomassaction') || in_array($massaction, array(
'presend',
'predelete'))) {
840 $arrayofmassactions = array();
842$massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
844print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].(!empty($conf_or_booth_id) ?
'?conforboothid='.$conf_or_booth_id :
'').
'">'.
"\n";
845if ($optioncss !=
'') {
846 print
'<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
848print
'<input type="hidden" name="token" value="'.newToken().
'">';
849print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
850print
'<input type="hidden" name="action" value="list">';
851print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
852print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
853print
'<input type="hidden" name="page" value="'.$page.
'">';
854print
'<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
855print
'<input type="hidden" name="withproject" value="'.$withproject.
'">';
856print
'<input type="hidden" name="fk_project" value="'.$fk_project.
'">';
857print
'<input type="hidden" name="page_y" value="">';
858print
'<input type="hidden" name="mode" value="'.$mode.
'">';
860$params = array(
'morecss' =>
'reposition');
862$urlnew = DOL_URL_ROOT.
'/eventorganization/conferenceorboothattendee_card.php?action=create'.(!empty($confOrBooth->id) ?
'&conforboothid='.$confOrBooth->id :
'').(!empty($projectstatic->id) ?
'&fk_project='.$projectstatic->id :
'').($withProjectUrl ? $withProjectUrl :
'&withproject=0').
'&backtopage='.urlencode($_SERVER[
'PHP_SELF'].
'?projectid='.$projectstatic->id.(empty($confOrBooth->id) ?
'' :
'&conforboothid='.$confOrBooth->id).$withProjectUrl);
865$newcardbutton .=
dolGetButtonTitle($langs->trans(
'New'),
'',
'fa fa-plus-circle', $urlnew,
'', $permissiontoadd, $params);
867print_barre_liste($subtitle, $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
$object->picto, 0, $newcardbutton,
'', $limit, 0, 0, 1);
871$topicmail = $projectstatic->title;
872$modelmail =
"conferenceorbooth";
874$trackid =
'conferenceorbooth_'.$object->id;
875$withmaindocfilemail = 0;
876include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
881 foreach ($fieldstosearchall as $key => $val) {
882 $fieldstosearchall[$key] = $langs->trans($val);
883 $setupstring .= $key.
"=".$val.
";";
885 print
'<!-- Search done like if CONFERENCEORBOOTHATTENDEE_QUICKSEARCH_ON_FIELDS = '.$setupstring.
' -->'.
"\n";
886 print
'<div class="divsearchfieldfilter">'.$langs->trans(
"FilterOnInto", $search_all).implode(
', ', $fieldstosearchall).
'</div>';
894$parameters = array();
895$reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $object, $action);
896if (empty($reshook)) {
897 $moreforfilter .= $hookmanager->resPrint;
899 $moreforfilter = $hookmanager->resPrint;
902if (!empty($moreforfilter)) {
903 print
'<div class="liste_titre liste_titre_bydiv centpercent">';
904 print $moreforfilter;
908$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
909$htmlofselectarray = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
$conf->main_checkbox_left_column);
910$selectedfields = ($mode !=
'kanban' ? $htmlofselectarray :
'');
911$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons(
'checkforselect', 1) :
'');
914print
'<div class="div-table-responsive">';
915print
'<table class="tagtable nobottomiftotal liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">'.
"\n";
920print
'<tr class="liste_titre_filter">';
922if (
$conf->main_checkbox_left_column) {
923 print
'<td class="liste_titre center maxwidthsearch">';
924 $searchpicto = $form->showFilterButtons(
'left');
928foreach (
$object->fields as $key => $val) {
929 $searchkey = empty($search[$key]) ?
'' : $search[$key];
930 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
931 if ($key ==
'status') {
932 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
933 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
934 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
935 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
936 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
937 } 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'])) {
938 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
940 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
941 print
'<td class="liste_titre'.($cssforfield ?
' '.$cssforfield :
'').($key ==
'status' ?
' parentonrightofpage' :
'').
'">';
942 if (!empty($val[
'arrayofkeyval']) && is_array($val[
'arrayofkeyval'])) {
943 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);
944 } elseif ((strpos($val[
'type'],
'integer:') === 0) || (strpos($val[
'type'],
'sellist:') === 0)) {
945 print
$object->showInputField($val, $key, (isset($search[$key]) ? $search[$key] :
''),
'',
'',
'search_', $cssforfield.
' maxwidth250', 1);
946 } elseif (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
947 print
'<div class="nowrap">';
948 print $form->selectDate($search[$key.
'_dtstart'] ? $search[$key.
'_dtstart'] :
'',
"search_".$key.
"_dtstart", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'From'));
950 print
'<div class="nowrap">';
951 print $form->selectDate($search[$key.
'_dtend'] ? $search[$key.
'_dtend'] :
'',
"search_".$key.
"_dtend", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'to'));
953 } elseif ($key ==
'lang') {
954 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formadmin.class.php';
956 print $formadmin->select_language($search[$key],
'search_lang', 0, array(), 1, 0, 0,
'minwidth100imp maxwidth125', 2);
958 print
'<input type="text" class="flat maxwidth'.($val[
'type'] ==
'integer' ?
'50' :
'75').
'" name="search_'.$key.
'" value="'.
dol_escape_htmltag(isset($search[$key]) ? $search[$key] :
'').
'">';
964include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_input.tpl.php';
967$parameters = array(
'arrayfields' => $arrayfields);
968$reshook = $hookmanager->executeHooks(
'printFieldListOption', $parameters, $object, $action);
969print $hookmanager->resPrint;
971if (!
$conf->main_checkbox_left_column) {
972 print
'<td class="liste_titre center maxwidthsearch">';
973 $searchpicto = $form->showFilterButtons();
984print
'<tr class="liste_titre">';
986if (
$conf->main_checkbox_left_column) {
987 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
990foreach (
$object->fields as $key => $val) {
991 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
992 if ($key ==
'status') {
993 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
994 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
995 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
996 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
997 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
998 } 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'])) {
999 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
1001 $cssforfield = preg_replace(
'/small\s*/',
'', $cssforfield);
1002 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
1003 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";
1008include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
1010$parameters = array(
'arrayfields' => $arrayfields,
'param' => $param,
'sortfield' => $sortfield,
'sortorder' => $sortorder,
'totalarray' => &$totalarray);
1011$reshook = $hookmanager->executeHooks(
'printFieldListTitle', $parameters, $object, $action);
1012print $hookmanager->resPrint;
1014if (!
$conf->main_checkbox_left_column) {
1015 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
1022$needToFetchEachLine = 0;
1023if (isset($extrafields->attributes[
$object->table_element][
'computed']) && is_array($extrafields->attributes[
$object->table_element][
'computed']) && count($extrafields->attributes[
$object->table_element][
'computed']) > 0) {
1024 foreach ($extrafields->attributes[
$object->table_element][
'computed'] as $key => $val) {
1025 if (!is_null($val) && preg_match(
'/\$object/', $val)) {
1026 $needToFetchEachLine++;
1038$imaxinloop = ($limit ? min($num, $limit) : $num);
1039while ($i < $imaxinloop) {
1040 $obj =
$db->fetch_object($resql);
1046 $object->setVarsFromFetchObj($obj);
1048 if ($mode ==
'kanban') {
1050 print
'<tr class="trkanban"><td colspan="'.$savnbfield.
'">';
1051 print
'<div class="box-flex-container kanban">';
1055 if ($massactionbutton || $massaction) {
1057 if (in_array(
$object->id, $arrayofselected)) {
1061 print
$object->getKanbanView(
'', array(
'selected' => $selected));
1062 if ($i == ($imaxinloop - 1)) {
1069 print
'<tr data-rowid="'.$object->id.
'" class="oddeven">';
1071 if (
$conf->main_checkbox_left_column) {
1072 print
'<td class="nowrap center">';
1073 if ($massactionbutton || $massaction) {
1075 if (in_array(
$object->id, $arrayofselected)) {
1078 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.
$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
1085 foreach (
$object->fields as $key => $val) {
1086 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
1087 if (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
1088 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
1089 } elseif ($key ==
'status') {
1090 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
1093 if (in_array($val[
'type'], array(
'timestamp'))) {
1094 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowraponall';
1095 } elseif ($key ==
'ref') {
1096 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowraponall';
1099 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'])) {
1100 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
1104 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
1105 print
'<td'.($cssforfield ?
' class="'.$cssforfield.(preg_match(
'/tdoverflow/', $cssforfield) ?
' classfortooltip' :
'').
'"' :
'');
1106 if (preg_match(
'/tdoverflow/', $cssforfield) && !is_numeric(
$object->$key)) {
1107 print
' title="'.dol_escape_htmltag((
string)
$object->$key).
'"';
1110 if ($key ==
'status') {
1111 print
$object->getLibStatut(5);
1112 } elseif ($key ==
'ref') {
1113 $optionLink = (!empty($withproject) ?
'conforboothidproject' :
'conforboothid');
1114 if (empty($confOrBooth->id)) {
1115 $optionLink =
'projectid';
1117 print
$object->getNomUrl(1, $optionLink);
1119 print
$object->showOutputField($val, $key, (
string)
$object->$key,
'');
1125 if (!empty($val[
'isameasure']) && $val[
'isameasure'] == 1) {
1129 if (!isset($totalarray[
'val'])) {
1132 if (!isset($totalarray[
'val'][
't.'.$key])) {
1140 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
1142 $parameters = array(
'arrayfields' => $arrayfields,
'object' => $object,
'obj' => $obj,
'i' => $i,
'totalarray' => &$totalarray);
1143 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters, $object, $action);
1144 print $hookmanager->resPrint;
1146 if (!
$conf->main_checkbox_left_column) {
1147 print
'<td class="nowrap center">';
1148 if ($massactionbutton || $massaction) {
1150 if (in_array(
$object->id, $arrayofselected)) {
1153 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.
$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
1168include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
1173 foreach ($arrayfields as $key => $val) {
1174 if (!empty($val[
'checked'])) {
1178 print
'<tr><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</span></td></tr>';
1184$parameters = array(
'arrayfields' => $arrayfields,
'sql' => $sql);
1185$reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $object, $action);
1186print $hookmanager->resPrint;
1188print
'</table>'.
"\n";
1191print
'</form>'.
"\n";
1193if (in_array(
'builddoc', array_keys($arrayofmassactions)) && ($nbtotalofrecords ===
'' || $nbtotalofrecords)) {
1194 $hidegeneratedfilelistifempty = 1;
1195 if ($massaction ==
'builddoc' || $action ==
'remove_file' || $show_files) {
1196 $hidegeneratedfilelistifempty = 0;
1199 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
1203 $urlsource = $_SERVER[
'PHP_SELF'].
'?sortfield='.$sortfield.
'&sortorder='.$sortorder;
1204 $urlsource .= str_replace(
'&',
'&', $param);
1206 $filedir = $diroutputmassaction;
1207 $genallowed = $permissiontoread;
1208 $delallowed = $permissiontoadd;
1210 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.
Class to manage third parties objects (customers, suppliers, prospects...)
societe_prepare_head(Societe $object, $subtabs='')
Return array of tabs to used on pages for third parties cards.
conferenceorboothThirdpartyPrepareHead($object)
Prepare array of tabs for ConferenceOrBooth Thirdparty tab.
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...
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...
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0, $nodefault=0)
Return value of a param into GET or POST supervariable.
GETPOSTINT($paramname, $method=0, $nodefault=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_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).
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.
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.
showValueWithClipboardCPButton($valuetocopy, $showonlyonhover=1, $texttoshow='')
Create a button to copy $valuetocopy in the clipboard (for copy and paste feature).
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.
dolPrintHTML($s, $allowiframe=0, $moreallowedtags=array())
Return a string (that can be on several lines) ready to be output on a HTML page.
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.
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.
getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $disablesortlink=0, $tooltip='', $forcenowrapcolumntitle=0)
Get title line of an array.
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
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...
print $langs trans("Show") . '< td style="' . $timeColor . '" align="center"> s</td > badge status0 badge status4 badge status3 Error badge status8< td align="center">< span class="badge ' . $badge . '"></span ></td >< td align="center">< a href="#" class="button button-small" onclick="openLogModal(this)" data-req="' . dol_escape_htmltag($reqSafe) . '" data-res="' . dol_escape_htmltag($resSafe) . '" data-err="' . dol_escape_htmltag($errSafe) . '">< span class="fa fa-search-plus"></span ></a ></td ></tr >< tr >< td colspan="' . $colspan . '" class="opacitymedium"></td ></tr ></table ></div ></form > logModal none logModal none s a JSON string
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.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.
dol_hash($chain, $type='0', $nosalt=0, $mode=0)
Returns a hash (non reversible encryption) of a string.