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