dolibarr 25.0.0-alpha
myobject_index.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3 * Copyright (C) 2004-2013 Laurent Destailleur <eldy@users.sourceforge.net>
4 * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
5 * Copyright (C) 2012 Marcos García <marcosgdf@gmail.com>
6 * Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
7 * Copyright (C) 2020 Maxime DEMAREST <maxime@indelog.fr>
8 * Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
9 * Copyright (C) 2024-2026 Frédéric France <frederic.france@free.fr>
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <https://www.gnu.org/licenses/>.
23 */
24
31// Load Dolibarr environment
32$res = 0;
33// Try main.inc.php into web root known defined into CONTEXT_DOCUMENT_ROOT (not always defined)
34if (!$res && !empty($_SERVER["CONTEXT_DOCUMENT_ROOT"])) {
35 $res = @include str_replace("..", "", $_SERVER["CONTEXT_DOCUMENT_ROOT"])."/main.inc.php";
36}
37// Try main.inc.php into web root detected using web root calculated from SCRIPT_FILENAME
38$tmp = empty($_SERVER['SCRIPT_FILENAME']) ? '' : $_SERVER['SCRIPT_FILENAME'];
39$tmp2 = realpath(__FILE__);
40$i = strlen($tmp) - 1; // @phan-suppress-current-line DolibarrForbiddenFunctionPlugin
41$j = strlen($tmp2) - 1; // @phan-suppress-current-line DolibarrForbiddenFunctionPlugin
42while ($i > 0 && $j > 0 && isset($tmp[$i]) && isset($tmp2[$j]) && $tmp[$i] == $tmp2[$j]) {
43 $i--;
44 $j--;
45}
46if (!$res && $i > 0 && file_exists(substr($tmp, 0, ($i + 1))."/main.inc.php")) {
47 $res = @include substr($tmp, 0, ($i + 1))."/main.inc.php";
48}
49if (!$res && $i > 0 && file_exists(dirname(substr($tmp, 0, ($i + 1)))."/main.inc.php")) {
50 $res = @include dirname(substr($tmp, 0, ($i + 1)))."/main.inc.php";
51}
52// Try main.inc.php using relative path
53if (!$res && file_exists("../main.inc.php")) {
54 $res = @include "../main.inc.php";
55}
56if (!$res && file_exists("../../main.inc.php")) {
57 $res = @include "../../main.inc.php";
58}
59if (!$res && file_exists("../../../main.inc.php")) {
60 $res = @include "../../../main.inc.php";
61}
62if (!$res) {
63 die("Include of main fails");
64}
72require_once DOL_DOCUMENT_ROOT . '/core/lib/functions.lib.php';
73require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
74require_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
75dol_include_once('/mymodule/class/myobject.class.php');
76dol_include_once('/mymodule/class/myobjectstats.class.php');
77dol_include_once('/mymodule/lib/mymodule_myobject.lib.php');
78
81
82$mode = GETPOSTISSET("mode") ? GETPOST("mode", 'aZ09') : 'statistics';
83
84$userid = GETPOSTINT('userid');
85$categ_id = GETPOSTINT('categ_id');
86
87$hookmanager->initHooks(array('mymodulestats', 'myobjectstats', 'globalcard'));
88
89$objecttype = 'myobject';
90$object = new MyObject($db);
91
92// List of object we want to manage statistics
93$usercanreadstatistic = 1;
94$enablepermissioncheck = getDolGlobalInt('MYMODULE_ENABLE_PERMISSION_CHECK');
95if ($enablepermissioncheck) {
96 $usercanreadstatistic = $user->hasRight($objecttype, 'read');
97 if (getDolGlobalInt('MAIN_NEED_EXPORT_PERMISSION_TO_READ_STATISTICS')) {
98 $usercanreadstatistic = $user->hasRight($objecttype, 'export');
99 }
100}
101
102if (!$usercanreadstatistic) {
104}
105
106// Security check
107$socid = 0;
108if ($user->socid > 0) {
109 $action = '';
110 $socid = $user->socid;
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
119$nowyear = (int) dol_print_date(dol_now('gmt'), "%Y", 'gmt');
120$year = GETPOSTINT('year') > 0 ? GETPOSTINT('year') : $nowyear;
121$startyear = $year - (!getDolGlobalInt('MAIN_STATS_GRAPHS_SHOW_N_YEARS') ? 2 : max(1, min(10, getDolGlobalInt('MAIN_STATS_GRAPHS_SHOW_N_YEARS'))));
122$endyear = $year;
123
124// Load translation files required by the page
125$langs->loadLangs(array('companies', 'other', 'mymodule@mymodule'));
126
127
128/*
129 * View
130 */
131
132$form = new Form($db);
133
134$title = $langs->trans("Statistics");
135$dir = getMultidirTemp($object);
136
137llxHeader('', $title, '', '', 0, 0, '', '', '', 'mod-order page-stats');
138
139$permissiontoadd = 1;
140$param = '';
141$newcardbutton = '';
142$newcardbutton .= dolGetButtonTitle($langs->trans('ViewList'), '', 'fa fa-bars imgforviewmode', dol_buildpath('/mymodule/myobject_list.php', 1).'?mode=common'.preg_replace('/(&|\?)*(mode|groupby)=[^&]+/', '', $param), '', ((empty($mode) || $mode == 'common') ? 2 : 1), array('morecss' => 'reposition'));
143$newcardbutton .= dolGetButtonTitle($langs->trans('ViewKanban'), '', 'fa fa-th-list imgforviewmode', dol_buildpath('/mymodule/myobject_list.php', 1).'?mode=kanban'.preg_replace('/(&|\?)*(mode|groupby)=[^&]+/', '', $param), '', ($mode == 'kanban' ? 2 : 1), array('morecss' => 'reposition'));
144//$newcardbutton .= dolGetButtonTitle($langs->trans('ViewKanbanGroupBy'), '', 'fa fa-grip-vertical imgforviewmode', dol_buildpath('/mymodule/aaa_index.php', 1).'?mode=kanbangroupby&groupby=p.fk_opp_status'.preg_replace('/(&|\?)*(mode|groupby)=[^&]+/', '', $param), '', ($mode == 'kanbangroupby' ? 2 : 1), array('morecss' => 'reposition'));
145//$newcardbutton .= dolGetButtonTitle($langs->trans('HierarchicView'), '', 'fa fa-stream paddingleft imgforviewmode', dol_buildpath('/mymodule/aaa_index.php', 1).'?mode=hierarchy'.preg_replace('/(&|\?)*(mode|groupby)=[^&]+/', '', $param), '', (($mode == 'hierarchy') ? 2 : 1), array('morecss' => 'reposition'));
146$newcardbutton .= dolGetButtonTitle($langs->trans('Statistics'), '', 'fa fa-chart-bar imgforviewmode', dol_buildpath('/mymodule/stats/mymodule_index.php', 1).'?mode=statistics&objecttype=myobject@mymodule'.preg_replace('/(&|\?)*(mode|groupby)=[^&]+/', '', $param), '', ($mode == 'statistics' ? 2 : 1), array('morecss' => 'reposition'));
147$newcardbutton .= dolGetButtonTitleSeparator();
148$newcardbutton .= dolGetButtonTitle($langs->trans('New'), '', 'fa fa-plus-circle', dol_buildpath('/mymodule/myobject_card.php', 1).'?action=create&backtopage='.urlencode($_SERVER['PHP_SELF']), '', $permissiontoadd);
149
150$param = '';
151$page = 0;
152$sortfield = '';
153$sortorder = '';
154$massactionbutton = '';
155$num = 0;
156$nbtotalofrecords = 0;
157$limit = 0;
158
159print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, $object->picto, 0, $newcardbutton, '', $limit, 0, 0, 1);
160
161
162//print load_fiche_titre($title, '', $picto);
163
164dol_mkdir($dir);
165
166$stats = new MyObjectStats($db, $socid, $mode, ($userid > 0 ? $userid : 0), ($categ_id > 0 ? $categ_id : 0));
167
168
169// Build graphic number of object
170$data = $stats->getNbByMonthWithPrevYear($endyear, $startyear);
171
172
173$filenamenb = $dir.'/myobjectnbinyear-'.$user->id.'-'.$year.'.png';
174$fileurlnb = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstats&file=ordersnbinyear-'.$user->id.'-'.$year.'.png';
175
176
177$px1 = new DolGraph();
178$displaypx1 = false;
179$mesg = $px1->isGraphKo();
180if (!$mesg) {
181 $displaypx1 = true;
182 $px1->SetData($data);
183 $i = $startyear;
184 $legend = array();
185 while ($i <= $endyear) {
186 $legend[] = $i;
187 $i++;
188 }
189 $px1->SetLegend($legend);
190 $px1->SetMaxValue($px1->GetCeilMaxValue());
191 $px1->SetMinValue(min(0, $px1->GetFloorMinValue()));
192 $px1->SetWidth($WIDTH);
193 $px1->SetHeight($HEIGHT);
194 $px1->SetYLabel($langs->trans("Nb"));
195 $px1->SetShading(3);
196 $px1->SetHorizTickIncrement(1);
197 $px1->mode = 'depth';
198 $px1->SetTitle($langs->trans("ByMonth"));
199
200 $px1->draw($filenamenb, $fileurlnb);
201}
202
203
204/*
205
206// Build graphic amount of object
207$data = $stats->getAmountByMonthWithPrevYear($endyear, $startyear);
208//var_dump($data);
209// $data = array(array('Lib',val1,val2,val3),...)
210
211$fileurlamount = '';
212if (!$user->hasRight('societe', 'client', 'voir')) {
213 $filenameamount = $dir.'/ordersamountinyear-'.$user->id.'-'.$year.'.png';
214 if ($mode == 'customer') {
215 $fileurlamount = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstats&file=ordersamountinyear-'.$user->id.'-'.$year.'.png';
216 }
217 if ($mode == 'supplier') {
218 $fileurlamount = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstatssupplier&file=ordersamountinyear-'.$user->id.'-'.$year.'.png';
219 }
220} else {
221 $filenameamount = $dir.'/ordersamountinyear-'.$year.'.png';
222 if ($mode == 'customer') {
223 $fileurlamount = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstats&file=ordersamountinyear-'.$year.'.png';
224 }
225 if ($mode == 'supplier') {
226 $fileurlamount = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstatssupplier&file=ordersamountinyear-'.$year.'.png';
227 }
228}
229
230$px2 = new DolGraph();
231$displaypx2 = false;
232$mesg = $px2->isGraphKo();
233if (!$mesg) {
234 $displaypx2 = true;
235 $px2->SetData($data);
236 $i = $startyear;
237 $legend = array();
238 while ($i <= $endyear) {
239 $legend[] = $i;
240 $i++;
241 }
242 $px2->SetLegend($legend);
243 $px2->SetMaxValue($px2->GetCeilMaxValue());
244 $px2->SetMinValue(min(0, $px2->GetFloorMinValue()));
245 $px2->SetWidth($WIDTH);
246 $px2->SetHeight($HEIGHT);
247 $px2->SetYLabel($langs->trans("AmountOfOrders"));
248 $px2->SetShading(3);
249 $px2->SetHorizTickIncrement(1);
250 $px2->mode = 'depth';
251 $px2->SetTitle($langs->trans("AmountOfOrdersByMonthHT"));
252
253 $px2->draw($filenameamount, $fileurlamount);
254}
255
256
257
258$data = $stats->getAverageByMonthWithPrevYear($endyear, $startyear);
259
260
261$fileurl_avg = '';
262if (!$user->hasRight('societe', 'client', 'voir')) {
263 $filename_avg = $dir.'/ordersaverage-'.$user->id.'-'.$year.'.png';
264 if ($mode == 'customer') {
265 $fileurl_avg = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstats&file=ordersaverage-'.$user->id.'-'.$year.'.png';
266 }
267 if ($mode == 'supplier') {
268 $fileurl_avg = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstatssupplier&file=ordersaverage-'.$user->id.'-'.$year.'.png';
269 }
270} else {
271 $filename_avg = $dir.'/ordersaverage-'.$year.'.png';
272 if ($mode == 'customer') {
273 $fileurl_avg = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstats&file=ordersaverage-'.$year.'.png';
274 }
275 if ($mode == 'supplier') {
276 $fileurl_avg = DOL_URL_ROOT.'/viewimage.php?modulepart=orderstatssupplier&file=ordersaverage-'.$year.'.png';
277 }
278}
279
280$px3 = new DolGraph();
281$displaypx3 = false;
282$mesg = $px3->isGraphKo();
283if (!$mesg) {
284 $displaypx3 = true;
285 $px3->SetData($data);
286 $i = $startyear;
287 $legend = array();
288 while ($i <= $endyear) {
289 $legend[] = $i;
290 $i++;
291 }
292 $px3->SetLegend($legend);
293 $px3->SetYLabel($langs->trans("AmountAverage"));
294 $px3->SetMaxValue($px3->GetCeilMaxValue());
295 $px3->SetMinValue((int) $px3->GetFloorMinValue());
296 $px3->SetWidth($WIDTH);
297 $px3->SetHeight($HEIGHT);
298 $px3->SetShading(3);
299 $px3->SetHorizTickIncrement(1);
300 $px3->mode = 'depth';
301 $px3->SetTitle($langs->trans("AmountAverage"));
302
303 $px3->draw($filename_avg, $fileurl_avg);
304}
305
306*/
307
308
309// Show array
310$data = $stats->getAllByYear();
311$arrayyears = array();
312foreach ($data as $val) {
313 if (!empty($val['year'])) {
314 $arrayyears[$val['year']] = $val['year'];
315 }
316}
317if (!count($arrayyears)) {
318 $arrayyears[$nowyear] = $nowyear;
319}
320
321
322
323$h = 0;
324$head = array();
325$head[$h][0] = $_SERVER["PHP_SELF"].'?mode='.$mode;
326$head[$h][1] = $langs->trans("ByMonthYear");
327$head[$h][2] = 'byyear';
328$h++;
329
330$type = 'myobject_stats';
331
332complete_head_from_modules($conf, $langs, null, $head, $h, $type);
333
334print dol_get_fiche_head($head, 'byyear', '', -1);
335
336print '<div class="fichecenter"><div class="fichethirdleft">';
337
338
339// Show filter box
340print '<form name="stats" method="POST" action="'.dolBuildUrl($_SERVER["PHP_SELF"]).'">';
341print '<input type="hidden" name="token" value="'.newToken().'">';
342print '<input type="hidden" name="mode" value="'.$mode.'">';
343
344print '<table class="noborder centpercent">';
345print '<tr class="liste_titre"><td class="liste_titre" colspan="2">'.$langs->trans("Filter").'</td></tr>';
346// Company
347/*
348print '<tr><td class="left">'.$langs->trans("ThirdParty").'</td><td class="left">';
349$filter = '';
350if ($mode == 'customer') {
351 $filter = '(s.client:IN:1,2,3)';
352}
353if ($mode == 'supplier') {
354 $filter = '(s.fournisseur:=:1)';
355}
356print img_picto('', 'company', 'class="pictofixedwidth"');
357print $form->select_company($socid, 'socid', $filter, 1, 0, 0, array(), 0, 'widthcentpercentminusx maxwidth300');
358print '</td></tr>';
359*/
360// User
361if (array_key_exists('fk_user_creat', $object->fields)) {
362 print '<tr><td>'.$langs->trans("CreatedBy").'</td><td>';
363 print img_picto('', 'user', 'class="pictofixedwidth"');
364 print $form->select_dolusers($userid, 'userid', 1, null, 0, '', '', '0', 0, 0, '', 0, '', 'widthcentpercentminusx maxwidth300');
365}
366// Status
367if (array_key_exists('status', $object->fields)) {
368 print '<tr><td>'.$langs->trans("Status").'</td><td>';
369 $liststatus = $object->fields['status']['arrayofkeyvalue'];
370 print $form->selectarray('object_status', $liststatus, GETPOST('object_status', 'intcomma'), -4);
371 print '</td></tr>';
372}
373// Year
374print '<tr><td class="left">'.$langs->trans("Year").'</td><td class="left">';
375if (!in_array($year, $arrayyears)) {
376 $arrayyears[$year] = $year;
377}
378if (!in_array($nowyear, $arrayyears)) {
379 $arrayyears[$nowyear] = $nowyear;
380}
381arsort($arrayyears);
382print img_picto('', 'calendar', 'class="pictofixedwidth"');
383print $form->selectarray('year', $arrayyears, $year, 0, 0, 0, '', 0, 0, 0, '', 'width75');
384print '</td></tr>';
385print '<tr><td align="center" colspan="2"><input type="submit" class="button small" name="submit" value="'.$langs->trans("Refresh").'"></td></tr>';
386print '</table>';
387print '</form>';
388print '<br><br>';
389
390
391print '<div class="div-table-responsive-no-min">';
392print '<table class="noborder centpercent">';
393print '<tr class="liste_titre" height="24">';
394print '<td class="center">'.$langs->trans("Year").'</td>';
395print '<td class="right">'.$langs->trans("NbOfOrders").'</td>';
396print '<td class="right">%</td>';
397print '<td class="right">'.$langs->trans("AmountTotal").'</td>';
398print '<td class="right">%</td>';
399print '<td class="right">'.$langs->trans("AmountAverage").'</td>';
400print '<td class="right">%</td>';
401print '</tr>';
402
403$oldyear = 0;
404foreach ($data as $val) {
405 $year = $val['year'];
406 while (!empty($year) && $oldyear > (int) $year + 1) { // If we have empty year
407 $oldyear--;
408
409 print '<tr class="oddeven" height="24">';
410 print '<td align="center"><a href="'.$_SERVER["PHP_SELF"].'?year='.$oldyear.'&amp;mode='.$mode.($socid > 0 ? '&socid='.$socid : '').($userid > 0 ? '&userid='.$userid : '').'">'.$oldyear.'</a></td>';
411 print '<td class="right">0</td>';
412 print '<td class="right"></td>';
413 print '<td class="right">0</td>';
414 print '<td class="right"></td>';
415 print '<td class="right">0</td>';
416 print '<td class="right"></td>';
417 print '</tr>';
418 }
419
420
421 print '<tr class="oddeven" height="24">';
422 print '<td align="center"><a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&amp;mode='.$mode.($socid > 0 ? '&socid='.$socid : '').($userid > 0 ? '&userid='.$userid : '').'">'.$year.'</a></td>';
423 print '<td class="right">'.$val['nb'].'</td>';
424 print '<td class="right opacitylow" style="'.((!isset($val['nb_diff']) || $val['nb_diff'] >= 0) ? 'color: green;' : 'color: red;').'">'.(isset($val['nb_diff']) ? round($val['nb_diff']) : "0").'%</td>';
425 print '<td class="right">'.price(price2num($val['total'], 'MT'), 1).'</td>';
426 print '<td class="right opacitylow" style="'.((!isset($val['total_diff']) || $val['total_diff'] >= 0) ? 'color: green;' : 'color: red;').'">'.(isset($val['total_diff']) ? round($val['total_diff']) : "0").'%</td>';
427 print '<td class="right">'.price(price2num($val['avg'], 'MT'), 1).'</td>';
428 print '<td class="right opacitylow" style="'.((!isset($val['avg_diff']) || $val['avg_diff'] >= 0) ? 'color: green;' : 'color: red;').'">'.(isset($val['avg_diff']) ? round($val['avg_diff']) : "0").'%</td>';
429 print '</tr>';
430 $oldyear = $year;
431}
432
433print '</table>';
434print '</div>';
435
436
437print '</div><div class="fichetwothirdright">';
438
439
440// Show graphs
441print '<table class="border centpercent"><tr class="pair nohover"><td align="center">';
442if ($mesg) {
443 print $mesg;
444} else {
445 if ($displaypx1) {
446 print $px1->show();
447 print "<br>\n";
448 }
449 /*
450 if ($displaypx2) {
451 print $px2->show();
452 print "<br>\n";
453 }
454 if ($displaypx3) {
455 print $px3->show();
456 print "<br>\n";
457 }
458 */
459}
460print '</td></tr></table>';
461
462
463print '</div></div>';
464print '<div class="clearboth"></div>';
465
466
467print dol_get_fiche_end();
468
469// End of page
470llxFooter();
471$db->close();
if(! $sortfield) if(! $sortorder) $object
Definition account.php:100
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 to build graphs.
static getDefaultGraphSizeForStats($direction, $defaultsize='')
getDefaultGraphSizeForStats
Class to manage generation of HTML components Only common components must be here.
Class for MyObject.
Class to manage order statistics (customer and supplier)
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $conf
The main.inc.php has been included so the following variable are now defined:
dol_now($mode='gmt')
Return date for now.
price2num($amount, $rounding='', $option=0)
Function that return a number with universal decimal format (decimal separator is '.
getMultidirTemp($object, $module='', $forobject=0)
Return the full path of the directory where a module (or an object of a module) stores its temporary ...
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
if(!function_exists( 'dol_getprefix')) dol_include_once($relpath, $classname='')
Make an include_once using default root and alternate root if it fails.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0, $nodefault=0)
Return value of a param into GET or POST supervariable.
GETPOSTINT($paramname, $method=0, $nodefault=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
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).
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).
dol_mkdir($dir, $dataroot='', $newmask='')
Creation of a directory (this can create recursive subdir)
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.
Definition html.lib.php:540
dolGetButtonTitle($label, $helpText='', $iconClass='fa fa-file', $url='', $id='', $status=1, $params=array())
Function dolGetButtonTitle : this kind of buttons are used in title in list.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
Definition html.lib.php:738
dolGetButtonTitleSeparator($moreClass="")
Add space between dolGetButtonTitle.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.