dolibarr  16.0.5
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  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <https://www.gnu.org/licenses/>.
17  */
18 
25 require '../main.inc.php';
26 
27 require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
28 require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
29 require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
30 require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
31 require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
32 require_once DOL_DOCUMENT_ROOT.'/core/lib/project.lib.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.'/categories/class/categorie.class.php';
36 
37 // Load translation files required by the page
38 $langs->loadLangs(array("eventorganization", "projects", "companies", "other", "mails"));
39 
40 $action = GETPOST('action', 'aZ09');
41 $confirm = GETPOST('confirm');
42 $cancel = GETPOST('cancel', 'aZ09');
43 $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'conferenceorboothcard'; // To manage different context of search
44 $backtopage = GETPOST('backtopage', 'alpha');
45 $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');
46 
47 $id = GETPOST('id', 'int');
48 $ref = GETPOST('ref', 'alpha');
49 $withproject = GETPOST('withproject', 'int');
50 $project_ref = GETPOST('project_ref', 'alpha');
51 
52 
53 // Get parameters
54 $limit = GETPOST('limit', 'int') ? GETPOST('limit', 'int') : $conf->liste_limit;
55 $sortfield = GETPOST('sortfield', 'aZ09comma');
56 $sortorder = GETPOST('sortorder', 'aZ09comma');
57 $page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOST("page", 'int');
58 if (empty($page) || $page == -1) {
59  $page = 0;
60 } // If $page is not defined, or '' or -1
61 $offset = $limit * $page;
62 $pageprev = $page - 1;
63 $pagenext = $page + 1;
64 if (!$sortorder) {
65  $sortorder = "ASC";
66 }
67 if (!$sortfield) {
68  $sortfield = "name";
69 }
70 //if (! $sortfield) $sortfield="position_name";
71 
72 // Initialize technical objects
73 $object = new ConferenceOrBooth($db);
74 $extrafields = new ExtraFields($db);
75 $projectstatic = new Project($db);
76 $diroutputmassaction = $conf->eventorganization->dir_output.'/temp/massgeneration/'.$user->id;
77 $hookmanager->initHooks(array('conferenceorboothdocument', 'globalcard')); // Note that conf->hooks_modules contains array
78 
79 // Fetch optionals attributes and labels
80 $extrafields->fetch_name_optionals_label($object->table_element);
81 
82 $search_array_options = $extrafields->getOptionalsFromPost($object->table_element, '', 'search_');
83 
84 // Load object
85 include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once.
86 
87 if ($id > 0 || !empty($ref)) {
88  $upload_dir = $conf->eventorganization->multidir_output[$object->entity ? $object->entity : $conf->entity]."/conferenceorbooth/".get_exdir(0, 0, 0, 1, $object);
89 }
90 
91 $permissiontoread = $user->rights->eventorganization->read;
92 $permissiontoadd = $user->rights->eventorganization->write; // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
93 $permissiontodelete = $user->rights->eventorganization->delete || ($permissiontoadd && isset($object->status) && $object->status == $object::STATUS_DRAFT);
94 $permissionnote = $user->rights->eventorganization->write; // Used by the include of actions_setnotes.inc.php
95 $permissiondellink = $user->rights->eventorganization->write; // Used by the include of actions_dellink.inc.php
96 $upload_dir = $conf->eventorganization->multidir_output[isset($object->entity) ? $object->entity : 1];
97 
98 // Security check
99 if ($user->socid > 0) {
100  accessforbidden();
101 }
102 $isdraft = (($object->status== $object::STATUS_DRAFT) ? 1 : 0);
103 $result = restrictedArea($user, 'eventorganization', $object->id, '', '', 'fk_soc', 'rowid', $isdraft);
104 
105 if (!$permissiontoread) {
106  accessforbidden();
107 }
108 
109 
110 /*
111  * Actions
112  */
113 
114 $parameters = array();
115 $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
116 if ($reshook < 0) {
117  setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
118 }
119 
120 include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
121 
122 
123 /*
124  * View
125  */
126 
127 $form = new Form($db);
128 
129 $title = $langs->trans("ConferenceOrBooth").' - '.$langs->trans("Files");
130 $help_url = '';
131 llxHeader('', $title, $help_url);
132 
133 $result = $projectstatic->fetch($object->fk_project);
134 if (!empty($conf->global->PROJECT_ALLOW_COMMENT_ON_PROJECT) && method_exists($projectstatic, 'fetchComments') && empty($projectstatic->comments)) {
135  $projectstatic->fetchComments();
136 }
137 if (!empty($projectstatic->socid)) {
138  $projectstatic->fetch_thirdparty();
139 }
140 
141 $withProjectUrl='';
142 $object->project = clone $projectstatic;
143 
144 if (!empty($withproject)) {
145  // Tabs for project
146  $tab = 'eventorganisation';
147  $withProjectUrl = "&withproject=1";
148  $head = project_prepare_head($projectstatic);
149  print dol_get_fiche_head($head, $tab, $langs->trans("Project"), -1, ($projectstatic->public ? 'projectpub' : 'project'), 0, '', '');
150 
151  // Project card
152 
153  $linkback = '<a href="'.DOL_URL_ROOT.'/projet/list.php?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>';
154 
155  $morehtmlref = '<div class="refidno">';
156  // Title
157  $morehtmlref .= $projectstatic->title;
158  // Thirdparty
159  if (isset($projectstatic->thirdparty->id) && $projectstatic->thirdparty->id > 0) {
160  $morehtmlref .= '<br>'.$langs->trans('ThirdParty').' : '.$projectstatic->thirdparty->getNomUrl(1, 'project');
161  }
162  $morehtmlref .= '</div>';
163 
164  // Define a complementary filter for search of next/prev ref.
165  if (empty($user->rights->project->all->lire)) {
166  $objectsListId = $projectstatic->getProjectsAuthorizedForUser($user, 0, 0);
167  $projectstatic->next_prev_filter = " rowid IN (".$db->sanitize(count($objectsListId) ?join(',', array_keys($objectsListId)) : '0').")";
168  }
169 
170  dol_banner_tab($projectstatic, 'project_ref', $linkback, 1, 'ref', 'ref', $morehtmlref);
171 
172  print '<div class="fichecenter">';
173  print '<div class="fichehalfleft">';
174  print '<div class="underbanner clearboth"></div>';
175 
176  print '<table class="border tableforfield centpercent">';
177 
178  // Usage
179  if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES) || empty($conf->global->PROJECT_HIDE_TASKS) || !empty($conf->eventorganization->enabled)) {
180  print '<tr><td class="tdtop">';
181  print $langs->trans("Usage");
182  print '</td>';
183  print '<td>';
184  if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES)) {
185  print '<input type="checkbox" disabled name="usage_opportunity"'.(GETPOSTISSET('usage_opportunity') ? (GETPOST('usage_opportunity', 'alpha') != '' ? ' checked="checked"' : '') : ($projectstatic->usage_opportunity ? ' checked="checked"' : '')).'"> ';
186  $htmltext = $langs->trans("ProjectFollowOpportunity");
187  print $form->textwithpicto($langs->trans("ProjectFollowOpportunity"), $htmltext);
188  print '<br>';
189  }
190  if (empty($conf->global->PROJECT_HIDE_TASKS)) {
191  print '<input type="checkbox" disabled name="usage_task"'.(GETPOSTISSET('usage_task') ? (GETPOST('usage_task', 'alpha') != '' ? ' checked="checked"' : '') : ($projectstatic->usage_task ? ' checked="checked"' : '')).'"> ';
192  $htmltext = $langs->trans("ProjectFollowTasks");
193  print $form->textwithpicto($langs->trans("ProjectFollowTasks"), $htmltext);
194  print '<br>';
195  }
196  if (empty($conf->global->PROJECT_HIDE_TASKS) && !empty($conf->global->PROJECT_BILL_TIME_SPENT)) {
197  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"' : '')).'"> ';
198  $htmltext = $langs->trans("ProjectBillTimeDescription");
199  print $form->textwithpicto($langs->trans("BillTime"), $htmltext);
200  print '<br>';
201  }
202  if (!empty($conf->eventorganization->enabled)) {
203  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"' : '')).'"> ';
204  $htmltext = $langs->trans("EventOrganizationDescriptionLong");
205  print $form->textwithpicto($langs->trans("ManageOrganizeEvent"), $htmltext);
206  }
207  print '</td></tr>';
208  }
209 
210  // Visibility
211  print '<tr><td class="titlefield">'.$langs->trans("Visibility").'</td><td>';
212  if ($projectstatic->public) {
213  print $langs->trans('SharedProject');
214  } else {
215  print $langs->trans('PrivateProject');
216  }
217  print '</td></tr>';
218 
219  // Date start - end
220  print '<tr><td>'.$langs->trans("DateStart").' - '.$langs->trans("DateEnd").'</td><td>';
221  $start = dol_print_date($projectstatic->date_start, 'day');
222  print ($start ? $start : '?');
223  $end = dol_print_date($projectstatic->date_end, 'day');
224  print ' - ';
225  print ($end ? $end : '?');
226  if ($projectstatic->hasDelay()) {
227  print img_warning("Late");
228  }
229  print '</td></tr>';
230 
231  // Budget
232  print '<tr><td>'.$langs->trans("Budget").'</td><td>';
233  if (strcmp($projectstatic->budget_amount, '')) {
234  print price($projectstatic->budget_amount, '', $langs, 1, 0, 0, $conf->currency);
235  }
236  print '</td></tr>';
237 
238  // Other attributes
239  $cols = 2;
240  $objectconf = $object;
241  $object = $projectstatic;
242  include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
243  $object = $objectconf;
244 
245  print '</table>';
246 
247  print '</div>';
248 
249  print '<div class="fichehalfright">';
250  print '<div class="underbanner clearboth"></div>';
251 
252  print '<table class="border tableforfield centpercent">';
253 
254  // Description
255  print '<td class="tdtop">'.$langs->trans("Description").'</td><td>';
256  print nl2br($projectstatic->description);
257  print '</td></tr>';
258 
259  // Categories
260  if (isModEnabled('categorie')) {
261  print '<tr><td class="valignmiddle">'.$langs->trans("Categories").'</td><td>';
262  print $form->showCategories($projectstatic->id, Categorie::TYPE_PROJECT, 1);
263  print "</td></tr>";
264  }
265 
266  print '<tr><td>';
267  $typeofdata = 'checkbox:'.($projectstatic->accept_conference_suggestions ? ' checked="checked"' : '');
268  $htmltext = $langs->trans("AllowUnknownPeopleSuggestConfHelp");
269  print $form->editfieldkey('AllowUnknownPeopleSuggestConf', 'accept_conference_suggestions', '', $projectstatic, 0, $typeofdata, '', 0, 0, 'projectid', $htmltext);
270  print '</td><td>';
271  print $form->editfieldval('AllowUnknownPeopleSuggestConf', 'accept_conference_suggestions', '1', $projectstatic, 0, $typeofdata, '', 0, 0, '', 0, '', 'projectid');
272  print "</td></tr>";
273 
274  print '<tr><td>';
275  $typeofdata = 'checkbox:'.($projectstatic->accept_booth_suggestions ? ' checked="checked"' : '');
276  $htmltext = $langs->trans("AllowUnknownPeopleSuggestBoothHelp");
277  print $form->editfieldkey('AllowUnknownPeopleSuggestBooth', 'accept_booth_suggestions', '', $projectstatic, 0, $typeofdata, '', 0, 0, 'projectid', $htmltext);
278  print '</td><td>';
279  print $form->editfieldval('AllowUnknownPeopleSuggestBooth', 'accept_booth_suggestions', '1', $projectstatic, 0, $typeofdata, '', 0, 0, '', 0, '', 'projectid');
280  print "</td></tr>";
281 
282  print '<tr><td>';
283  print $form->editfieldkey($form->textwithpicto($langs->trans('PriceOfBooth'), $langs->trans("PriceOfBoothHelp")), 'price_booth', '', $projectstatic, 0, 'amount', '', 0, 0, 'projectid');
284  print '</td><td>';
285  print $form->editfieldval($form->textwithpicto($langs->trans('PriceOfBooth'), $langs->trans("PriceOfBoothHelp")), 'price_booth', $projectstatic->price_booth, $projectstatic, 0, 'amount', '', 0, 0, '', 0, '', 'projectid');
286  print "</td></tr>";
287 
288  print '<tr><td>';
289  print $form->editfieldkey($form->textwithpicto($langs->trans('PriceOfRegistration'), $langs->trans("PriceOfRegistrationHelp")), 'price_registration', '', $projectstatic, 0, 'amount', '', 0, 0, 'projectid');
290  print '</td><td>';
291  print $form->editfieldval($form->textwithpicto($langs->trans('PriceOfRegistration'), $langs->trans("PriceOfRegistrationHelp")), 'price_registration', $projectstatic->price_registration, $projectstatic, 0, 'amount', '', 0, 0, '', 0, '', 'projectid');
292  print "</td></tr>";
293 
294  print '<tr><td valign="middle">'.$langs->trans("EventOrganizationICSLink").'</td><td>';
295  // Define $urlwithroot
296  $urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
297  $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT;
298 
299  // Show message
300  $message = '<a target="_blank" rel="noopener noreferrer" href="'.$urlwithroot.'/public/agenda/agendaexport.php?format=ical'.($conf->entity > 1 ? "&entity=".$conf->entity : "");
301  $message .= '&exportkey='.urlencode(getDolGlobalString('MAIN_AGENDA_XCAL_EXPORTKEY', '...'));
302  $message .= "&project=".$projectstatic->id.'&module='.urlencode('@eventorganization').'&status='.ConferenceOrBooth::STATUS_CONFIRMED.'">'.$langs->trans('DownloadICSLink').img_picto('', 'download', 'class="paddingleft"').'</a>';
303  print $message;
304  print "</td></tr>";
305 
306  // Link to the submit vote/register page
307  print '<tr><td>';
308  //print '<span class="opacitymedium">';
309  print $form->textwithpicto($langs->trans("SuggestOrVoteForConfOrBooth"), $langs->trans("EvntOrgRegistrationHelpMessage"));
310  //print '</span>';
311  print '</td><td>';
312  $linksuggest = $dolibarr_main_url_root.'/public/project/index.php?id='.((int) $projectstatic->id);
313  $encodedsecurekey = dol_hash(getDolGlobalString('EVENTORGANIZATION_SECUREKEY').'conferenceorbooth'.((int) $projectstatic->id), 'md5');
314  $linksuggest .= '&securekey='.urlencode($encodedsecurekey);
315  //print '<div class="urllink">';
316  //print '<input type="text" value="'.$linksuggest.'" id="linkregister" class="quatrevingtpercent paddingrightonly">';
317  print '<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$linksuggest.'" class="quatrevingtpercent">'.$linksuggest.'</a></div>';
318  print '<a target="_blank" rel="noopener noreferrer" href="'.$linksuggest.'">'.img_picto('', 'globe').'</a>';
319  //print '</div>';
320  //print ajax_autoselect("linkregister");
321  print '</td></tr>';
322 
323  // Link to the subscribe
324  print '<tr><td>';
325  //print '<span class="opacitymedium">';
326  print $langs->trans("PublicAttendeeSubscriptionGlobalPage");
327  //print '</span>';
328  print '</td><td>';
329  $link_subscription = $dolibarr_main_url_root.'/public/eventorganization/attendee_new.php?id='.((int) $projectstatic->id).'&type=global';
330  $encodedsecurekey = dol_hash(getDolGlobalString('EVENTORGANIZATION_SECUREKEY').'conferenceorbooth'.((int) $projectstatic->id), 'md5');
331  $link_subscription .= '&securekey='.urlencode($encodedsecurekey);
332  //print '<div class="urllink">';
333  //print '<input type="text" value="'.$linkregister.'" id="linkregister" class="quatrevingtpercent paddingrightonly">';
334  print '<div class="tdoverflowmax200 inline-block valignmiddle"><a target="_blank" href="'.$link_subscription.'" class="quatrevingtpercent">'.$link_subscription.'</a></div>';
335  print '<a target="_blank" rel="noopener noreferrer" rel="noopener noreferrer" href="'.$link_subscription.'">'.img_picto('', 'globe').'</a>';
336  //print '</div>';
337  //print ajax_autoselect("linkregister");
338  print '</td></tr>';
339 
340  print '</table>';
341 
342  print '</div>';
343  print '</div>';
344 
345  print '<div class="clearboth"></div>';
346 
347  print dol_get_fiche_end();
348 
349  print '<br>';
350 }
351 
352 if ($object->id) {
353  /*
354  * Show tabs
355  */
356  $head = conferenceorboothPrepareHead($object, $withproject);
357 
358  print dol_get_fiche_head($head, 'document', $langs->trans("ConferenceOrBooth"), -1, $object->picto);
359 
360 
361  // Build file list
362  $filearray = dol_dir_list($upload_dir, "files", 0, '', '(\.meta|_preview.*\.png)$', $sortfield, (strtolower($sortorder) == 'desc' ?SORT_DESC:SORT_ASC), 1);
363  $totalsize = 0;
364  foreach ($filearray as $key => $file) {
365  $totalsize += $file['size'];
366  }
367 
368  // Object card
369  //-----------------------------------------------
370  $linkback = '<a href="'.dol_buildpath('/eventorganization/conferenceorbooth_list.php', 1).'?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
371 
372  $morehtmlref = '<div class="refidno">';
373  $morehtmlref .= '</div>';
374 
375  dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref);
376 
377  print '<div class="fichecenter">';
378 
379  print '<div class="underbanner clearboth"></div>';
380  print '<table class="border centpercent tableforfield">';
381 
382  // Number of files
383  print '<tr><td class="titlefield">'.$langs->trans("NbOfAttachedFiles").'</td><td colspan="3">'.count($filearray).'</td></tr>';
384 
385  // Total size
386  print '<tr><td>'.$langs->trans("TotalSizeOfAttachedFiles").'</td><td colspan="3">'.$totalsize.' '.$langs->trans("bytes").'</td></tr>';
387 
388  print '</table>';
389 
390  print '</div>';
391 
392  print dol_get_fiche_end();
393 
394  $modulepart = 'eventorganization';
395  //$permission = $user->rights->eventorganization->conferenceorbooth->write;
396  $permission = 1;
397  //$permtoedit = $user->rights->eventorganization->conferenceorbooth->write;
398  $permtoedit = 1;
399  $param = '&id='.$object->id;
400  //$param = '';
401  if ($withproject) {
402  $param .= '&withproject=1';
403  }
404  //$relativepathwithnofile='conferenceorbooth/' . dol_sanitizeFileName($object->id).'/';
405  $relativepathwithnofile = 'conferenceorbooth/'.dol_sanitizeFileName($object->ref).'/';
406 
407  include_once DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
408 } else {
409  accessforbidden('', 0, 1);
410 }
411 
412 // End of page
413 llxFooter();
414 $db->close();
restrictedArea
restrictedArea($user, $features, $objectid=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.
Definition: security.lib.php:234
llxFooter
llxFooter()
Empty footer.
Definition: wrapper.php:73
Project
Class to manage projects.
Definition: project.class.php:35
GETPOST
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
Definition: functions.lib.php:484
conferenceorboothPrepareHead
conferenceorboothPrepareHead($object, $with_project=0)
Prepare array of tabs for ConferenceOrBooth.
Definition: eventorganization_conferenceorbooth.lib.php:31
img_warning
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
Definition: functions.lib.php:4521
project_prepare_head
project_prepare_head(Project $project, $moreparam='')
Prepare array with list of tabs.
Definition: project.lib.php:38
$form
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
Definition: card.php:142
dol_dir_list
dol_dir_list($path, $types="all", $recursive=0, $filter="", $excludefilter=null, $sortcriteria="name", $sortorder=SORT_ASC, $mode=0, $nohook=0, $relativename="", $donotfollowsymlinks=0)
Scan a directory and return a list of files/directories.
Definition: files.lib.php:60
dol_banner_tab
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.
Definition: functions.lib.php:2046
$help_url
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.
Definition: agenda.php:116
dol_print_date
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
Definition: functions.lib.php:2514
img_picto
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
Definition: functions.lib.php:3880
dol_hash
dol_hash($chain, $type='0')
Returns a hash of a string.
Definition: security.lib.php:104
get_exdir
get_exdir($num, $level, $alpha, $withoutslash, $object, $modulepart='')
Return a path to have a the directory according to object where files are stored.
Definition: functions.lib.php:6549
ConferenceOrBooth
Class for ConferenceOrBooth.
Definition: conferenceorbooth.class.php:33
dol_get_fiche_head
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='')
Show tabs of a record.
Definition: functions.lib.php:1822
getDolGlobalString
if(!function_exists('utf8_encode')) if(!function_exists('utf8_decode')) getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
Definition: functions.lib.php:80
dol_get_fiche_end
dol_get_fiche_end($notab=0)
Return tab footer of a card.
Definition: functions.lib.php:2018
isModEnabled
isModEnabled($module)
Is Dolibarr module enabled.
Definition: functions.lib.php:105
GETPOSTISSET
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
Definition: functions.lib.php:386
ExtraFields
Class to manage standard extra fields.
Definition: extrafields.class.php:39
Form
Class to manage generation of HTML components Only common components must be here.
Definition: html.form.class.php:52
price
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.
Definition: functions.lib.php:5541
setEventMessages
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='')
Set event messages in dol_events session object.
Definition: functions.lib.php:8137
accessforbidden
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
Definition: security.lib.php:933
llxHeader
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOCSRFCHECK')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
Definition: wrapper.php:59