dolibarr 23.0.3
conferenceorbooth_document.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2007-2017 Laurent Destailleur <eldy@users.sourceforge.net>
3 * Copyright (C) 2021 Florian Henry <florian.henry@scopen.fr>
4 * Copyright (C) 2024 Alexandre Spangaro <alexandre@inovea-conseil.com>
5 * Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
6 * Copyright (C) 2025 MDW <mdeweerd@users.noreply.github.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
28// Load Dolibarr environment
29require '../main.inc.php';
30
31require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
33require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
34require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
35require_once DOL_DOCUMENT_ROOT.'/core/lib/project.lib.php';
36
37require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
38require_once DOL_DOCUMENT_ROOT.'/eventorganization/class/conferenceorbooth.class.php';
39require_once DOL_DOCUMENT_ROOT.'/eventorganization/lib/eventorganization_conferenceorbooth.lib.php';
40require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
41
42
53// Load translation files required by the page
54$langs->loadLangs(array("eventorganization", "projects", "companies", "other", "mails"));
55
56// Get Parameters
57$action = GETPOST('action', 'aZ09');
58$confirm = GETPOST('confirm', 'alpha');
59$cancel = GETPOST('cancel');
60$contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'conferenceorboothcard'; // To manage different context of search
61$backtopage = GETPOST('backtopage', 'alpha');
62$backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');
63$optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print')
64$mode = GETPOST('mode', 'aZ'); // The output mode ('list', 'kanban', 'hierarchy', 'calendar', ...)
65
66$id = GETPOSTINT('id');
67$ref = GETPOST('ref', 'alpha');
68$withproject = GETPOSTINT('withproject');
69$project_ref = GETPOST('project_ref', 'alpha');
70
71$limit = GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit;
72$sortfield = GETPOST('sortfield', 'aZ09comma');
73$sortorder = GETPOST('sortorder', 'aZ09comma');
74$page = GETPOSTISSET('pageplusone') ? (GETPOSTINT('pageplusone') - 1) : GETPOSTINT("page");
75if (empty($page) || $page == -1) {
76 $page = 0;
77} // If $page is not defined, or '' or -1
78$offset = $limit * $page;
79$pageprev = $page - 1;
80$pagenext = $page + 1;
81if (!$sortorder) {
82 $sortorder = "ASC";
83}
84if (!$sortfield) {
85 $sortfield = "name";
86}
87//if (! $sortfield) $sortfield="position_name";
88
89// Initialize a technical objects
90$object = new ConferenceOrBooth($db);
91$extrafields = new ExtraFields($db);
92$projectstatic = new Project($db);
93$diroutputmassaction = $conf->eventorganization->dir_output.'/temp/massgeneration/'.$user->id;
94$hookmanager->initHooks(array($contextpage, 'globalcard')); // Note that conf->hooks_modules contains array
95
96// Fetch optionals attributes and labels
97$extrafields->fetch_name_optionals_label($object->table_element);
98
99$search_array_options = $extrafields->getOptionalsFromPost($object->table_element, '', 'search_');
100
101// Load object
102include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be 'include', not 'include_once'.
103
104$upload_dir = $conf->eventorganization->multidir_output[isset($object->entity) ? $object->entity : 1];
105if ($id > 0 || !empty($ref)) {
106 $upload_dir = $conf->eventorganization->multidir_output[$object->entity ? $object->entity : $conf->entity]."/conferenceorbooth/".get_exdir(0, 0, 0, 1, $object);
107}
108
109// Permissions
110$permissiontoread = $user->hasRight('project', 'read');
111$permissiontoadd = $user->hasRight('project', 'write'); // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
112$permissiontodelete = $user->hasRight('project', 'delete') || ($permissiontoadd && isset($object->status) && $object->status == $object::STATUS_DRAFT);
113$permissionnote = $user->hasRight('project', 'write'); // Used by the include of actions_setnotes.inc.php
114$permissiondellink = $user->hasRight('project', 'write'); // Used by the include of actions_dellink.inc.php
115
116// Security check
117if ($user->socid > 0) {
119}
120
121restrictedArea($user, 'projet', $object->fk_project, 'projet&project');
122
123
124/*
125 * Actions
126 */
127
128$parameters = array();
129$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
130if ($reshook < 0) {
131 setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
132}
133
134include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
135
136
137/*
138 * View
139 */
140
141$form = new Form($db);
142
143$title = $langs->trans("ConferenceOrBooth").' - '.$langs->trans("Files");
144$help_url = 'EN:Module_Event_Organization';
145
146llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-eventorganization page-card_documents');
147
148$result = $projectstatic->fetch($object->fk_project);
149if (getDolGlobalString('PROJECT_ALLOW_COMMENT_ON_PROJECT') && method_exists($projectstatic, 'fetchComments') && empty($projectstatic->comments)) {
150 $projectstatic->fetchComments();
151}
152if (!empty($projectstatic->socid)) {
153 $projectstatic->fetch_thirdparty();
154}
155
156$withProjectUrl = '';
157$object->project = clone $projectstatic;
158
159if (!empty($withproject)) {
160 // Tabs for project
161 $tab = 'eventorganisation';
162 $withProjectUrl = "&withproject=1";
163
164 $head = project_prepare_head($projectstatic);
165
166 print dol_get_fiche_head($head, $tab, $langs->trans("Project"), -1, ($projectstatic->public ? 'projectpub' : 'project'), 0, '', '');
167
168 $param = ($mode == 'mine' ? '&mode=mine' : '');
169
170 // Project card
171
172 $linkback = '<a href="'.DOL_URL_ROOT.'/projet/list.php?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>';
173
174 $morehtmlref = '<div class="refidno">';
175 // Title
176 $morehtmlref .= $projectstatic->title;
177 // Thirdparty
178 if (isset($projectstatic->thirdparty->id) && $projectstatic->thirdparty->id > 0) {
179 $morehtmlref .= '<br>'.$projectstatic->thirdparty->getNomUrl(1, 'project');
180 }
181 $morehtmlref .= '</div>';
182
183 // Define a complementary filter for search of next/prev ref.
184 if (!$user->hasRight('project', 'all', 'lire')) {
185 $objectsListId = $projectstatic->getProjectsAuthorizedForUser($user, 0, 0);
186 $projectstatic->next_prev_filter = "rowid:IN:".$db->sanitize(count($objectsListId) ? implode(',', array_keys($objectsListId)) : '0');
187 }
188
189 dol_banner_tab($projectstatic, 'project_ref', $linkback, 1, 'ref', 'ref', $morehtmlref);
190
191 print '<div class="fichecenter">';
192 print '<div class="fichehalfleft">';
193 print '<div class="underbanner clearboth"></div>';
194
195 print '<table class="border tableforfield centpercent">';
196
197 // Usage
198 if (getDolGlobalString('PROJECT_USE_OPPORTUNITIES') || !getDolGlobalString('PROJECT_HIDE_TASKS') || isModEnabled('eventorganization')) {
199 print '<tr><td class="tdtop">';
200 print $langs->trans("Usage");
201 print '</td>';
202 print '<td>';
203 if (getDolGlobalString('PROJECT_USE_OPPORTUNITIES')) {
204 print '<input type="checkbox" disabled name="usage_opportunity"'.(GETPOSTISSET('usage_opportunity') ? (GETPOST('usage_opportunity', 'alpha') != '' ? ' checked="checked"' : '') : ($projectstatic->usage_opportunity ? ' checked="checked"' : '')).'"> ';
205 $htmltext = $langs->trans("ProjectFollowOpportunity");
206 print $form->textwithpicto($langs->trans("ProjectFollowOpportunity"), $htmltext);
207 print '<br>';
208 }
209 if (!getDolGlobalString('PROJECT_HIDE_TASKS')) {
210 print '<input type="checkbox" disabled name="usage_task"'.(GETPOSTISSET('usage_task') ? (GETPOST('usage_task', 'alpha') != '' ? ' checked="checked"' : '') : ($projectstatic->usage_task ? ' checked="checked"' : '')).'"> ';
211 $htmltext = $langs->trans("ProjectFollowTasks");
212 print $form->textwithpicto($langs->trans("ProjectFollowTasks"), $htmltext);
213 print '<br>';
214 }
215 if (!getDolGlobalString('PROJECT_HIDE_TASKS') && getDolGlobalString('PROJECT_BILL_TIME_SPENT')) {
216 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"' : '')).'"> ';
217 $htmltext = $langs->trans("ProjectBillTimeDescription");
218 print $form->textwithpicto($langs->trans("BillTime"), $htmltext);
219 print '<br>';
220 }
221 if (isModEnabled('eventorganization')) {
222 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"' : '')).'"> ';
223 $htmltext = $langs->trans("EventOrganizationDescriptionLong");
224 print $form->textwithpicto($langs->trans("ManageOrganizeEvent"), $htmltext);
225 }
226 print '</td></tr>';
227 }
228
229 // Budget
230 print '<tr><td>'.$langs->trans("Budget").'</td><td>';
231 if (strcmp($projectstatic->budget_amount, '')) {
232 print '<span class="amount">'.price($projectstatic->budget_amount, 0, $langs, 1, 0, 0, $conf->currency).'</span>';
233 }
234 print '</td></tr>';
235
236 // Date start - end project
237 print '<tr><td>'.$langs->trans("Dates").' ('.$langs->trans("Project").')</td><td>';
238 $start = dol_print_date($projectstatic->date_start, 'day');
239 print($start ? $start : '?');
240 $end = dol_print_date($projectstatic->date_end, 'day');
241 print ' - ';
242 print($end ? $end : '?');
243 if ($projectstatic->hasDelay()) {
244 print img_warning("Late");
245 }
246 print '</td></tr>';
247
248 // Date start - end of event
249 print '<tr><td>'.$langs->trans("Dates").' ('.$langs->trans("Event").')</td><td>';
250 $start = dol_print_date($projectstatic->date_start_event, 'day');
251 print($start ? $start : '?');
252 $end = dol_print_date($projectstatic->date_end_event, 'day');
253 print ' - ';
254 print($end ? $end : '?');
255 if ($projectstatic->hasDelay()) {
256 print img_warning("Late");
257 }
258 print '</td></tr>';
259
260 // Visibility
261 print '<tr><td class="titlefield">'.$langs->trans("Visibility").'</td><td>';
262 if ($projectstatic->public == 0) {
263 print img_picto($langs->trans('PrivateProject'), 'private', 'class="paddingrightonly"');
264 print $langs->trans("PrivateProject");
265 } else {
266 print img_picto($langs->trans('SharedProject'), 'world', 'class="paddingrightonly"');
267 print $langs->trans("SharedProject");
268 }
269 print '</td></tr>';
270
271 // Location event
272 print '<tr><td>'.$langs->trans("Location").'</td><td>';
273 print $projectstatic->location;
274 print '</td></tr>';
275
276 // Other attributes
277 $cols = 2;
278 $objectconf = $object;
279 $object = $projectstatic;
280 include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
281 $object = $objectconf;
282
283 print '</table>';
284
285 print '</div>';
286
287 print '<div class="fichehalfright">';
288 print '<div class="underbanner clearboth"></div>';
289
290 print '<table class="border tableforfield centpercent">';
291
292 // Categories
293 if (isModEnabled('category')) {
294 print '<tr><td class="titlefield valignmiddle">'.$langs->trans("Categories").'</td><td class="valuefield">';
295 print $form->showCategories($projectstatic->id, Categorie::TYPE_PROJECT, 1);
296 print "</td></tr>";
297 }
298
299 // Description
300 print '<tr><td class="titlefield tdtop">'.$langs->trans("Description").'</td><td class="valuefield">';
301 print dol_htmlentitiesbr($projectstatic->description);
302 print '</td></tr>';
303
304 print '<tr><td class="titlefield nowrap">';
305 $typeofdata = 'checkbox:'.($projectstatic->accept_conference_suggestions ? ' checked="checked"' : '');
306 $htmltext = $langs->trans("AllowUnknownPeopleSuggestConfHelp");
307 print $form->editfieldkey('AllowUnknownPeopleSuggestConf', 'accept_conference_suggestions', '', $projectstatic, 0, $typeofdata, '', 0, 0, 'projectid', $htmltext);
308 print '</td><td class="valuefield">';
309 print $form->editfieldval('AllowUnknownPeopleSuggestConf', 'accept_conference_suggestions', '1', $projectstatic, 0, $typeofdata, '', null, null, '', 0, '', 'projectid');
310 print "</td></tr>";
311
312 print '<tr><td class="valuefield">';
313 $typeofdata = 'checkbox:'.($projectstatic->accept_booth_suggestions ? ' checked="checked"' : '');
314 $htmltext = $langs->trans("AllowUnknownPeopleSuggestBoothHelp");
315 print $form->editfieldkey('AllowUnknownPeopleSuggestBooth', 'accept_booth_suggestions', '', $projectstatic, 0, $typeofdata, '', 0, 0, 'projectid', $htmltext);
316 print '</td><td class="valuefield">';
317 print $form->editfieldval('AllowUnknownPeopleSuggestBooth', 'accept_booth_suggestions', '1', $projectstatic, 0, $typeofdata, '', null, null, '', 0, '', 'projectid');
318 print "</td></tr>";
319
320 print '<tr><td class="valuefield">';
321 print $form->editfieldkey($form->textwithpicto($langs->trans('PriceOfBooth'), $langs->trans("PriceOfBoothHelp")), 'price_booth', '', $projectstatic, 0, 'amount', '', 0, 0, 'projectid');
322 print '</td><td class="valuefield">';
323 print $form->editfieldval($form->textwithpicto($langs->trans('PriceOfBooth'), $langs->trans("PriceOfBoothHelp")), 'price_booth', $projectstatic->price_booth, $projectstatic, 0, 'amount', '', null, null, '', 0, '', 'projectid');
324 print "</td></tr>";
325
326 print '<tr><td class="valuefield">';
327 print $form->editfieldkey($form->textwithpicto($langs->trans('PriceOfRegistration'), $langs->trans("PriceOfRegistrationHelp")), 'price_registration', '', $projectstatic, 0, 'amount', '', 0, 0, 'projectid');
328 print '</td><td class="valuefield">';
329 print $form->editfieldval($form->textwithpicto($langs->trans('PriceOfRegistration'), $langs->trans("PriceOfRegistrationHelp")), 'price_registration', $projectstatic->price_registration, $projectstatic, 0, 'amount', '', null, null, '', 0, '', 'projectid');
330 print "</td></tr>";
331
332 print '<tr><td class="titlefield">';
333 print $form->editfieldkey($form->textwithpicto($langs->trans('MaxNbOfAttendees'), ''), 'max_attendees', '', $projectstatic, 0, 'integer:3', '', 0, 0, 'projectid');
334 print '</td><td class="valuefield">';
335 print $form->editfieldval($form->textwithpicto($langs->trans('MaxNbOfAttendees'), ''), 'max_attendees', $projectstatic->max_attendees, $projectstatic, 0, 'integer:3', '', null, null, '', 0, '', 'projectid');
336 print "</td></tr>";
337
338 // Link to ICS for the event
339 print '<tr><td class="titlefield valignmiddle">'.$langs->trans("EventOrganizationICSLinkProject").'</td><td class="valuefield">';
340 // Define $urlwithroot
341 $urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
342 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
343
344 // Show message
345 $message = '<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.'/public/agenda/agendaexport.php?format=ical'.($conf->entity > 1 ? "&entity=".$conf->entity : "");
346 $message .= '&exportkey='.urlencode(getDolGlobalString('MAIN_AGENDA_XCAL_EXPORTKEY', '...'));
347 $message .= "&project=".$projectstatic->id.'&module='.urlencode('project@eventorganization').'&file='.urlencode('calendar-'.$projectstatic->ref.'.ics').'&output=file">'.$langs->trans('DownloadICSLink').img_picto('', 'download', 'class="paddingleft"').'</a>';
348 print $message;
349 print "</td></tr>";
350
351 // Link for ICS for conference or booth
352 print '<tr><td class="titlefield valignmiddle">'.$langs->trans("EventOrganizationICSLink").'</td><td>';
353 // Define $urlwithroot
354 $urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
355 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
356
357 // Show message
358 $message = '<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.'/public/agenda/agendaexport.php?format=ical'.($conf->entity > 1 ? "&entity=".$conf->entity : "");
359 $message .= '&exportkey='.urlencode(getDolGlobalString('MAIN_AGENDA_XCAL_EXPORTKEY', '...'));
360 $message .= "&project=".$projectstatic->id.'&module='.urlencode('@eventorganization').'&status='.ConferenceOrBooth::STATUS_CONFIRMED.'">'.$langs->trans('DownloadICSLink').img_picto('', 'download', 'class="paddingleft"').'</a>';
361 print $message;
362 print "</td></tr>";
363
364 // Link to the submit vote/register page
365 print '<tr><td>';
366 //print '<span class="opacitymedium">';
367 print $form->textwithpicto($langs->trans("SuggestOrVoteForConfOrBooth"), $langs->trans("EvntOrgRegistrationHelpMessage"));
368 //print '</span>';
369 print '</td><td>';
370 $linksuggest = $dolibarr_main_url_root.'/public/project/index.php?id='.((int) $projectstatic->id);
371 $encodedsecurekey = dol_hash(getDolGlobalString('EVENTORGANIZATION_SECUREKEY').'conferenceorbooth'.((int) $projectstatic->id), 'md5');
372 $linksuggest .= '&securekey='.urlencode($encodedsecurekey);
373 //print '<div class="urllink">';
374 //print '<input type="text" value="'.$linksuggest.'" id="linkregister" class="quatrevingtpercent paddingrightonly">';
375 print '<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$linksuggest.'" class="quatrevingtpercent">'.$linksuggest.'</a></div>';
376 print '<a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.'">'.img_picto('', 'globe').'</a>';
377 //print '</div>';
378 //print ajax_autoselect("linkregister");
379 print '</td></tr>';
380
381 // Link to the subscribe
382 print '<tr><td>';
383 //print '<span class="opacitymedium">';
384 print $langs->trans("PublicAttendeeSubscriptionGlobalPage");
385 //print '</span>';
386 print '</td><td>';
387 $link_subscription = $dolibarr_main_url_root.'/public/eventorganization/attendee_new.php?id='.((int) $projectstatic->id).'&type=global';
388 $encodedsecurekey = dol_hash(getDolGlobalString('EVENTORGANIZATION_SECUREKEY').'conferenceorbooth'.((int) $projectstatic->id), 'md5');
389 $link_subscription .= '&securekey='.urlencode($encodedsecurekey);
390 //print '<div class="urllink">';
391 //print '<input type="text" value="'.$linkregister.'" id="linkregister" class="quatrevingtpercent paddingrightonly">';
392 print '<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$link_subscription.'" class="quatrevingtpercent">'.$link_subscription.'</a></div>';
393 print '<a target="_blank" rel="noopener noreferrer" href="'.$link_subscription.'">'.img_picto('', 'globe').'</a>';
394 //print '</div>';
395 //print ajax_autoselect("linkregister");
396 print '</td></tr>';
397
398 print '</table>';
399
400 print '</div>';
401 print '</div>';
402
403 print '<div class="clearboth"></div>';
404
405 print dol_get_fiche_end();
406
407 print '<br>';
408}
409
410if ($object->id) {
411 /*
412 * Show tabs
413 */
414 $head = conferenceorboothPrepareHead($object, $withproject);
415
416 print dol_get_fiche_head($head, 'document', $langs->trans("ConferenceOrBooth"), -1, $object->picto);
417
418
419 // Build file list
420 $filearray = dol_dir_list($upload_dir, "files", 0, '', '(\.meta|_preview.*\.png)$', $sortfield, (strtolower($sortorder) == 'desc' ? SORT_DESC : SORT_ASC), 1);
421 $totalsize = 0;
422 foreach ($filearray as $key => $file) {
423 $totalsize += $file['size'];
424 }
425
426 // Object card
427 //-----------------------------------------------
428 $linkback = '<a href="'.dol_buildpath('/eventorganization/conferenceorbooth_list.php', 1).'?projectid='.$object->fk_project.$withProjectUrl.'">'.$langs->trans("BackToList").'</a>';
429
430 $morehtmlref = '<div class="refidno">';
431 $morehtmlref .= '</div>';
432
433 dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref);
434
435 print '<div class="fichecenter">';
436
437 print '<div class="underbanner clearboth"></div>';
438 print '<table class="border centpercent tableforfield">';
439
440 // Number of files
441 print '<tr><td class="titlefield">'.$langs->trans("NbOfAttachedFiles").'</td><td colspan="3">'.count($filearray).'</td></tr>';
442
443 // Total size
444 print '<tr><td>'.$langs->trans("TotalSizeOfAttachedFiles").'</td><td colspan="3">'.$totalsize.' '.$langs->trans("bytes").'</td></tr>';
445
446 print '</table>';
447
448 print '</div>';
449
450 print dol_get_fiche_end();
451
452 $modulepart = 'eventorganization';
453 $param = '&id='.$object->id;
454 //$param = '';
455 if ($withproject) {
456 $param .= '&withproject=1';
457 }
458 //$relativepathwithnofile='conferenceorbooth/' . dol_sanitizeFileName($object->id).'/';
459 $relativepathwithnofile = 'conferenceorbooth/'.dol_sanitizeFileName($object->ref).'/';
460
461 include_once DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
462} else {
463 accessforbidden('', 0, 1);
464}
465
466// End of page
467llxFooter();
468$db->close();
$id
Support class for third parties, contacts, members, users or resources.
Definition account.php:47
if(! $sortfield) if(! $sortorder) $object
Definition account.php:100
global $dolibarr_main_url_root
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
Definition wrapper.php:91
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.
Definition wrapper.php:73
Class for ConferenceOrBooth.
Class to manage standard extra fields.
Class to manage generation of HTML components Only common components must be here.
Class to manage projects.
conferenceorboothPrepareHead($object, $with_project=0)
Prepare array of tabs for ConferenceOrBooth.
dol_dir_list($utf8_path, $types="all", $recursive=0, $filter="", $excludefilter=null, $sortcriteria="name", $sortorder=SORT_ASC, $mode=0, $nohook=0, $relativename="", $donotfollowsymlinks=0, $nbsecondsold=0)
Scan a directory and return a list of files/directories.
Definition files.lib.php:64
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2, $allowothertags=array())
Show picto whatever it's its name (generic function)
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0, $morecssdiv='')
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
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_htmlentitiesbr($stringtoencode, $nl2brmode=0, $pagecodefrom='UTF-8', $removelasteolbr=1)
This function is called to encode a string into a HTML string but differs from htmlentities because a...
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.
get_exdir($num, $level, $alpha, $withoutslash, $object, $modulepart='')
Return a path to have a the directory according to object where files are stored.
project_prepare_head(Project $project, $moreparam='')
Prepare array with list of tabs.
dol_hash($chain, $type='0', $nosalt=0, $mode=0)
Returns a hash (non reversible encryption) of a string.
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.