dolibarr 21.0.0-beta
conferenceorbooth_contact.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 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
28// Load Dolibarr environment
29require '../main.inc.php';
30
31require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/project.lib.php';
33require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
34require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
35require_once DOL_DOCUMENT_ROOT.'/eventorganization/class/conferenceorbooth.class.php';
36require_once DOL_DOCUMENT_ROOT.'/eventorganization/lib/eventorganization_conferenceorbooth.lib.php';
37require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
38
39
50// Load translation files required by the page
51$langs->loadLangs(array('companies', 'eventorganization', 'mails', 'others', 'projects'));
52
53// Variables GET
54$id = GETPOSTINT('id');
55$ref = GETPOST('ref', 'alpha');
56$lineid = GETPOSTINT('lineid');
57$socid = GETPOSTINT('socid');
58
59$action = GETPOST('action', 'aZ09');
60$confirm = GETPOST('confirm', 'alpha');
61$cancel = GETPOST('cancel', 'aZ09');
62$contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'conferenceorboothcard'; // To manage different context of search
63$backtopage = GETPOST('backtopage', 'alpha');
64$backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');
65
66$withproject = GETPOSTINT('withproject');
67
68
69// Initialize a technical objects
70$object = new ConferenceOrBooth($db);
71$extrafields = new ExtraFields($db);
72$projectstatic = new Project($db);
73$diroutputmassaction = $conf->eventorganization->dir_output.'/temp/massgeneration/'.$user->id;
74$hookmanager->initHooks(array('conferenceorboothcontact', 'globalcard')); // Note that conf->hooks_modules contains array
75
76// Fetch optionals attributes and labels
77$extrafields->fetch_name_optionals_label($object->table_element);
78
79$search_array_options = $extrafields->getOptionalsFromPost($object->table_element, '', 'search_');
80
81// Load object
82include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be 'include', not 'include_once'.
83
84// Security check
85if ($user->socid > 0) {
87}
88
89$isdraft = (($object->status == $object::STATUS_DRAFT) ? 1 : 0);
90$result = restrictedArea($user, 'eventorganization', $object->id, '', '', 'fk_soc', 'rowid', $isdraft);
91
92$permissiontoread = $user->hasRight('eventorganization', 'read');
93$permissiontoadd = $user->hasRight('eventorganization', 'write'); // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
94$permissiontodelete = $user->hasRight('eventorganization', 'delete') || ($permissiontoadd && isset($object->status) && $object->status == $object::STATUS_DRAFT);
95$permissionnote = $user->hasRight('eventorganization', 'write'); // Used by the include of actions_setnotes.inc.php
96$permissiondellink = $user->hasRight('eventorganization', 'write'); // Used by the include of actions_dellink.inc.php
97$upload_dir = $conf->eventorganization->multidir_output[isset($object->entity) ? $object->entity : 1];
98
99// Security check
100if ($user->socid > 0) {
102}
103$isdraft = (($object->status == $object::STATUS_DRAFT) ? 1 : 0);
104$result = restrictedArea($user, 'eventorganization', $object->id, '', '', 'fk_soc', 'rowid', $isdraft);
105
106if (!$permissiontoread) {
108}
109
110
111/*
112 * Actions
113 */
114
115$parameters = array();
116$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
117if ($reshook < 0) {
118 setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
119}
120
121if ($action == 'addcontact' && $permission) { // Add a new contact
122 $contactid = (GETPOST('userid') ? GETPOSTINT('userid') : GETPOSTINT('contactid'));
123 $typeid = (GETPOST('typecontact') ? GETPOST('typecontact') : GETPOST('type'));
124 $result = $object->add_contact($contactid, $typeid, GETPOST("source", 'aZ09'));
125
126 if ($result >= 0) {
127 header("Location: ".$_SERVER['PHP_SELF']."?id=".((int) $object->id).(!empty($withproject) ? '&withproject=1' : ''));
128 exit;
129 } else {
130 if ($object->error == 'DB_ERROR_RECORD_ALREADY_EXISTS') {
131 $langs->load("errors");
132 setEventMessages($langs->trans("ErrorThisContactIsAlreadyDefinedAsThisType"), null, 'errors');
133 } else {
134 setEventMessages($object->error, $object->errors, 'errors');
135 }
136 }
137} elseif ($action == 'swapstatut' && $permission) {
138 // Toggle the status of a contact
139 $result = $object->swapContactStatus(GETPOSTINT('ligne'));
140} elseif ($action == 'deletecontact' && $permission) {
141 // Deletes a contact
142 $result = $object->delete_contact($lineid);
143
144 if ($result >= 0) {
145 header("Location: ".$_SERVER['PHP_SELF']."?id=".((int) $object->id).(!empty($withproject) ? '&withproject=1' : ''));
146 exit;
147 } else {
148 dol_print_error($db);
149 }
150}
151
152
153/*
154 * View
155 */
156
157$form = new Form($db);
158$formcompany = new FormCompany($db);
159$contactstatic = new Contact($db);
160$userstatic = new User($db);
161
162$title = $langs->trans('ConferenceOrBooth')." - ".$langs->trans('ContactsAddresses');
163$help_url='EN:Module_Event_Organization';
164
165llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-eventorganization page-card_contact');
166
167
168/* *************************************************************************** */
169/* */
170/* View and edit mode */
171/* */
172/* *************************************************************************** */
173
174$result = $projectstatic->fetch($object->fk_project);
175if (getDolGlobalString('PROJECT_ALLOW_COMMENT_ON_PROJECT') && method_exists($projectstatic, 'fetchComments') && empty($projectstatic->comments)) {
176 $projectstatic->fetchComments();
177}
178if (!empty($projectstatic->socid)) {
179 $projectstatic->fetch_thirdparty();
180}
181$withProjectUrl = '';
182$object->project = clone $projectstatic;
183
184if (!empty($withproject)) {
185 // Tabs for project
186 $tab = 'eventorganisation';
187 $withProjectUrl = "&withproject=1";
188 $head = project_prepare_head($projectstatic);
189 print dol_get_fiche_head($head, $tab, $langs->trans("Project"), -1, ($projectstatic->public ? 'projectpub' : 'project'), 0, '', '');
190
191 $param = ($mode == 'mine' ? '&mode=mine' : '');
192
193 // Project card
194
195 $linkback = '<a href="'.DOL_URL_ROOT.'/projet/list.php?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>';
196
197 $morehtmlref = '<div class="refidno">';
198 // Title
199 $morehtmlref .= $projectstatic->title;
200 // Thirdparty
201 if (isset($projectstatic->thirdparty->id) && $projectstatic->thirdparty->id > 0) {
202 $morehtmlref .= '<br>'.$projectstatic->thirdparty->getNomUrl(1, 'project');
203 }
204 $morehtmlref .= '</div>';
205
206 // Define a complementary filter for search of next/prev ref.
207 if (!$user->hasRight('project', 'all', 'lire')) {
208 $objectsListId = $projectstatic->getProjectsAuthorizedForUser($user, 0, 0);
209 $projectstatic->next_prev_filter = "rowid:IN:".$db->sanitize(count($objectsListId) ? implode(',', array_keys($objectsListId)) : '0');
210 }
211
212 dol_banner_tab($projectstatic, 'project_ref', $linkback, 1, 'ref', 'ref', $morehtmlref);
213
214 print '<div class="fichecenter">';
215 print '<div class="fichehalfleft">';
216 print '<div class="underbanner clearboth"></div>';
217
218 print '<table class="border tableforfield centpercent">';
219
220 // Usage
221 if (getDolGlobalString('PROJECT_USE_OPPORTUNITIES') || !getDolGlobalString('PROJECT_HIDE_TASKS') || isModEnabled('eventorganization')) {
222 print '<tr><td class="tdtop">';
223 print $langs->trans("Usage");
224 print '</td>';
225 print '<td>';
226 if (getDolGlobalString('PROJECT_USE_OPPORTUNITIES')) {
227 print '<input type="checkbox" disabled name="usage_opportunity"'.(GETPOSTISSET('usage_opportunity') ? (GETPOST('usage_opportunity', 'alpha') != '' ? ' checked="checked"' : '') : ($projectstatic->usage_opportunity ? ' checked="checked"' : '')).'"> ';
228 $htmltext = $langs->trans("ProjectFollowOpportunity");
229 print $form->textwithpicto($langs->trans("ProjectFollowOpportunity"), $htmltext);
230 print '<br>';
231 }
232 if (!getDolGlobalString('PROJECT_HIDE_TASKS')) {
233 print '<input type="checkbox" disabled name="usage_task"'.(GETPOSTISSET('usage_task') ? (GETPOST('usage_task', 'alpha') != '' ? ' checked="checked"' : '') : ($projectstatic->usage_task ? ' checked="checked"' : '')).'"> ';
234 $htmltext = $langs->trans("ProjectFollowTasks");
235 print $form->textwithpicto($langs->trans("ProjectFollowTasks"), $htmltext);
236 print '<br>';
237 }
238 if (!getDolGlobalString('PROJECT_HIDE_TASKS') && getDolGlobalString('PROJECT_BILL_TIME_SPENT')) {
239 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"' : '')).'"> ';
240 $htmltext = $langs->trans("ProjectBillTimeDescription");
241 print $form->textwithpicto($langs->trans("BillTime"), $htmltext);
242 print '<br>';
243 }
244 if (isModEnabled('eventorganization')) {
245 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"' : '')).'"> ';
246 $htmltext = $langs->trans("EventOrganizationDescriptionLong");
247 print $form->textwithpicto($langs->trans("ManageOrganizeEvent"), $htmltext);
248 }
249 print '</td></tr>';
250 }
251
252 // Visibility
253 print '<tr><td class="titlefield">'.$langs->trans("Visibility").'</td><td>';
254 if ($projectstatic->public) {
255 print $langs->trans('SharedProject');
256 } else {
257 print $langs->trans('PrivateProject');
258 }
259 print '</td></tr>';
260
261 // Date start - end
262 print '<tr><td>'.$langs->trans("DateStart").' - '.$langs->trans("DateEnd").'</td><td>';
263 $start = dol_print_date($projectstatic->date_start, 'day');
264 print($start ? $start : '?');
265 $end = dol_print_date($projectstatic->date_end, 'day');
266 print ' - ';
267 print($end ? $end : '?');
268 if ($projectstatic->hasDelay()) {
269 print img_warning("Late");
270 }
271 print '</td></tr>';
272
273 // Budget
274 print '<tr><td>'.$langs->trans("Budget").'</td><td>';
275 if (strcmp($projectstatic->budget_amount, '')) {
276 print price($projectstatic->budget_amount, 0, $langs, 1, 0, 0, $conf->currency);
277 }
278 print '</td></tr>';
279
280 // Other attributes
281 $cols = 2;
282 $objectconf = $object;
283 $object = $projectstatic;
284 include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
285 $object = $objectconf;
286
287 print '</table>';
288
289 print '</div>';
290
291 print '<div class="fichehalfright">';
292 print '<div class="underbanner clearboth"></div>';
293
294 print '<table class="border tableforfield centpercent">';
295
296 // Description
297 print '<td class="tdtop">'.$langs->trans("Description").'</td><td>';
298 print nl2br($projectstatic->description);
299 print '</td></tr>';
300
301 // Categories
302 if (isModEnabled('category')) {
303 print '<tr><td class="valignmiddle">'.$langs->trans("Categories").'</td><td>';
304 print $form->showCategories($projectstatic->id, Categorie::TYPE_PROJECT, 1);
305 print "</td></tr>";
306 }
307
308 print '<tr><td>';
309 $typeofdata = 'checkbox:'.($projectstatic->accept_conference_suggestions ? ' checked="checked"' : '');
310 $htmltext = $langs->trans("AllowUnknownPeopleSuggestConfHelp");
311 print $form->editfieldkey('AllowUnknownPeopleSuggestConf', 'accept_conference_suggestions', '', $projectstatic, 0, $typeofdata, '', 0, 0, 'projectid', $htmltext);
312 print '</td><td>';
313 print $form->editfieldval('AllowUnknownPeopleSuggestConf', 'accept_conference_suggestions', '1', $projectstatic, 0, $typeofdata, '', null, 0, '', 0, '', 'projectid');
314 print "</td></tr>";
315
316 print '<tr><td>';
317 $typeofdata = 'checkbox:'.($projectstatic->accept_booth_suggestions ? ' checked="checked"' : '');
318 $htmltext = $langs->trans("AllowUnknownPeopleSuggestBoothHelp");
319 print $form->editfieldkey('AllowUnknownPeopleSuggestBooth', 'accept_booth_suggestions', '', $projectstatic, 0, $typeofdata, '', 0, 0, 'projectid', $htmltext);
320 print '</td><td>';
321 print $form->editfieldval('AllowUnknownPeopleSuggestBooth', 'accept_booth_suggestions', '1', $projectstatic, 0, $typeofdata, '', null, 0, '', 0, '', 'projectid');
322 print "</td></tr>";
323
324 print '<tr><td>';
325 print $form->editfieldkey($form->textwithpicto($langs->trans('PriceOfBooth'), $langs->trans("PriceOfBoothHelp")), 'price_booth', '', $projectstatic, 0, 'amount', '', 0, 0, 'projectid');
326 print '</td><td>';
327 print $form->editfieldval($form->textwithpicto($langs->trans('PriceOfBooth'), $langs->trans("PriceOfBoothHelp")), 'price_booth', $projectstatic->price_booth, $projectstatic, 0, 'amount', '', null, 0, '', 0, '', 'projectid');
328 print "</td></tr>";
329
330 print '<tr><td>';
331 print $form->editfieldkey($form->textwithpicto($langs->trans('PriceOfRegistration'), $langs->trans("PriceOfRegistrationHelp")), 'price_registration', '', $projectstatic, 0, 'amount', '', 0, 0, 'projectid');
332 print '</td><td>';
333 print $form->editfieldval($form->textwithpicto($langs->trans('PriceOfRegistration'), $langs->trans("PriceOfRegistrationHelp")), 'price_registration', $projectstatic->price_registration, $projectstatic, 0, 'amount', '', null, 0, '', 0, '', 'projectid');
334 print "</td></tr>";
335
336 print '<tr><td valign="middle">'.$langs->trans("EventOrganizationICSLink").'</td><td>';
337 // Define $urlwithroot
338 $urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
339 $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
340
341 // Show message
342 $message = '<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.'/public/agenda/agendaexport.php?format=ical'.($conf->entity > 1 ? "&entity=".$conf->entity : "");
343 $message .= '&exportkey='.urlencode(getDolGlobalString('MAIN_AGENDA_XCAL_EXPORTKEY', '...'));
344 $message .= "&project=".$projectstatic->id.'&module='.urlencode('@eventorganization').'&status='.ConferenceOrBooth::STATUS_CONFIRMED.'">'.$langs->trans('DownloadICSLink').img_picto('', 'download', 'class="paddingleft"').'</a>';
345 print $message;
346 print "</td></tr>";
347
348 // Link to the submit vote/register page
349 print '<tr><td>';
350 //print '<span class="opacitymedium">';
351 print $form->textwithpicto($langs->trans("SuggestOrVoteForConfOrBooth"), $langs->trans("EvntOrgRegistrationHelpMessage"));
352 //print '</span>';
353 print '</td><td>';
354 $linksuggest = $dolibarr_main_url_root.'/public/project/index.php?id='.((int) $projectstatic->id);
355 $encodedsecurekey = dol_hash(getDolGlobalString('EVENTORGANIZATION_SECUREKEY').'conferenceorbooth'.((int) $projectstatic->id), 'md5');
356 $linksuggest .= '&securekey='.urlencode($encodedsecurekey);
357 //print '<div class="urllink">';
358 //print '<input type="text" value="'.$linksuggest.'" id="linkregister" class="quatrevingtpercent paddingrightonly">';
359 print '<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$linksuggest.'" class="quatrevingtpercent">'.$linksuggest.'</a></div>';
360 print '<a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.'">'.img_picto('', 'globe').'</a>';
361 //print '</div>';
362 //print ajax_autoselect("linkregister");
363 print '</td></tr>';
364
365 // Link to the subscribe
366 print '<tr><td>';
367 //print '<span class="opacitymedium">';
368 print $langs->trans("PublicAttendeeSubscriptionGlobalPage");
369 //print '</span>';
370 print '</td><td>';
371 $link_subscription = $dolibarr_main_url_root.'/public/eventorganization/attendee_new.php?id='.((int) $projectstatic->id).'&type=global';
372 $encodedsecurekey = dol_hash(getDolGlobalString('EVENTORGANIZATION_SECUREKEY').'conferenceorbooth'.((int) $projectstatic->id), 'md5');
373 $link_subscription .= '&securekey='.urlencode($encodedsecurekey);
374 //print '<div class="urllink">';
375 //print '<input type="text" value="'.$linkregister.'" id="linkregister" class="quatrevingtpercent paddingrightonly">';
376 print '<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$link_subscription.'" class="quatrevingtpercent">'.$link_subscription.'</a></div>';
377 print '<a target="_blank" rel="noopener noreferrer" rel="noopener noreferrer" href="'.$link_subscription.'">'.img_picto('', 'globe').'</a>';
378 //print '</div>';
379 //print ajax_autoselect("linkregister");
380 print '</td></tr>';
381
382 print '</table>';
383
384 print '</div>';
385 print '</div>';
386
387 print '<div class="clearboth"></div>';
388
389 print dol_get_fiche_end();
390
391 print '<br>';
392}
393
394if ($object->id) {
395 /*
396 * Show tabs
397 */
398 $head = conferenceorboothPrepareHead($object, $withproject);
399
400 print dol_get_fiche_head($head, 'contact', $langs->trans("ConferenceOrBooth"), -1, $object->picto);
401
402 $linkback = '<a href="'.dol_buildpath('/eventorganization/conferenceorbooth_list.php', 1).'?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
403
404 $morehtmlref = '<div class="refidno">';
405 /*
406 // Ref customer
407 $morehtmlref.=$form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, 0, 'string', '', 0, 1);
408 $morehtmlref.=$form->editfieldval("RefCustomer", 'ref_client', $object->ref_client, $object, 0, 'string', '', null, null, '', 1);
409 // Thirdparty
410 $morehtmlref.='<br>'.$langs->trans('ThirdParty') . ' : ' . (is_object($object->thirdparty) ? $object->thirdparty->getNomUrl(1) : '');
411 // Project
412 if (isModEnabled('project'))
413 {
414 $langs->load("projects");
415 $morehtmlref.='<br>'.$langs->trans('Project') . ' ';
416 if ($permissiontoadd)
417 {
418 if ($action != 'classify')
419 //$morehtmlref.='<a class="editfielda" href="' . $_SERVER['PHP_SELF'] . '?action=classify&token='.newToken().'&id=' . $object->id . '">' . img_edit($langs->transnoentitiesnoconv('SetProject')) . '</a> : ';
420 $morehtmlref.=' : ';
421 if ($action == 'classify') {
422 //$morehtmlref.=$form->form_project($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->socid, $object->fk_project, 'projectid', 0, 0, 1, 1);
423 $morehtmlref.='<form method="post" action="'.$_SERVER['PHP_SELF'].'?id='.$object->id.'">';
424 $morehtmlref.='<input type="hidden" name="action" value="classin">';
425 $morehtmlref.='<input type="hidden" name="token" value="'.newToken().'">';
426 $morehtmlref.=$formproject->select_projects($object->socid, $object->fk_project, 'projectid', $maxlength, 0, 1, 0, 1, 0, 0, '', 1);
427 $morehtmlref.='<input type="submit" class="button valignmiddle" value="'.$langs->trans("Modify").'">';
428 $morehtmlref.='</form>';
429 } else {
430 $morehtmlref.=$form->form_project($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->socid, $object->fk_project, 'none', 0, 0, 0, 1);
431 }
432 } else {
433 if (!empty($object->fk_project)) {
434 $proj = new Project($db);
435 $proj->fetch($object->fk_project);
436 $morehtmlref .= ': '.$proj->getNomUrl();
437 } else {
438 $morehtmlref .= '';
439 }
440 }
441 }*/
442 $morehtmlref .= '</div>';
443
444 dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref, '', 0, '', '', 1);
445
446 print dol_get_fiche_end();
447
448 print '<br>';
449
450 // Contacts lines (modules that overwrite templates must declare this into descriptor)
451 $dirtpls = array_merge($conf->modules_parts['tpl'], array('/core/tpl'));
452 foreach ($dirtpls as $reldir) {
453 $res = @include dol_buildpath($reldir.'/contacts.tpl.php');
454 if ($res) {
455 break;
456 }
457 }
458}
459
460// End of page
461llxFooter();
462$db->close();
$id
Definition account.php:48
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Definition card.php:66
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
Definition wrapper.php:87
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:71
Class for ConferenceOrBooth.
Class to manage contact/addresses.
Class to manage standard extra fields.
Class to build HTML component for third parties management Only common components are here.
Class to manage generation of HTML components Only common components must be here.
Class to manage projects.
Class to manage Dolibarr users.
conferenceorboothPrepareHead($object, $with_project=0)
Prepare array of tabs for ConferenceOrBooth.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
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)
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=null, $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
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.
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.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
Definition member.php:79
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', $nosalt=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.