26require
'../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
30require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
31require_once DOL_DOCUMENT_ROOT.
'/core/lib/project.lib.php';
33require_once DOL_DOCUMENT_ROOT.
'/eventorganization/class/conferenceorbooth.class.php';
34require_once DOL_DOCUMENT_ROOT.
'/eventorganization/class/conferenceorboothattendee.class.php';
35require_once DOL_DOCUMENT_ROOT.
'/eventorganization/lib/eventorganization_conferenceorbooth.lib.php';
36require_once DOL_DOCUMENT_ROOT.
'/projet/class/project.class.php';
39$langs->loadLangs(array(
"eventorganization",
"other",
"projects",
"companies"));
44$action =
GETPOST(
'action',
'aZ09');
45$confirm =
GETPOST(
'confirm',
'alpha');
46$cancel =
GETPOST(
'cancel',
'aZ09');
47$contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'conferenceorboothattendeecard';
48$backtopage =
GETPOST(
'backtopage',
'alpha');
49$backtopageforcancel =
GETPOST(
'backtopageforcancel',
'alpha');
50$lineid =
GETPOST(
'lineid',
'int');
51$mode =
GETPOST(
'mode',
'alpha');
53$conf_or_booth_id =
GETPOST(
'conforboothid',
'int');
54$fk_project =
GETPOST(
'fk_project',
'int');
60$projectstatic =
new Project($db);
61$diroutputmassaction = $conf->eventorganization->dir_output.
'/temp/massgeneration/'.$user->id;
62$hookmanager->initHooks(array(
'conferenceorboothattendeecard',
'globalcard'));
65if ($conf_or_booth_id > 0) {
67 $result = $confOrBooth->fetch($id > 0 ? $id : $conf_or_booth_id);
71 $object->fk_actioncomm = $confOrBooth->id;
72 $object->fk_project = $confOrBooth->fk_project;
73 $fk_project = $object->fk_project;
78$extrafields->fetch_name_optionals_label($object->table_element);
80$search_array_options = $extrafields->getOptionalsFromPost($object->table_element,
'',
'search_');
83$search_all =
GETPOST(
'search_all',
'alphanohtml');
85foreach ($object->fields as $key => $val) {
86 if (
GETPOST(
'search_'.$key,
'alpha') !==
'') {
87 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
89 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
90 $search[$key.
'_dtstart'] =
dol_mktime(0, 0, 0,
GETPOST(
'search_'.$key.
'_dtstartmonth',
'int'),
GETPOST(
'search_'.$key.
'_dtstartday',
'int'),
GETPOST(
'search_'.$key.
'_dtstartyear',
'int'));
91 $search[$key.
'_dtend'] =
dol_mktime(23, 59, 59,
GETPOST(
'search_'.$key.
'_dtendmonth',
'int'),
GETPOST(
'search_'.$key.
'_dtendday',
'int'),
GETPOST(
'search_'.$key.
'_dtendyear',
'int'));
96$fieldstosearchall = array();
97foreach ($object->fields as $key => $val) {
98 if (!empty($val[
'searchall'])) {
99 $fieldstosearchall[
't.'.$key] = $val[
'label'];
103if (empty($action) && empty($id) && empty($ref)) {
108include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
111if ($object->fk_project > 0) {
112 $fk_project = $object->fk_project;
116$permissiontoread = $user->rights->eventorganization->read;
117$permissiontoadd = $user->rights->eventorganization->write;
118$permissiontodelete = $user->rights->eventorganization->delete || ($permissiontoadd && isset($object->status) && $object->status == $object::STATUS_DRAFT);
119$permissionnote = $user->rights->eventorganization->write;
120$permissiondellink = $user->rights->eventorganization->write;
121$upload_dir = $conf->eventorganization->multidir_output[isset($object->entity) ? $object->entity : 1];
128$parameters = array();
129$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
134if (empty($reshook)) {
137 if (!empty($withproject)) {
138 $backurlforlist = DOL_URL_ROOT.
'/eventorganization/conferenceorboothattendee_list.php?withproject=1&fk_project='.((int) $fk_project);
140 $backurlforlist = DOL_URL_ROOT.
'/eventorganization/conferenceorboothattendee_list.php';
143 if (empty($backtopage) || ($cancel && empty($id))) {
144 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
145 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) {
146 $backtopage = $backurlforlist;
148 $backtopage = DOL_URL_ROOT.
'/eventorganization/conferenceorboothattendee_card.php?fk_project='.((int) $fk_project).
'&id='.($id > 0 ? $id :
'__ID__');
154 if (!empty($backtopageforcancel)) {
155 header(
"Location: ".$backtopageforcancel);
157 } elseif (!empty($backtopage)) {
158 header(
"Location: ".$backtopage);
164 $triggermodname =
'EVENTORGANIZATION_CONFERENCEORBOOTHATTENDEE_MODIFY';
167 include DOL_DOCUMENT_ROOT.
'/core/actions_addupdatedelete.inc.php';
170 include DOL_DOCUMENT_ROOT.
'/core/actions_dellink.inc.php';
173 include DOL_DOCUMENT_ROOT.
'/core/actions_printing.inc.php';
179 include DOL_DOCUMENT_ROOT.
'/core/actions_builddoc.inc.php';
181 if ($action ==
'set_thirdparty' && $permissiontoadd) {
182 $object->setValueFrom(
'fk_soc',
GETPOST(
'fk_soc',
'int'),
'',
'',
'date',
'', $user, $triggermodname);
184 if ($action ==
'classin' && $permissiontoadd) {
185 $object->setProject(
GETPOST(
'projectid',
'int'));
189 $triggersendname =
'EVENTORGANIZATION_CONFERENCEORBOOTHATTENDEE_SENTBYMAIL';
190 $autocopy =
'MAIN_MAIL_AUTOCOPY_CONFERENCEORBOOTHATTENDEE_TO';
191 $trackid =
'conferenceorboothattendee'.$object->id;
192 include DOL_DOCUMENT_ROOT.
'/core/actions_sendmails.inc.php';
202$form =
new Form($db);
206$title = $langs->trans(
"ConferenceOrBoothAttendee");
210$result = $projectstatic->fetch(empty($confOrBooth->fk_project) ? $fk_project : $confOrBooth->fk_project);
211if (!empty($conf->global->PROJECT_ALLOW_COMMENT_ON_PROJECT) && method_exists($projectstatic,
'fetchComments') && empty($projectstatic->comments)) {
212 $projectstatic->fetchComments();
214if (!empty($projectstatic->socid)) {
215 $projectstatic->fetch_thirdparty();
219$object->project = clone $projectstatic;
221if (!empty($withproject)) {
223 $tab =
'eventorganisation';
225 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1, ($projectstatic->public ?
'projectpub' :
'project'), 0,
'',
'');
227 $param = ($mode ==
'mine' ?
'&mode=mine' :
'');
231 $linkback =
'<a href="'.DOL_URL_ROOT.
'/projet/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
233 $morehtmlref =
'<div class="refidno">';
235 $morehtmlref .= $projectstatic->title;
237 if (!empty($projectstatic->thirdparty->id) && $projectstatic->thirdparty->id > 0) {
238 $morehtmlref .=
'<br>'.$projectstatic->thirdparty->getNomUrl(1,
'project');
240 $morehtmlref .=
'</div>';
243 if (empty($user->rights->projet->all->lire)) {
244 $objectsListId = $projectstatic->getProjectsAuthorizedForUser($user, 0, 0);
245 $projectstatic->next_prev_filter =
"rowid IN (".$db->sanitize(count($objectsListId) ?join(
',', array_keys($objectsListId)) :
'0').
")";
248 dol_banner_tab($projectstatic,
'project_ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
250 print
'<div class="fichecenter">';
251 print
'<div class="fichehalfleft">';
252 print
'<div class="underbanner clearboth"></div>';
254 print
'<table class="border tableforfield centpercent">';
257 if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES) || empty($conf->global->PROJECT_HIDE_TASKS) || isModEnabled(
'eventorganization')) {
258 print
'<tr><td class="tdtop">';
259 print $langs->trans(
"Usage");
262 if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES)) {
263 print
'<input type="checkbox" disabled name="usage_opportunity"'.(GETPOSTISSET(
'usage_opportunity') ? (
GETPOST(
'usage_opportunity',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_opportunity ?
' checked="checked"' :
'')).
'"> ';
264 $htmltext = $langs->trans(
"ProjectFollowOpportunity");
265 print $form->textwithpicto($langs->trans(
"ProjectFollowOpportunity"), $htmltext);
268 if (empty($conf->global->PROJECT_HIDE_TASKS)) {
269 print
'<input type="checkbox" disabled name="usage_task"'.(GETPOSTISSET(
'usage_task') ? (
GETPOST(
'usage_task',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_task ?
' checked="checked"' :
'')).
'"> ';
270 $htmltext = $langs->trans(
"ProjectFollowTasks");
271 print $form->textwithpicto($langs->trans(
"ProjectFollowTasks"), $htmltext);
274 if (empty($conf->global->PROJECT_HIDE_TASKS) && !empty($conf->global->PROJECT_BILL_TIME_SPENT)) {
275 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"' :
'')).
'"> ';
276 $htmltext = $langs->trans(
"ProjectBillTimeDescription");
277 print $form->textwithpicto($langs->trans(
"BillTime"), $htmltext);
280 if (isModEnabled(
'eventorganization')) {
281 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"' :
'')).
'"> ';
282 $htmltext = $langs->trans(
"EventOrganizationDescriptionLong");
283 print $form->textwithpicto($langs->trans(
"ManageOrganizeEvent"), $htmltext);
289 print
'<tr><td class="titlefield">'.$langs->trans(
"Visibility").
'</td><td>';
290 if ($projectstatic->public) {
291 print $langs->trans(
'SharedProject');
293 print $langs->trans(
'PrivateProject');
298 print
'<tr><td>'.$langs->trans(
"DateStart").
' - '.$langs->trans(
"DateEnd").
'</td><td>';
300 print ($start ? $start :
'?');
303 print ($end ? $end :
'?');
304 if ($projectstatic->hasDelay()) {
310 print
'<tr><td>'.$langs->trans(
"Budget").
'</td><td>';
311 if (strcmp($projectstatic->budget_amount,
'')) {
312 print
price($projectstatic->budget_amount,
'', $langs, 1, 0, 0, $conf->currency);
324 print
'<div class="fichehalfright">';
325 print
'<div class="underbanner clearboth"></div>';
327 print
'<table class="border tableforfield centpercent">';
330 print
'<td class="titlefield tdtop">'.$langs->trans(
"Description").
'</td><td>';
331 print nl2br($projectstatic->description);
335 if (isModEnabled(
'categorie')) {
336 print
'<tr><td class="valignmiddle">'.$langs->trans(
"Categories").
'</td><td>';
337 print $form->showCategories($projectstatic->id,
'project', 1);
341 print
'<tr><td class="nowrap">';
342 $typeofdata =
'checkbox:'.($projectstatic->accept_conference_suggestions ?
' checked="checked"' :
'');
343 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestConfHelp");
344 print $form->editfieldkey(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions',
'', $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
346 print $form->editfieldval(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions',
'1', $projectstatic, 0, $typeofdata,
'', 0, 0,
'', 0,
'',
'projectid');
350 $typeofdata =
'checkbox:'.($projectstatic->accept_booth_suggestions ?
' checked="checked"' :
'');
351 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestBoothHelp");
352 print $form->editfieldkey(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions',
'', $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
354 print $form->editfieldval(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions',
'1', $projectstatic, 0, $typeofdata,
'', 0, 0,
'', 0,
'',
'projectid');
358 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
360 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth', $projectstatic->price_booth, $projectstatic, 0,
'amount',
'', 0, 0,
'', 0,
'',
'projectid');
364 print $form->editfieldkey($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
366 print $form->editfieldval($form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration', $projectstatic->price_registration, $projectstatic, 0,
'amount',
'', 0, 0,
'', 0,
'',
'projectid');
369 print
'<tr><td valign="middle">'.$langs->trans(
"EventOrganizationICSLink").
'</td><td>';
371 $urlwithouturlroot = preg_replace(
'/'.preg_quote(DOL_URL_ROOT,
'/').
'$/i',
'', trim($dolibarr_main_url_root));
372 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
375 $message =
'<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.
'/public/agenda/agendaexport.php?format=ical'.($conf->entity > 1 ?
"&entity=".$conf->entity :
"");
376 $message .=
'&exportkey='.($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY ?urlencode($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY) :
'...');
377 $message .=
"&project=".$projectstatic->id.
'&module='.urlencode(
'@eventorganization').
'&status='.ConferenceOrBooth::STATUS_CONFIRMED.
'">'.$langs->trans(
'DownloadICSLink').img_picto(
'',
'download',
'class="paddingleft"').
'</a>';
384 print $form->textwithpicto($langs->trans(
"SuggestOrVoteForConfOrBooth"), $langs->trans(
"EvntOrgRegistrationHelpMessage"));
387 $linksuggest = $dolibarr_main_url_root.
'/public/project/index.php?id='.$projectstatic->id;
388 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
389 $linksuggest .=
'&securekey='.urlencode($encodedsecurekey);
392 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$linksuggest.
'" class="quatrevingtpercent">'.$linksuggest.
'</a></div>';
393 print
'<a target="_blank" rel="noopener noreferrer" rel="noopener noreferrer" href="'.$linksuggest.
'">'.
img_picto(
'',
'globe').
'</a>';
401 print $langs->trans(
"PublicAttendeeSubscriptionGlobalPage");
404 $link_subscription = $dolibarr_main_url_root.
'/public/eventorganization/attendee_new.php?id='.$projectstatic->id.
'&type=global';
405 $encodedsecurekey =
dol_hash(
getDolGlobalString(
"EVENTORGANIZATION_SECUREKEY").
'conferenceorbooth'.$projectstatic->id,
'md5');
406 $link_subscription .=
'&securekey='.urlencode($encodedsecurekey);
409 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$link_subscription.
'" class="quatrevingtpercent">'.$link_subscription.
'</a></div>';
410 print
'<a target="_blank" rel="noopener noreferrer" href="'.$link_subscription.
'">'.
img_picto(
'',
'globe').
'</a>';
420 print
'<div class="clearboth"></div>';
428if ($action ==
'create') {
429 print
load_fiche_titre($langs->trans(
"NewObject", $langs->transnoentitiesnoconv(
"ConferenceOrBoothAttendee")),
'',
'object_'.$object->picto);
432 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].(empty($withproject) ?
'' :
'?withproject=1').
'">';
433 print
'<input type="hidden" name="token" value="'.newToken().
'">';
434 print
'<input type="hidden" name="action" value="add">';
436 if ($confOrBooth->id > 0) {
437 print
'<input type="hidden" name="conforboothid" value="'.$confOrBooth->id.
'">';
439 if ($projectstatic->id > 0) {
440 print
'<input type="hidden" name="fk_project" value="'.$projectstatic->id.
'">';
441 print
'<input type="hidden" name="projectid" value="'.$projectstatic->id.
'">';
445 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
447 if ($backtopageforcancel) {
448 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
453 print
'<table class="border centpercent tableforfieldcreate">'.
"\n";
456 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_add.tpl.php';
459 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
461 print
'</table>'.
"\n";
465 print $form->buttonsSaveCancel(
"Create");
473if (($id || $ref) && $action ==
'edit') {
474 print
load_fiche_titre($langs->trans(
"ConferenceOrBoothAttendee"),
'',
'object_'.$object->picto);
476 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
477 print
'<input type="hidden" name="token" value="'.newToken().
'">';
478 print
'<input type="hidden" name="action" value="update">';
479 print
'<input type="hidden" name="id" value="'.$object->id.
'">';
480 if ($confOrBooth->id > 0) {
481 print
'<input type="hidden" name="conforboothid" value="'.$confOrBooth->id.
'">';
483 if ($object->fk_actioncomm > 0) {
484 print
'<input type="hidden" name="fk_actioncomm" value="'.$object->fk_actioncomm.
'">';
487 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
489 if ($backtopageforcancel) {
490 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
492 if ($projectstatic->id > 0) {
493 print
'<input type="hidden" name="fk_project" value="'.$projectstatic->id.
'">';
498 print
'<table class="border centpercent tableforfieldedit">'.
"\n";
501 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_edit.tpl.php';
504 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
510 print $form->buttonsSaveCancel();
516if ($object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
517 $object->fetch_optionals();
521 $moreparam .=
'&withproject=1';
524 $moreparam .=
'&fk_project='.((int) $fk_project);
528 print
dol_get_fiche_head($head,
'card', $langs->trans(
"ConferenceOrBoothAttendee"), -1, $object->picto);
533 if ($action ==
'delete') {
534 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'DeleteConferenceOrBoothAttendee'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
537 if ($action ==
'deleteline') {
538 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&lineid='.$lineid, $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_deleteline',
'', 0, 1);
541 if ($action ==
'clone') {
543 $formquestion = array();
544 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk', $object->ref),
'confirm_clone', $formquestion,
'yes', 1);
548 if ($action ==
'xxx') {
549 $formquestion = array();
550 $formconfirm = $form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'XXX'), $text,
'confirm_xxx', $formquestion, 0, 1, 220);
554 $parameters = array(
'formConfirm' => $formconfirm,
'lineid' => $lineid);
555 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
556 if (empty($reshook)) {
557 $formconfirm .= $hookmanager->resPrint;
558 } elseif ($reshook > 0) {
559 $formconfirm = $hookmanager->resPrint;
567 $linkback =
'<a href="'.dol_buildpath(
'/eventorganization/conferenceorboothattendee_list.php', 1).
'?restore_lastsearch_values=1'.(!empty($confOrBooth->id) && $confOrBooth->id > 0 ?
'&conforboothid='.((int) $confOrBooth->id) :
'').$moreparam.
'">'.$langs->trans(
"BackToList").
'</a>';
569 $morehtmlref =
'<div class="refidno">';
571 $morehtmlref .=
'</div>';
573 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref, $moreparam);
575 print
'<div class="fichecenter">';
576 print
'<div class="fichehalfleft">';
577 print
'<div class="underbanner clearboth"></div>';
578 print
'<table class="border centpercent tableforfield">'.
"\n";
580 $keyforbreak =
'note_public';
583 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_view.tpl.php';
586 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
592 print
'<div class="clearboth"></div>';
598 if ($action !=
'presend' && $action !=
'editline') {
599 print
'<div class="tabsAction">'.
"\n";
600 $parameters = array();
601 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
606 if (empty($reshook)) {
608 if (empty($user->socid)) {
609 print
dolGetButtonAction(
'', $langs->trans(
'SendMail'),
'default', $_SERVER[
"PHP_SELF"].
'?id='.$object->id.(!empty($confOrBooth->id)?
'&conforboothid='.$confOrBooth->id:
'').(!empty($projectstatic->id)?
'&fk_project='.$projectstatic->id:
'').
'&action=presend&token='.newToken().
'&mode=init#formmailbeforetitle');
611 print
dolGetButtonAction(
'', $langs->trans(
'Modify'),
'default', $_SERVER[
"PHP_SELF"].
'?id='.$object->id.(!empty($confOrBooth->id)?
'&conforboothid='.$confOrBooth->id:
'').(!empty($projectstatic->id)?
'&fk_project='.$projectstatic->id:
'').
'&action=edit&token='.newToken(),
'', $permissiontoadd);
614 print
dolGetButtonAction(
'', $langs->trans(
'ToClone'),
'default', $_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&action=clone&token='.newToken().(!empty($projectstatic->id)?
'&fk_project='.$projectstatic->id:
''),
'', $permissiontoadd);
617 print
dolGetButtonAction(
'', $langs->trans(
'Delete'),
'delete', $_SERVER[
'PHP_SELF'].
'?id='.$object->id.
'&action=delete&token='.newToken().(!empty($projectstatic->id)?
'&fk_project='.$projectstatic->id:
''),
'', $permissiontodelete || ($object->status == $object::STATUS_DRAFT && $permissiontoadd));
624 if (
GETPOST(
'modelselected')) {
628 if ($action !=
'presend') {
629 print
'<div class="fichecenter"><div class="fichehalfleft">';
630 print
'<a name="builddoc"></a>';
632 $includedocgeneration = 0;
635 if ($includedocgeneration) {
637 $relativepath = $objref.
'/'.$objref.
'.pdf';
638 $filedir = $conf->eventorganization->dir_output.
'/'.$object->element.
'/'.$objref;
639 $urlsource = $_SERVER[
"PHP_SELF"].
"?id=".$object->id;
640 $genallowed = $user->rights->eventorganization->conferenceorboothattendee->read;
641 $delallowed = $user->rights->eventorganization->conferenceorboothattendee->write;
642 print $formfile->showdocuments(
'eventorganization:ConferenceOrBoothAttendee', $object->element.
'/'.$objref, $filedir, $urlsource, $genallowed, $delallowed, $object->model_pdf, 1, 0, 0, 28, 0,
'',
'',
'', $langs->defaultlang);
646 $linktoelem = $form->showLinkToObjectBlock($object,
null, array(
'conferenceorboothattendee'));
647 $somethingshown = $form->showLinkedObjectBlock($object, $linktoelem);
650 print
'</div><div class="fichehalfright">';
652 print
'</div></div>';
656 if (
GETPOST(
'modelselected')) {
661 $modelmail =
'conferenceorboothattendee';
662 $defaulttopic =
'InformationMessage';
663 $diroutput = $conf->eventorganization->dir_output;
664 $trackid =
'conferenceorboothattendee'.$object->id;
666 include DOL_DOCUMENT_ROOT.
'/core/tpl/card_presend.tpl.php';
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
Class for ConferenceOrBoothAttendee.
Class for ConferenceOrBooth.
Class to manage projects.
conferenceorboothAttendeePrepareHead($object)
Prepare array of tabs for ConferenceOrBoothAttendees.
dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='rowid', $fieldref='ref', $morehtmlref='', $moreparam='', $nodbprefix=0, $morehtmlleft='', $morehtmlstatus='', $onlybanner=0, $morehtmlright='')
Show tab footer of a card.
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm='auto', $check=1)
Return a timestamp date built from detailed informations (by default a local PHP server timestamp) Re...
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
price($amount, $form=0, $outlangs='', $trunc=1, $rounding=-1, $forcerounding=-1, $currency_code='')
Function to format a value into an amount for visual output Function used into PDF and HTML pages.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
dolGetButtonAction($label, $text='', $actionType='default', $url='', $id='', $userRight=1, $params=array())
Function dolGetButtonAction.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
dol_sanitizeFileName($str, $newstr='_', $unaccent=1)
Clean a string to use it as a file name.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
project_prepare_head(Project $project, $moreparam='')
Prepare array with list of tabs.
dol_hash($chain, $type='0')
Returns a hash (non reversible encryption) of a string.