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';
164$permissiontoread = $user->hasRight(
'project',
'read');
165$permissiontoadd = $user->hasRight(
'project',
'write');
166$permissiontodelete = $user->hasRight(
'project',
'delete');
173if ($user->socid > 0) {
185if (preg_match(
'/^set/', $action) && ($projectid > 0 || $projectref) && $user->hasRight(
'project',
'write')) {
187 $project_attr = preg_replace(
'/^set/',
'', $action);
188 if (array_key_exists($project_attr, $project->fields)) {
189 $result = $project->fetch($projectid, $projectref);
193 $projectid = $project->id;
194 $project->{$project_attr} =
GETPOST($project_attr);
195 $result = $project->update($user);
203if (
GETPOST(
'cancel',
'alpha')) {
207if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') {
211$parameters = array();
212$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
217if (empty($reshook)) {
219 include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
222 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
223 foreach (
$object->fields as $key => $val) {
225 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
226 $search[$key.
'_dtstart'] =
'';
227 $search[$key.
'_dtend'] =
'';
231 $search_array_options = array();
233 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')
234 ||
GETPOST(
'button_search_x',
'alpha') ||
GETPOST(
'button_search.x',
'alpha') ||
GETPOST(
'button_search',
'alpha')) {
239 $objectclass =
'ConferenceOrBoothAttendee';
240 $objectlabel =
'ConferenceOrBoothAttendee';
241 $uploaddir =
$conf->eventorganization->dir_output;
242 include DOL_DOCUMENT_ROOT.
'/eventorganization/core/actions_massactions_mail.inc.php';
243 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
255$help_url =
"EN:Module_Event_Organization";
258if ($conf_or_booth_id > 0) {
259 $result = $confOrBooth->fetch($conf_or_booth_id);
263 $fk_project = $confOrBooth->fk_project;
266$title = $langs->trans(
'Attendees');
270if ($fk_project > 0) {
271 $result = $projectstatic->fetch($fk_project);
276 $title = $projectstatic->ref .
' ' . $projectstatic->name .
' - ' . $title;
287$sql .=
$object->getFieldList(
't');
289if (!empty($extrafields->attributes[
$object->table_element][
'label'])) {
290 foreach ($extrafields->attributes[
$object->table_element][
'label'] as $key => $val) {
291 $sql .= ($extrafields->attributes[
$object->table_element][
'type'][$key] !=
'separate' ?
", ef.".$key.
" as options_".$key :
'');
295$parameters = array();
296$reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object, $action);
297$sql .= $hookmanager->resPrint;
298$sql = preg_replace(
'/,\s*$/',
'', $sql);
303$sql .=
" FROM ".MAIN_DB_PREFIX.$object->table_element.
" as t";
304if (!empty($confOrBooth->id)) {
305 $sql .=
" INNER JOIN ".MAIN_DB_PREFIX.
"actioncomm as a on a.id=t.fk_actioncomm AND a.id=".((int) $confOrBooth->id);
307if (isset($extrafields->attributes[
$object->table_element][
'label']) && is_array($extrafields->attributes[
$object->table_element][
'label']) && count($extrafields->attributes[
$object->table_element][
'label'])) {
308 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element.
"_extrafields as ef on (t.rowid = ef.fk_object)";
311$parameters = array();
312$reshook = $hookmanager->executeHooks(
'printFieldListFrom', $parameters, $object, $action);
313$sql .= $hookmanager->resPrint;
314if (
$object->ismultientitymanaged == 1) {
315 $sql .=
" WHERE t.entity IN (".getEntity(
$object->element).
")";
317 $sql .=
" WHERE 1 = 1";
319if (!empty($projectstatic->id)) {
320 $sql .=
" AND t.fk_project = ".((int) $projectstatic->id);
322if (!empty($thirdpartyid)) {
323 $sql .=
" AND t.fk_soc = ".((int) $thirdpartyid);
325foreach ($search as $key => $val) {
326 if (array_key_exists($key,
$object->fields)) {
327 if ($key ==
'status' && $search[$key] == -1) {
331 if ((strpos(
$object->fields[$key][
'type'],
'integer:') === 0) || (strpos(
$object->fields[$key][
'type'],
'sellist:') === 0) || !empty(
$object->fields[$key][
'arrayofkeyval'])) {
332 if ($search[$key] ==
'-1' || ($search[$key] ===
'0' && (empty(
$object->fields[$key][
'arrayofkeyval']) || !array_key_exists(
'0',
$object->fields[$key][
'arrayofkeyval'])))) {
337 if ($search[$key] !=
'') {
338 $sql .=
natural_search(
$db->sanitize($key), $search[$key], (($key ==
'status') ? 2 : $mode_search));
341 if (preg_match(
'/(_dtstart|_dtend)$/', $key) && $search[$key] !=
'') {
342 $columnName = preg_replace(
'/(_dtstart|_dtend)$/',
'', $key);
343 if (preg_match(
'/^(date|timestamp|datetime)/',
$object->fields[$columnName][
'type'])) {
344 if (preg_match(
'/_dtstart$/', $key)) {
345 $sql .=
" AND t.".$db->escape($columnName).
" >= '".
$db->idate($search[$key]).
"'";
347 if (preg_match(
'/_dtend$/', $key)) {
348 $sql .=
" AND t.".$db->escape($columnName).
" <= '".
$db->idate($search[$key]).
"'";
355 $sql .=
natural_search(array_keys($fieldstosearchall), $search_all);
359include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
361$parameters = array();
362$reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object, $action);
363$sql .= $hookmanager->resPrint;
366$nbtotalofrecords =
'';
369 $sqlforcount = preg_replace(
'/^'.preg_quote($sqlfields,
'/').
'/',
'SELECT COUNT(*) as nbtotalofrecords', $sql);
370 $sqlforcount = preg_replace(
'/GROUP BY .*$/',
'', $sqlforcount);
371 $resql =
$db->query($sqlforcount);
373 $objforcount =
$db->fetch_object($resql);
374 $nbtotalofrecords = $objforcount->nbtotalofrecords;
379 if (($page * $limit) > (
int) $nbtotalofrecords) {
387$sql .=
$db->order($sortfield, $sortorder);
389 $sql .=
$db->plimit($limit + 1, $offset);
392$resql =
$db->query($sql);
398$num =
$db->num_rows($resql);
401if ($num == 1 &&
getDolGlobalInt(
'MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && $search_all && !$page) {
402 $obj =
$db->fetch_object($resql);
404 header(
"Location: ".DOL_URL_ROOT.
'/eventorganization/conferenceorboothattendee_card.php?id='.((
int) $id));
411llxHeader(
'', $title, $help_url,
'', 0, 0, $morejs, $morecss,
'',
'mod-eventorganization page-attendee-list classforhorizontalscrolloftabs');
414if (($thirdpartyid > 0 && $user->hasRight(
'societe',
'lire')) || $confOrBooth > 0) {
415 $withThirdpartyUrl =
'';
417 if (!empty($withthirdparty)) {
419 $tab =
'eventorganisation';
420 $withThirdpartyUrl =
"&withthirdparty=1";
423 $res = $socstat->fetch($thirdpartyid);
430 print
dol_get_fiche_head($head,
'eventorganization', $langs->trans(
"ThirdParty"), -1,
'company');
432 dol_banner_tab($socstat,
'socid',
'', ($user->socid ? 0 : 1),
'rowid',
'nom');
434 print
'<div class="fichecenter">';
436 print
'<div class="underbanner clearboth"></div>';
437 print
'<table class="border centpercent tableforfield">';
440 print
'<tr><td class="titlefield">'.$langs->trans(
'NatureOfThirdParty').
'</td><td>';
441 print $socstat->getTypeUrl(1);
445 if ($socstat->client && !empty($socstat->code_client)) {
446 print
'<tr><td class="titlefield">';
447 print $langs->trans(
'CustomerCode').
'</td><td>';
449 $tmpcheck = $socstat->check_codeclient();
450 if ($tmpcheck != 0 && $tmpcheck != -5) {
451 print
' <span class="error">('.$langs->trans(
"WrongCustomerCode").
')</span>';
457 if ($socstat->fournisseur && !empty($socstat->code_fournisseur)) {
458 print
'<tr><td class="titlefield">';
459 print $langs->trans(
'SupplierCode').
'</td><td>';
461 $tmpcheck = $socstat->check_codefournisseur();
462 if ($tmpcheck != 0 && $tmpcheck != -5) {
463 print
' <span class="error">('.$langs->trans(
"WrongSupplierCode").
')</span>';
473 if (empty($confOrBooth->id)) {
476 print
dol_get_fiche_head($head, $tab, $langs->trans(
"ThirdParty"), -1,
'company', 0,
'',
'reposition');
482if ($projectstatic->id > 0 || $confOrBooth > 0) {
483 if (
getDolGlobalString(
'PROJECT_ALLOW_COMMENT_ON_PROJECT') && method_exists($projectstatic,
'fetchComments') && empty($projectstatic->comments)) {
484 $projectstatic->fetchComments();
486 if (!empty($projectstatic->socid)) {
487 $projectstatic->fetch_thirdparty();
490 $withProjectUrl =
'';
491 $object->project = clone $projectstatic;
493 if (!empty($withproject)) {
495 $tab =
'eventorganisation';
496 $withProjectUrl =
"&withproject=1";
499 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1, ($projectstatic->public ?
'projectpub' :
'project'), 0,
'',
'');
501 $param = ($mode ==
'mine' ?
'&mode=mine' :
'');
505 $linkback =
'<a href="'.DOL_URL_ROOT.
'/projet/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
507 $morehtmlref =
'<div class="refidno">';
509 $morehtmlref .= $projectstatic->title;
511 if (!empty($projectstatic->thirdparty->id) && $projectstatic->thirdparty->id > 0) {
512 $morehtmlref .=
'<br>'.$projectstatic->thirdparty->getNomUrl(1,
'project');
514 $morehtmlref .=
'</div>';
517 if (!$user->hasRight(
'projet',
'all',
'lire')) {
518 $objectsListId = $projectstatic->getProjectsAuthorizedForUser($user, 0, 0);
519 $projectstatic->next_prev_filter =
"rowid:IN:".$db->sanitize(count($objectsListId) ? implode(
',', array_keys($objectsListId)) :
'0');
522 dol_banner_tab($projectstatic,
'project_ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
524 print
'<div class="fichecenter">';
525 print
'<div class="fichehalfleft">';
526 print
'<div class="underbanner clearboth"></div>';
528 print
'<table class="border tableforfield centpercent">';
532 print
'<tr><td class="tdtop">';
533 print $langs->trans(
"Usage");
537 print
'<input type="checkbox" disabled name="usage_opportunity"'.(GETPOSTISSET(
'usage_opportunity') ? (
GETPOST(
'usage_opportunity',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_opportunity ?
' checked="checked"' :
'')).
'"> ';
538 $htmltext = $langs->trans(
"ProjectFollowOpportunity");
539 print $form->textwithpicto($langs->trans(
"ProjectFollowOpportunity"), $htmltext);
543 print
'<input type="checkbox" disabled name="usage_task"'.(GETPOSTISSET(
'usage_task') ? (
GETPOST(
'usage_task',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_task ?
' checked="checked"' :
'')).
'"> ';
544 $htmltext = $langs->trans(
"ProjectFollowTasks");
545 print $form->textwithpicto($langs->trans(
"ProjectFollowTasks"), $htmltext);
549 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"' :
'')).
'"> ';
550 $htmltext = $langs->trans(
"ProjectBillTimeDescription");
551 print $form->textwithpicto($langs->trans(
"BillTime"), $htmltext);
555 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"' :
'')).
'"> ';
556 $htmltext = $langs->trans(
"EventOrganizationDescriptionLong");
557 print $form->textwithpicto($langs->trans(
"ManageOrganizeEvent"), $htmltext);
563 print
'<tr><td>'.$langs->trans(
"Budget").
'</td><td>';
564 if (strcmp($projectstatic->budget_amount,
'')) {
565 print
'<span class="amount">'.price($projectstatic->budget_amount, 0, $langs, 1, 0, 0,
$conf->currency).
'</span>';
570 print
'<tr><td>'.$langs->trans(
"Dates").
' ('.$langs->trans(
"Project").
')</td><td>';
572 print($start ? $start :
'?');
575 print($end ? $end :
'?');
576 if ($projectstatic->hasDelay()) {
582 print
'<tr><td>'.$langs->trans(
"Dates").
' ('.$langs->trans(
"Event").
')</td><td>';
584 print($start ? $start :
'?');
587 print($end ? $end :
'?');
588 if ($projectstatic->hasDelay()) {
594 print
'<tr><td class="titlefield">'.$langs->trans(
"Visibility").
'</td><td>';
595 if ($projectstatic->public == 0) {
596 print
img_picto($langs->trans(
'PrivateProject'),
'private',
'class="paddingrightonly"');
597 print $langs->trans(
"PrivateProject");
599 print
img_picto($langs->trans(
'SharedProject'),
'world',
'class="paddingrightonly"');
600 print $langs->trans(
"SharedProject");
605 print
'<tr><td>'.$langs->trans(
"Location").
'</td><td>';
613 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
620 print
'<div class="fichehalfright">';
621 print
'<div class="underbanner clearboth"></div>';
623 print
'<table class="border tableforfield centpercent">';
627 print
'<tr><td class="valignmiddle">'.$langs->trans(
"Categories").
'</td><td>';
628 print $form->showCategories($projectstatic->id, Categorie::TYPE_PROJECT, 1);
633 print
'<tr><td class="titlefield'.($projectstatic->description ?
' noborderbottom' :
'').
'" colspan="2">'.$langs->trans(
"Description").
'</td></tr>';
634 if ($projectstatic->description) {
635 print
'<tr><td class="nottitleforfield" colspan="2">';
636 print
'<div class="longmessagecut">';
642 print
'<tr><td class="nowrap">';
643 $typeofdata =
'checkbox:'.($projectstatic->accept_conference_suggestions ?
' checked="checked"' :
'');
644 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestConfHelp");
645 print $form->editfieldkey(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions', $projectstatic->accept_conference_suggestions ?
'1' :
'0', $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
647 print $form->editfieldval(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions', $projectstatic->accept_conference_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', null, null,
'', 0,
'',
'projectid');
651 $typeofdata =
'checkbox:'.($projectstatic->accept_booth_suggestions ?
' checked="checked"' :
'');
652 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestBoothHelp");
653 print $form->editfieldkey(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions', $projectstatic->accept_booth_suggestions ?
'1' :
'0', $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
655 print $form->editfieldval(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions', $projectstatic->accept_booth_suggestions ? 1 : 0, $projectstatic, 0, $typeofdata,
'', null, null,
'', 0,
'',
'projectid');
659 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
661 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth', $projectstatic->price_booth, $projectstatic, 0,
'amount',
'',
null,
null,
'', 0,
'',
'projectid');
665 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
667 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration', $projectstatic->price_registration, $projectstatic, 0,
'amount',
'',
null,
null,
'', 0,
'',
'projectid');
670 print
'<tr><td class="titlefield">';
671 print $form->editfieldkey($form->textwithpicto($langs->trans(
'MaxNbOfAttendees'),
''),
'max_attendees',
'', $projectstatic, $permissiontoadd,
'integer:3',
'&withproject=1', 0, 0,
'projectid');
672 print
'</td><td class="valuefield">';
673 print $form->editfieldval($form->textwithpicto($langs->trans(
'MaxNbOfAttendees'),
''),
'max_attendees', $projectstatic->max_attendees, $projectstatic, $permissiontoadd,
'integer:3',
'',
null,
null,
'&withproject=1', 0,
'',
'projectid');
677 print
'<tr><td class="titlefield valignmiddle">'.$langs->trans(
"EventOrganizationICSLinkProject").
'</td><td class="valuefield">';
680 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
683 $message =
'<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.
'/public/agenda/agendaexport.php?format=ical'.(
$conf->entity > 1 ?
"&entity=".$conf->entity :
"");
684 $message .=
'&exportkey='.urlencode(
getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY',
'...'));
685 $message .=
"&project=".$projectid.
'&module='.urlencode(
'project@eventorganization').
'&output=file">'.$langs->trans(
'DownloadICSLink').img_picto(
'',
'download',
'class="paddingleft"').
'</a>';
689 print
'<tr><td class="valignmiddle">'.$langs->trans(
"EventOrganizationICSLink").
'</td><td>';
692 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
695 $message =
'<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.
'/public/agenda/agendaexport.php?format=ical'.(
$conf->entity > 1 ?
"&entity=".$conf->entity :
"");
696 $message .=
'&exportkey='.(getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY') ? urlencode(
getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY')) :
'...');
697 $message .=
"&project=".$projectstatic->id.
'&module='.urlencode(
'conforbooth@eventorganization').
'&status='.ConferenceOrBooth::STATUS_CONFIRMED.
'&output=file">'.$langs->trans(
'DownloadICSLink').img_picto(
'',
'download',
'class="paddingleft"').
'</a>';
704 print $form->textwithpicto($langs->trans(
"SuggestOrVoteForConfOrBooth"), $langs->trans(
"EvntOrgRegistrationHelpMessage"));
706 print
'</td><td class="valuefield nowrap">';
708 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
709 $linksuggest .=
'&securekey='.urlencode($encodedsecurekey);
712 print
'<div class="tdoverflowmax150 inline-block valignmiddle"><a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.
'" class="quatrevingtpercent">'.$linksuggest.
'</a></div>';
713 print
'<a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.
'">'.
img_picto(
'',
'globe').
'</a>';
721 print $langs->trans(
"PublicAttendeeSubscriptionGlobalPage");
724 $link_subscription =
$dolibarr_main_url_root.
'/public/eventorganization/attendee_new.php?id='.$projectstatic->id.
'&type=global';
725 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
726 $link_subscription .=
'&securekey='.urlencode($encodedsecurekey);
729 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$link_subscription.
'" class="quatrevingtpercent">'.$link_subscription.
'</a></div>';
730 print
'<a target="_blank" rel="noopener noreferrer" href="'.$link_subscription.
'">'.
img_picto(
'',
'globe').
'</a>';
740 print
'<div class="clearboth"></div>';
744 if (empty($confOrBooth->id)) {
747 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1,
'', 0,
'',
'reposition');
751 if ($confOrBooth->id > 0) {
759 dol_banner_tab($object,
'ref',
'', 0);
761 print
'<div class="fichecenter">';
762 print
'<div class="fichehalfleft">';
763 print
'<div class="underbanner clearboth"></div>';
764 print
'<table class="border centpercent tableforfield">' .
"\n";
766 include DOL_DOCUMENT_ROOT .
'/core/tpl/commonfields_view.tpl.php';
769 include DOL_DOCUMENT_ROOT .
'/core/tpl/extrafields_view.tpl.php';
775 print
'<div class="clearboth"></div>';
781$arrayofselected = is_array($toselect) ? $toselect : array();
785 $param .=
'&mode='.urlencode($mode);
787if (!empty($contextpage) && $contextpage != $_SERVER[
"PHP_SELF"]) {
788 $param .=
'&contextpage='.urlencode($contextpage);
790if ($limit > 0 && $limit !=
$conf->liste_limit) {
791 $param .=
'&limit='.((int) $limit);
793if ($optioncss !=
'') {
794 $param .=
'&optioncss='.urlencode($optioncss);
796if ($confOrBooth->id > 0) {
797 $param .=
'&conforboothid='.urlencode((
string) $confOrBooth->id);
799if ($projectstatic->id > 0) {
800 $param .=
'&fk_project='.urlencode((
string) ($projectstatic->id));
802foreach ($search as $key => $val) {
803 if (is_array($search[$key])) {
804 foreach ($search[$key] as $skey) {
806 $param .=
'&search_'.$key.
'[]='.urlencode($skey);
809 } elseif (preg_match(
'/(_dtstart|_dtend)$/', $key) && !empty($val)) {
810 $param .=
'&search_'.$key.
'month='.(
GETPOSTINT(
'search_'.$key.
'month'));
811 $param .=
'&search_'.$key.
'day='.(
GETPOSTINT(
'search_'.$key.
'day'));
812 $param .=
'&search_'.$key.
'year='.(
GETPOSTINT(
'search_'.$key.
'year'));
813 } elseif ($search[$key] !=
'') {
814 $param .=
'&search_'.$key.
'='.urlencode($search[$key]);
817$param .= $withProjectUrl;
820include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
822$parameters = array(
'param' => &$param);
823$reshook = $hookmanager->executeHooks(
'printFieldListSearchParam', $parameters, $object, $action);
824$param .= $hookmanager->resPrint;
827$arrayofmassactions = array(
831 'presend' =>
img_picto(
'',
'email',
'class="pictofixedwidth"').$langs->trans(
"SendByMail"),
833if (!empty($permissiontodelete)) {
834 $arrayofmassactions[
'predelete'] =
img_picto(
'',
'delete',
'class="pictofixedwidth"').$langs->trans(
"Delete");
836if (
GETPOSTINT(
'nomassaction') || in_array($massaction, array(
'presend',
'predelete'))) {
837 $arrayofmassactions = array();
839$massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
841print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].(!empty($conf_or_booth_id) ?
'?conforboothid='.$conf_or_booth_id :
'').
'">'.
"\n";
842if ($optioncss !=
'') {
843 print
'<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
845print
'<input type="hidden" name="token" value="'.newToken().
'">';
846print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
847print
'<input type="hidden" name="action" value="list">';
848print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
849print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
850print
'<input type="hidden" name="page" value="'.$page.
'">';
851print
'<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
852print
'<input type="hidden" name="withproject" value="'.$withproject.
'">';
853print
'<input type="hidden" name="fk_project" value="'.$fk_project.
'">';
854print
'<input type="hidden" name="page_y" value="">';
855print
'<input type="hidden" name="mode" value="'.$mode.
'">';
857$params = array(
'morecss' =>
'reposition');
859$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);
862$newcardbutton .= dolGetButtonTitle($langs->trans(
'New'),
'',
'fa fa-plus-circle', $urlnew,
'', $permissiontoadd, $params);
864print_barre_liste($subtitle, $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
$object->picto, 0, $newcardbutton,
'', $limit, 0, 0, 1);
868$topicmail = $projectstatic->title;
869$modelmail =
"conferenceorbooth";
871$trackid =
'conferenceorbooth_'.$object->id;
872$withmaindocfilemail = 0;
873include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
878 foreach ($fieldstosearchall as $key => $val) {
879 $fieldstosearchall[$key] = $langs->trans($val);
880 $setupstring .= $key.
"=".$val.
";";
882 print
'<!-- Search done like if CONFERENCEORBOOTHATTENDEE_QUICKSEARCH_ON_FIELDS = '.$setupstring.
' -->'.
"\n";
883 print
'<div class="divsearchfieldfilter">'.$langs->trans(
"FilterOnInto", $search_all).implode(
', ', $fieldstosearchall).
'</div>';
891$parameters = array();
892$reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $object, $action);
893if (empty($reshook)) {
894 $moreforfilter .= $hookmanager->resPrint;
896 $moreforfilter = $hookmanager->resPrint;
899if (!empty($moreforfilter)) {
900 print
'<div class="liste_titre liste_titre_bydiv centpercent">';
901 print $moreforfilter;
905$varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
906$htmlofselectarray = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage,
$conf->main_checkbox_left_column);
907$selectedfields = ($mode !=
'kanban' ? $htmlofselectarray :
'');
908$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons(
'checkforselect', 1) :
'');
911print
'<div class="div-table-responsive">';
912print
'<table class="tagtable nobottomiftotal liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">'.
"\n";
917print
'<tr class="liste_titre_filter">';
919if (
$conf->main_checkbox_left_column) {
920 print
'<td class="liste_titre center maxwidthsearch">';
921 $searchpicto = $form->showFilterButtons(
'left');
925foreach (
$object->fields as $key => $val) {
926 $searchkey = empty($search[$key]) ?
'' : $search[$key];
927 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
928 if ($key ==
'status') {
929 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
930 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
931 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
932 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
933 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
934 } 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'])) {
935 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
937 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
938 print
'<td class="liste_titre'.($cssforfield ?
' '.$cssforfield :
'').($key ==
'status' ?
' parentonrightofpage' :
'').
'">';
939 if (!empty($val[
'arrayofkeyval']) && is_array($val[
'arrayofkeyval'])) {
940 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);
941 } elseif ((strpos($val[
'type'],
'integer:') === 0) || (strpos($val[
'type'],
'sellist:') === 0)) {
942 print
$object->showInputField($val, $key, (isset($search[$key]) ? $search[$key] :
''),
'',
'',
'search_', $cssforfield.
' maxwidth250', 1);
943 } elseif (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
944 print
'<div class="nowrap">';
945 print $form->selectDate($search[$key.
'_dtstart'] ? $search[$key.
'_dtstart'] :
'',
"search_".$key.
"_dtstart", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'From'));
947 print
'<div class="nowrap">';
948 print $form->selectDate($search[$key.
'_dtend'] ? $search[$key.
'_dtend'] :
'',
"search_".$key.
"_dtend", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'to'));
950 } elseif ($key ==
'lang') {
951 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formadmin.class.php';
953 print $formadmin->select_language($search[$key],
'search_lang', 0, array(), 1, 0, 0,
'minwidth100imp maxwidth125', 2);
955 print
'<input type="text" class="flat maxwidth'.($val[
'type'] ==
'integer' ?
'50' :
'75').
'" name="search_'.$key.
'" value="'.
dol_escape_htmltag(isset($search[$key]) ? $search[$key] :
'').
'">';
961include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_input.tpl.php';
964$parameters = array(
'arrayfields' => $arrayfields);
965$reshook = $hookmanager->executeHooks(
'printFieldListOption', $parameters, $object, $action);
966print $hookmanager->resPrint;
968if (!
$conf->main_checkbox_left_column) {
969 print
'<td class="liste_titre center maxwidthsearch">';
970 $searchpicto = $form->showFilterButtons();
981print
'<tr class="liste_titre">';
983if (
$conf->main_checkbox_left_column) {
984 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
987foreach (
$object->fields as $key => $val) {
988 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
989 if ($key ==
'status') {
990 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
991 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
992 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
993 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
994 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
995 } 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'])) {
996 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
998 $cssforfield = preg_replace(
'/small\s*/',
'', $cssforfield);
999 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
1000 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";
1005include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
1007$parameters = array(
'arrayfields' => $arrayfields,
'param' => $param,
'sortfield' => $sortfield,
'sortorder' => $sortorder,
'totalarray' => &$totalarray);
1008$reshook = $hookmanager->executeHooks(
'printFieldListTitle', $parameters, $object, $action);
1009print $hookmanager->resPrint;
1011if (!
$conf->main_checkbox_left_column) {
1012 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
1019$needToFetchEachLine = 0;
1020if (isset($extrafields->attributes[
$object->table_element][
'computed']) && is_array($extrafields->attributes[
$object->table_element][
'computed']) && count($extrafields->attributes[
$object->table_element][
'computed']) > 0) {
1021 foreach ($extrafields->attributes[
$object->table_element][
'computed'] as $key => $val) {
1022 if (!is_null($val) && preg_match(
'/\$object/', $val)) {
1023 $needToFetchEachLine++;
1035$imaxinloop = ($limit ? min($num, $limit) : $num);
1036while ($i < $imaxinloop) {
1037 $obj =
$db->fetch_object($resql);
1043 $object->setVarsFromFetchObj($obj);
1045 if ($mode ==
'kanban') {
1047 print
'<tr class="trkanban"><td colspan="'.$savnbfield.
'">';
1048 print
'<div class="box-flex-container kanban">';
1052 if ($massactionbutton || $massaction) {
1054 if (in_array(
$object->id, $arrayofselected)) {
1058 print
$object->getKanbanView(
'', array(
'selected' => $selected));
1059 if ($i == ($imaxinloop - 1)) {
1066 print
'<tr data-rowid="'.$object->id.
'" class="oddeven">';
1068 if (
$conf->main_checkbox_left_column) {
1069 print
'<td class="nowrap center">';
1070 if ($massactionbutton || $massaction) {
1072 if (in_array(
$object->id, $arrayofselected)) {
1075 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.
$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
1082 foreach (
$object->fields as $key => $val) {
1083 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
1084 if (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
1085 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
1086 } elseif ($key ==
'status') {
1087 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
1090 if (in_array($val[
'type'], array(
'timestamp'))) {
1091 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowraponall';
1092 } elseif ($key ==
'ref') {
1093 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowraponall';
1096 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'])) {
1097 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
1101 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
1102 print
'<td'.($cssforfield ?
' class="'.$cssforfield.(preg_match(
'/tdoverflow/', $cssforfield) ?
' classfortooltip' :
'').
'"' :
'');
1103 if (preg_match(
'/tdoverflow/', $cssforfield) && !is_numeric(
$object->$key)) {
1104 print
' title="'.dol_escape_htmltag((
string)
$object->$key).
'"';
1107 if ($key ==
'status') {
1108 print
$object->getLibStatut(5);
1109 } elseif ($key ==
'ref') {
1110 $optionLink = (!empty($withproject) ?
'conforboothidproject' :
'conforboothid');
1111 if (empty($confOrBooth->id)) {
1112 $optionLink =
'projectid';
1114 print
$object->getNomUrl(1, $optionLink);
1116 print
$object->showOutputField($val, $key, (
string)
$object->$key,
'');
1122 if (!empty($val[
'isameasure']) && $val[
'isameasure'] == 1) {
1126 if (!isset($totalarray[
'val'])) {
1129 if (!isset($totalarray[
'val'][
't.'.$key])) {
1137 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
1139 $parameters = array(
'arrayfields' => $arrayfields,
'object' => $object,
'obj' => $obj,
'i' => $i,
'totalarray' => &$totalarray);
1140 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters, $object, $action);
1141 print $hookmanager->resPrint;
1143 if (!
$conf->main_checkbox_left_column) {
1144 print
'<td class="nowrap center">';
1145 if ($massactionbutton || $massaction) {
1147 if (in_array(
$object->id, $arrayofselected)) {
1150 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.
$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
1165include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
1170 foreach ($arrayfields as $key => $val) {
1171 if (!empty($val[
'checked'])) {
1175 print
'<tr><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</span></td></tr>';
1181$parameters = array(
'arrayfields' => $arrayfields,
'sql' => $sql);
1182$reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $object, $action);
1183print $hookmanager->resPrint;
1185print
'</table>'.
"\n";
1188print
'</form>'.
"\n";
1190if (in_array(
'builddoc', array_keys($arrayofmassactions)) && ($nbtotalofrecords ===
'' || $nbtotalofrecords)) {
1191 $hidegeneratedfilelistifempty = 1;
1192 if ($massaction ==
'builddoc' || $action ==
'remove_file' || $show_files) {
1193 $hidegeneratedfilelistifempty = 0;
1196 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
1200 $urlsource = $_SERVER[
'PHP_SELF'].
'?sortfield='.$sortfield.
'&sortorder='.$sortorder;
1201 $urlsource .= str_replace(
'&',
'&', $param);
1203 $filedir = $diroutputmassaction;
1204 $genallowed = $permissiontoread;
1205 $delallowed = $permissiontoadd;
1207 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...
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.
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.
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...
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
buildzip.php
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.