27 require
'../main.inc.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
29 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
30 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
31 require_once DOL_DOCUMENT_ROOT.
'/core/lib/project.lib.php';
32 require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
33 require_once DOL_DOCUMENT_ROOT.
'/eventorganization/class/conferenceorbooth.class.php';
34 require_once DOL_DOCUMENT_ROOT.
'/eventorganization/lib/eventorganization_conferenceorbooth.lib.php';
35 require_once DOL_DOCUMENT_ROOT.
'/projet/class/project.class.php';
37 global $dolibarr_main_url_root;
40 $langs->loadLangs(array(
'eventorganization',
'projects'));
43 $action =
GETPOST(
'action',
'aZ09');
44 $confirm =
GETPOST(
'confirm',
'alpha');
45 $cancel =
GETPOST(
'cancel',
'aZ09');
46 $contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'conferenceorboothcard';
47 $backtopage =
GETPOST(
'backtopage',
'alpha');
48 $backtopageforcancel =
GETPOST(
'backtopageforcancel',
'alpha');
52 $withproject =
GETPOST(
'withproject',
'int');
53 $mode =
GETPOST(
'mode',
'alpha');
58 $projectstatic =
new Project($db);
59 $diroutputmassaction = $conf->eventorganization->dir_output.
'/temp/massgeneration/'.$user->id;
60 $hookmanager->initHooks(array(
'conferenceorboothcard',
'globalcard'));
63 $extrafields->fetch_name_optionals_label($object->table_element);
65 $search_array_options = $extrafields->getOptionalsFromPost($object->table_element,
'',
'search_');
68 $search_all =
GETPOST(
"search_all",
'alpha');
70 foreach ($object->fields as $key => $val) {
71 if (
GETPOST(
'search_'.$key,
'alpha')) {
72 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
76 if (empty($action) && empty($id) && empty($ref)) {
81 include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
84 $permissiontoread = $user->rights->eventorganization->read;
85 $permissiontoadd = $user->rights->eventorganization->write;
86 $permissiontodelete = $user->rights->eventorganization->delete || ($permissiontoadd && isset($object->status) && $object->status == $object::STATUS_DRAFT);
87 $permissionnote = $user->rights->eventorganization->write;
88 $permissiondellink = $user->rights->eventorganization->write;
89 $upload_dir = $conf->eventorganization->multidir_output[isset($object->entity) ? $object->entity : 1];
92 if ($user->socid > 0) {
95 $isdraft = (($object->status== $object::STATUS_DRAFT) ? 1 : 0);
96 $result =
restrictedArea($user,
'eventorganization', $object->id,
'',
'',
'fk_soc',
'rowid', $isdraft);
98 if (!$permissiontoread) {
107 $parameters = array();
108 $reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
113 if (empty($reshook)) {
116 $backurlforlist =
dol_buildpath(
'/eventorganization/conferenceorbooth_list.php', 1);
118 if (empty($backtopage) || ($cancel && empty($id))) {
119 if (empty($backtopage) || ($cancel && strpos($backtopage,
'__ID__'))) {
120 if (empty($id) && (($action !=
'add' && $action !=
'create') || $cancel)) {
121 $backtopage = $backurlforlist;
123 $backtopage =
dol_buildpath(
'/eventorganization/conferenceorbooth_card.php', 1).
'?id='.($id > 0 ? $id :
'__ID__').($withproject ?
'&withproject=1' :
'');
128 $triggermodname =
'EVENTORGANIZATION_CONFERENCEORBOOTH_MODIFY';
131 include DOL_DOCUMENT_ROOT.
'/core/actions_addupdatedelete.inc.php';
134 include DOL_DOCUMENT_ROOT.
'/core/actions_dellink.inc.php';
137 include DOL_DOCUMENT_ROOT.
'/core/actions_printing.inc.php';
143 include DOL_DOCUMENT_ROOT.
'/core/actions_builddoc.inc.php';
145 if ($action ==
'set_thirdparty' && $permissiontoadd) {
146 $object->setValueFrom(
'fk_soc',
GETPOST(
'fk_soc',
'int'),
'',
'',
'date',
'', $user, $triggermodname);
148 if ($action ==
'classin' && $permissiontoadd) {
149 $object->setProject(
GETPOST(
'projectid',
'int'));
153 $triggersendname =
'EVENTORGANIZATION_CONFERENCEORBOOTH_SENTBYMAIL';
154 $autocopy =
'MAIN_MAIL_AUTOCOPY_CONFERENCEORBOOTH_TO';
155 $trackid =
'conferenceorbooth'.$object->id;
156 include DOL_DOCUMENT_ROOT.
'/core/actions_sendmails.inc.php';
167 $title = $langs->trans(
"ConferenceOrBooth");
171 if ($action ==
'create') {
172 $result = $projectstatic->fetch(
GETPOST(
'fk_project'));
174 $result = $projectstatic->fetch($object->fk_project);
176 if (!empty($conf->global->PROJECT_ALLOW_COMMENT_ON_PROJECT) && method_exists($projectstatic,
'fetchComments') && empty($projectstatic->comments)) {
177 $projectstatic->fetchComments();
179 if (!empty($projectstatic->socid)) {
180 $projectstatic->fetch_thirdparty();
184 $object->project = clone $projectstatic;
186 if (!empty($withproject)) {
188 $tab =
'eventorganisation';
189 $withProjectUrl =
"&withproject=1";
193 print
dol_get_fiche_head($head, $tab, $langs->trans(
"Project"), -1, ($projectstatic->public ?
'projectpub' :
'project'), 0,
'',
'');
195 $param = ($mode ==
'mine' ?
'&mode=mine' :
'');
199 $linkback =
'<a href="'.DOL_URL_ROOT.
'/projet/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
201 $morehtmlref =
'<div class="refidno">';
203 $morehtmlref .= $projectstatic->title;
205 if (isset($projectstatic->thirdparty->id) && $projectstatic->thirdparty->id > 0) {
206 $morehtmlref .=
'<br>'.$projectstatic->thirdparty->getNomUrl(1,
'project');
208 $morehtmlref .=
'</div>';
211 if (empty($user->rights->project->all->lire)) {
212 $objectsListId = $projectstatic->getProjectsAuthorizedForUser($user, 0, 0);
213 $projectstatic->next_prev_filter =
" rowid IN (".$db->sanitize(count($objectsListId) ?join(
',', array_keys($objectsListId)) :
'0').
")";
216 dol_banner_tab($projectstatic,
'project_ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
218 print
'<div class="fichecenter">';
219 print
'<div class="fichehalfleft">';
220 print
'<div class="underbanner clearboth"></div>';
222 print
'<table class="border tableforfield centpercent">';
225 if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES) || empty($conf->global->PROJECT_HIDE_TASKS) ||
isModEnabled(
'eventorganization')) {
226 print
'<tr><td class="tdtop">';
227 print $langs->trans(
"Usage");
230 if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES)) {
231 print
'<input type="checkbox" disabled name="usage_opportunity"'.(GETPOSTISSET(
'usage_opportunity') ? (
GETPOST(
'usage_opportunity',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_opportunity ?
' checked="checked"' :
'')).
'"> ';
232 $htmltext = $langs->trans(
"ProjectFollowOpportunity");
233 print
$form->textwithpicto($langs->trans(
"ProjectFollowOpportunity"), $htmltext);
236 if (empty($conf->global->PROJECT_HIDE_TASKS)) {
237 print
'<input type="checkbox" disabled name="usage_task"'.(GETPOSTISSET(
'usage_task') ? (
GETPOST(
'usage_task',
'alpha') !=
'' ?
' checked="checked"' :
'') : ($projectstatic->usage_task ?
' checked="checked"' :
'')).
'"> ';
238 $htmltext = $langs->trans(
"ProjectFollowTasks");
239 print
$form->textwithpicto($langs->trans(
"ProjectFollowTasks"), $htmltext);
242 if (empty($conf->global->PROJECT_HIDE_TASKS) && !empty($conf->global->PROJECT_BILL_TIME_SPENT)) {
243 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"' :
'')).
'"> ';
244 $htmltext = $langs->trans(
"ProjectBillTimeDescription");
245 print
$form->textwithpicto($langs->trans(
"BillTime"), $htmltext);
249 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"' :
'')).
'"> ';
250 $htmltext = $langs->trans(
"EventOrganizationDescriptionLong");
251 print
$form->textwithpicto($langs->trans(
"ManageOrganizeEvent"), $htmltext);
257 print
'<tr><td class="titlefield">'.$langs->trans(
"Visibility").
'</td><td>';
258 if ($projectstatic->public) {
259 print $langs->trans(
'SharedProject');
261 print $langs->trans(
'PrivateProject');
266 print
'<tr><td>'.$langs->trans(
"DateStart").
' - '.$langs->trans(
"DateEnd").
'</td><td>';
268 print ($start ? $start :
'?');
271 print ($end ? $end :
'?');
272 if ($projectstatic->hasDelay()) {
278 print
'<tr><td>'.$langs->trans(
"Budget").
'</td><td>';
279 if (strcmp($projectstatic->budget_amount,
'')) {
280 print
price($projectstatic->budget_amount,
'', $langs, 1, 0, 0, $conf->currency);
286 $objectconf = $object;
287 $object = $projectstatic;
288 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
289 $object = $objectconf;
295 print
'<div class="fichehalfright">';
296 print
'<div class="underbanner clearboth"></div>';
298 print
'<table class="border tableforfield centpercent">';
301 print
'<td class="tdtop">'.$langs->trans(
"Description").
'</td><td>';
302 print nl2br($projectstatic->description);
307 print
'<tr><td class="valignmiddle">'.$langs->trans(
"Categories").
'</td><td>';
308 print
$form->showCategories($projectstatic->id, Categorie::TYPE_PROJECT, 1);
313 $typeofdata =
'checkbox:'.($projectstatic->accept_conference_suggestions ?
' checked="checked"' :
'');
314 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestConfHelp");
315 print
$form->editfieldkey(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions',
'', $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
317 print
$form->editfieldval(
'AllowUnknownPeopleSuggestConf',
'accept_conference_suggestions',
'1', $projectstatic, 0, $typeofdata,
'', 0, 0,
'', 0,
'',
'projectid');
321 $typeofdata =
'checkbox:'.($projectstatic->accept_booth_suggestions ?
' checked="checked"' :
'');
322 $htmltext = $langs->trans(
"AllowUnknownPeopleSuggestBoothHelp");
323 print
$form->editfieldkey(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions',
'', $projectstatic, 0, $typeofdata,
'', 0, 0,
'projectid', $htmltext);
325 print
$form->editfieldval(
'AllowUnknownPeopleSuggestBooth',
'accept_booth_suggestions',
'1', $projectstatic, 0, $typeofdata,
'', 0, 0,
'', 0,
'',
'projectid');
329 print
$form->editfieldkey(
$form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
331 print
$form->editfieldval(
$form->textwithpicto($langs->trans(
'PriceOfBooth'), $langs->trans(
"PriceOfBoothHelp")),
'price_booth', $projectstatic->price_booth, $projectstatic, 0,
'amount',
'', 0, 0,
'', 0,
'',
'projectid');
335 print
$form->editfieldkey(
$form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration',
'', $projectstatic, 0,
'amount',
'', 0, 0,
'projectid');
337 print
$form->editfieldval(
$form->textwithpicto($langs->trans(
'PriceOfRegistration'), $langs->trans(
"PriceOfRegistrationHelp")),
'price_registration', $projectstatic->price_registration, $projectstatic, 0,
'amount',
'', 0, 0,
'', 0,
'',
'projectid');
340 print
'<tr><td valign="middle">'.$langs->trans(
"EventOrganizationICSLink").
'</td><td>';
342 $urlwithouturlroot = preg_replace(
'/'.preg_quote(DOL_URL_ROOT,
'/').
'$/i',
'', trim($dolibarr_main_url_root));
343 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
346 $message =
'<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.
'/public/agenda/agendaexport.php?format=ical'.($conf->entity > 1 ?
"&entity=".$conf->entity :
"");
347 $message .=
'&exportkey='.urlencode(
getDolGlobalString(
'MAIN_AGENDA_XCAL_EXPORTKEY',
'...'));
348 $message .=
"&project=".$projectstatic->id.
'&module='.urlencode(
'@eventorganization').
'&status='.ConferenceOrBooth::STATUS_CONFIRMED.
'">'.$langs->trans(
'DownloadICSLink').img_picto(
'',
'download',
'class="paddingleft"').
'</a>';
355 print
$form->textwithpicto($langs->trans(
"SuggestOrVoteForConfOrBooth"), $langs->trans(
"EvntOrgRegistrationHelpMessage"));
358 $linksuggest = $dolibarr_main_url_root.
'/public/project/index.php?id='.((int) $projectstatic->id);
359 $encodedsecurekey =
dol_hash(
getDolGlobalString(
'EVENTORGANIZATION_SECUREKEY').
'conferenceorbooth'.((
int) $projectstatic->id),
'md5');
360 $linksuggest .=
'&securekey='.urlencode($encodedsecurekey);
363 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$linksuggest.
'" class="quatrevingtpercent">'.$linksuggest.
'</a></div>';
364 print
'<a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.
'">'.
img_picto(
'',
'globe').
'</a>';
372 print $langs->trans(
"PublicAttendeeSubscriptionGlobalPage");
375 $link_subscription = $dolibarr_main_url_root.
'/public/eventorganization/attendee_new.php?id='.((int) $projectstatic->id).
'&type=global';
376 $encodedsecurekey =
dol_hash(
getDolGlobalString(
'EVENTORGANIZATION_SECUREKEY').
'conferenceorbooth'.((
int) $projectstatic->id),
'md5');
377 $link_subscription .=
'&securekey='.urlencode($encodedsecurekey);
380 print
'<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$link_subscription.
'" class="quatrevingtpercent">'.$link_subscription.
'</a></div>';
381 print
'<a target="_blank" rel="noopener noreferrer" rel="noopener noreferrer" href="'.$link_subscription.
'">'.
img_picto(
'',
'globe').
'</a>';
391 print
'<div class="clearboth"></div>';
399 if ($action ==
'create') {
400 print
load_fiche_titre($langs->trans(
"NewObject", $langs->transnoentitiesnoconv(
"ConferenceOrBooth")),
'',
'object_'.$object->picto);
402 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
403 print
'<input type="hidden" name="token" value="'.newToken().
'">';
404 print
'<input type="hidden" name="action" value="add">';
406 print
'<input type="hidden" name="backtopage" value="'.$backtopage.
'">';
408 if ($backtopageforcancel) {
409 print
'<input type="hidden" name="backtopageforcancel" value="'.$backtopageforcancel.
'">';
414 print
'<table class="border centpercent tableforfieldcreate">'.
"\n";
417 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_add.tpl.php';
420 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_add.tpl.php';
422 print
'</table>'.
"\n";
426 print
$form->buttonsSaveCancel(
"Create");
434 if (($id || $ref) && $action ==
'edit') {
435 print
load_fiche_titre($langs->trans(
"ConferenceOrBooth"),
'',
'object_'.$object->picto);
437 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
438 print
'<input type="hidden" name="token" value="'.newToken().
'">';
439 if (!empty($withProjectUrl)) {
440 print
'<input type="hidden" name="withproject" value="1">';
442 print
'<input type="hidden" name="action" value="update">';
443 print
'<input type="hidden" name="id" value="'.$object->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 tableforfieldedit">'.
"\n";
456 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_edit.tpl.php';
459 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_edit.tpl.php';
465 print
$form->buttonsSaveCancel();
471 if ($object->id > 0 && (empty($action) || ($action !=
'edit' && $action !=
'create'))) {
472 $res = $object->fetch_optionals();
476 print
dol_get_fiche_head($head,
'card', $langs->trans(
"ConferenceOrBooth"), -1, $object->picto);
481 if ($action ==
'delete') {
482 $formconfirm =
$form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id.$withProjectUrl, $langs->trans(
'DeleteConferenceOrBooth'), $langs->trans(
'ConfirmDeleteObject'),
'confirm_delete',
'', 0, 1);
485 if ($action ==
'clone') {
487 $formquestion = array();
488 $formconfirm =
$form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id.$withProjectUrl, $langs->trans(
'ToClone'), $langs->trans(
'ConfirmCloneAsk', $object->ref),
'confirm_clone', $formquestion,
'yes', 1);
493 if ($action ==
'xxx') {
494 $formquestion = array();
505 $formconfirm =
$form->formconfirm($_SERVER[
"PHP_SELF"].
'?id='.$object->id, $langs->trans(
'XXX'), $text,
'confirm_xxx', $formquestion, 0, 1, 220);
510 $reshook = $hookmanager->executeHooks(
'formConfirm', $parameters, $object, $action);
511 if (empty($reshook)) {
513 } elseif ($reshook > 0) {
522 $linkback =
'<a href="'.dol_buildpath(
'/eventorganization/conferenceorbooth_list.php', 1).
'?projectid='.$object->fk_project.$withProjectUrl.
'">'.$langs->trans(
"BackToList").
'</a>';
524 $morehtmlref =
'<div class="refidno">';
525 $morehtmlref .=
'</div>';
528 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
530 print
'<div class="fichecenter">';
531 print
'<div class="fichehalfleft">';
532 print
'<div class="underbanner clearboth"></div>';
533 print
'<table class="border centpercent tableforfield">'.
"\n";
539 $keyforbreak=
'num_vote';
541 include DOL_DOCUMENT_ROOT.
'/core/tpl/commonfields_view.tpl.php';
545 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_view.tpl.php';
551 print
'<div class="clearboth"></div>';
557 if ($action !=
'presend' && $action !=
'editline') {
558 print
'<div class="tabsAction">'.
"\n";
559 $parameters = array();
560 $reshook = $hookmanager->executeHooks(
'addMoreActionsButtons', $parameters, $object, $action);
565 if (empty($reshook)) {
567 if (empty($user->socid)) {
568 print
dolGetButtonAction(
'', $langs->trans(
'SendMail'),
'default', $_SERVER[
"PHP_SELF"].
'?id='.$object->id.$withProjectUrl.
'&action=presend&token='.
newToken().
'&mode=init#formmailbeforetitle');
571 print
dolGetButtonAction(
'', $langs->trans(
'Modify'),
'default', $_SERVER[
"PHP_SELF"].
'?id='.$object->id.$withProjectUrl.
'&action=edit&token='.
newToken(),
'', $permissiontoadd);
574 print
dolGetButtonAction(
'', $langs->trans(
'ToClone'),
'default', $_SERVER[
'PHP_SELF'].
'?id='.$object->id.$withProjectUrl.
'&socid='.$object->socid.
'&action=clone&token='.
newToken().
'&object=scrumsprint',
'', $permissiontoadd);
577 print
dolGetButtonAction($langs->trans(
'Delete'),
'',
'delete', $_SERVER[
'PHP_SELF'].
'?id='.$object->id.$withProjectUrl.
'&action=delete&token='.
newToken(),
'', $permissiontodelete || ($object->status == $object::STATUS_DRAFT && $permissiontoadd));
584 if (
GETPOST(
'modelselected')) {
588 if ($action !=
'presend') {
589 print
'<div class="fichecenter"><div class="fichehalfleft">';
590 print
'<a name="builddoc"></a>';
592 $includedocgeneration = 1;
595 if ($includedocgeneration) {
597 $relativepath = $objref.
'/'.$objref.
'.pdf';
598 $filedir = $conf->eventorganization->dir_output.
'/'.$object->element.
'/'.$objref;
599 $urlsource = $_SERVER[
"PHP_SELF"].
"?id=".$object->id;
600 $genallowed = $user->rights->eventorganization->read;
601 $delallowed = $user->rights->eventorganization->write;
602 print $formfile->showdocuments(
'eventorganization', $object->element.
'/'.$objref, $filedir, $urlsource, 0, $delallowed, $object->model_pdf, 0, 0, 0, 28, 0,
'',
'',
'', $langs->defaultlang);
609 $object->fetchObjectLinked();
611 if (is_array($object->linkedObjects) && count($object->linkedObjects)>0 && array_key_exists(
"facture", $object->linkedObjects)) {
612 foreach ($object->linkedObjects[
"facture"] as $fac) {
613 if (empty($fac->paye)) {
614 $key =
'paymentlink_'.$fac->id;
616 print
img_picto(
'',
'globe').
' <span class="opacitymedium">'.$langs->trans(
"ToOfferALinkForOnlinePayment", $langs->transnoentitiesnoconv(
'Online')) .
' '. $fac->ref.
'</span><br>';
618 $sourcetouse =
'boothlocation';
619 $reftouse = $fac->id;
621 $url = getOnlinePaymentUrl(0, $sourcetouse, $reftouse);
622 $url .=
'&booth='.$object->id;
624 print
'<div class="urllink"><input type="text" id="onlinepaymenturl" class="quatrevingtpercent" value="'.$url.
'">';
625 print
'<a href="'.$url.
'" target="_blank" rel="noopener noreferrer">'.
img_picto(
'',
'globe',
'class="paddingleft"').
'</a></div>';
630 print
'</div><div class="fichehalfright">';
631 print
'</div></div>';
635 if (
GETPOST(
'modelselected')) {
640 $modelmail =
'conferenceorbooth';
641 $defaulttopic =
'InformationMessage';
642 $diroutput = $conf->eventorganization->dir_output;
643 $trackid =
'conferenceorbooth'.$object->id;
645 include DOL_DOCUMENT_ROOT.
'/core/tpl/card_presend.tpl.php';
if(GETPOST('button_removefilter_x', 'alpha')||GETPOST('button_removefilter.x', 'alpha')||GETPOST('button_removefilter', 'alpha')) if(GETPOST('button_search_x', 'alpha')||GETPOST('button_search.x', 'alpha')||GETPOST('button_search', 'alpha')) if($action=="save" &&empty($cancel)) $help_url
View.
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
Class for ConferenceOrBooth.
Class to manage projects.
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
conferenceorboothPrepareHead($object, $with_project=0)
Prepare array of tabs for ConferenceOrBooth.
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.
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='')
Show tabs of a record.
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='')
Set event messages in dol_events session object.
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)
newToken()
Return the value of token currently saved into session with name 'newtoken'.
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.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
if(!function_exists('utf8_encode')) if(!function_exists('utf8_decode')) getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
dol_sanitizeFileName($str, $newstr='_', $unaccent=1)
Clean a string to use it as a file name.
isModEnabled($module)
Is Dolibarr module enabled.
$formconfirm
if ($action == 'delbookkeepingyear') {
project_prepare_head(Project $project, $moreparam='')
Prepare array with list of tabs.
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.
dol_hash($chain, $type='0')
Returns a hash (non reversible encryption) of a string.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.