dolibarr 21.0.0-beta
test_arrays.php
1<?php
2/* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18
19// Load Dolibarr environment
20require '../../../../main.inc.php';
21
31// Security
32if ($dolibarr_main_prod) {
33 accessforbidden('Access forbidden when $dolibarr_main_prod is set to 1');
34}
35// Protection if external user
36if ($user->socid > 0) {
38}
39
40$optioncss = GETPOST('optioncsss', 'alpha');
41
42/*
43 * View
44 */
45
46$form = new Form($db);
47
48// 1 = Test inside a dolibarr page, 0 = Use hard coded header
49// Using a dolibarr constant avoid phpstan hardcoded value always true or false
50$usedolheader = getDolGlobalInt('MAIN_TEST_UI_IN_DOLIBARR_PAGE', 1);
51
52// HEADER
53//--------
54
55if (empty($usedolheader)) {
56 header("Content-type: text/html; charset=UTF8");
57
58 // Security options
59 header("X-Content-Type-Options: nosniff"); // With the nosniff option, if the server says the content is text/html, the browser will render it as text/html (note that most browsers now force this option to on)
60 header("X-Frame-Options: SAMEORIGIN"); // Frames allowed only if on same domain (stop some XSS attacks)
61 ?>
62 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
63 <html>
64 <head>
65 <meta name="robots" content="noindex,nofollow" />
66 <meta name="author" content="Dolibarr Development Team">
67 <title>Test page</title>
68 <!-- Includes for JQuery (Ajax library) -->
69 <link rel="stylesheet" type="text/css" href="<?php echo DOL_URL_ROOT ?>/includes/jquery/css/base/jquery-ui.css" />
70 <!-- <link rel="stylesheet" type="text/css" href="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/datatables/media/css/jquery.dataTables.css" /> -->
71 <link rel="stylesheet" type="text/css" title="default" href="<?php echo DOL_URL_ROOT ?>/theme/eldy/style.css.php<?php echo (GETPOST("dol_use_jmobile") == 1) ? '?dol_use_jmobile=1&dol_optimize_smallscreen=1' : ''; ?>" />
72 <!-- Includes JS for JQuery -->
73 <script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/js/jquery.min.js"></script>
74 <!-- migration fixes for removed Jquery functions -->
75 <script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/js/jquery-migrate.min.js"></script>
76 <script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/tablednd/jquery.tablednd.0.6.min.js"></script>
77 <!-- <script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/datatables/media/js/jquery.dataTables.js"></script> -->
78 <script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/select2/select2.min.js?version=4.0.0-beta"></script>
79 </head>
80
81 <body style="padding: 10px;">
82
83
84 <?php
85} else {
86 $arraycss = array();
87 $arrayjs = array();
88 /*
89 $arraycss=array('/includes/jquery/plugins/datatables/media/css/jquery.dataTables.css',
90 '/includes/jquery/plugins/datatables/extensions/Buttons/css/buttons.dataTables.min.css',
91 '/includes/jquery/plugins/datatables/extensions/ColReorder/css/colReorder.dataTables.min.css'
92 );
93 $arrayjs=array('/includes/jquery/plugins/datatables/media/js/jquery.dataTables.js',
94 '/includes/jquery/plugins/datatables/extensions/Buttons/js/dataTables.buttons.js',
95 '/includes/jquery/plugins/datatables/extensions/Buttons/js/buttons.colVis.min.js',
96 '/includes/jquery/plugins/datatables/extensions/Buttons/js/buttons.html5.min.js',
97 '/includes/jquery/plugins/datatables/extensions/Buttons/js/buttons.flash.min.js',
98 '/includes/jquery/plugins/datatables/extensions/Buttons/js/buttons.print.min.js',
99 '/includes/jquery/plugins/datatables/extensions/ColReorder/js/dataTables.colReorder.min.js',
100 '/includes/jszip/jszip.min.js',
101 '/includes/pdfmake/pdfmake.min.js',
102 '/includes/pdfmake/vfs_fonts.js'
103 );
104 */
105
106 llxHeader('', '', '', '', 0, 0, $arrayjs, $arraycss);
107}
108
109
110// CONTENT
111//---------
112?>
113
114<h2>
115This page is a sample of page using tables. It is designed to make test with<br>
116</h2>
117<div class="wordbreak">
118- css (add parameter &amp;theme=newtheme to test another theme or edit css of current theme)<br>
119- jmobile (add parameter <a href="<?php echo $_SERVER["PHP_SELF"].'?dol_use_jmobile=1&dol_optimize_smallscreen=1'; ?>">dol_use_jmobile=1&amp;dol_optimize_smallscreen=1</a> and switch to small screen < 570 to enable with emulated jmobile)<br>
120- no javascript / usage for blind people (add parameter <a href="<?php echo $_SERVER["PHP_SELF"].'?nojs=1'; ?>">nojs=1</a> to force disable javascript)<br>
121- tablednd<br>
122</div>
123
124
125<br><hr><br>Example 0a : Table with div+div+div containing a select that should be overflowed and truncated => Use this to align text or form<br>
126
127<div class="tagtable centpercent">
128 <div class="tagtr">
129 <div class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
130 <select name="hidedetails" class="centpercentonsmartphone"><option>aaaaaaaaaaaaaaafd sf sf gfd gfds fsd gfd fhfg hf dhfg hg fhfgdhfgdh gh gfdhdgf h gfdh dfhg dfgh dfgh fdgh gfd hfd hfd gs fgdf gaaaa</option><option>gdfs gdf g sdfg dfg fdsg dsfg dfs gdfs gds fgs gdfdf gd</option></select>
131 </div>
132 <div class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
133 <select name="hidedetails" class="centpercentonsmartphone"><option>aaaaaaaaaaaaaaafd sf sf gfd gfds fsd gfd fhfg hf dhfg hg fhfgdhfgdh gh gfdhdgf h gfdh dfhg dfgh dfgh fdgh gfd hfd hfd gs fgdf gaaaa</option><option>gdfs gdf g sdfg dfg fdsg dsfg dfs gdfs gds fgs gdfdf gd</option></select>
134 </div>
135 </div>
136</div>
137
138<br><hr><br>Example 0b: Table with div+form+div containing a select that should be overflowed and truncated => Use this to align text or form<br>
139
140<div class="tagtable centpercent">
141 <form action="xxx" method="POST" class="tagtr">
142 <div class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
143 <select name="hidedetails" class="centpercentonsmartphone"><option>aaaaaaaaaaaaaaafd sf sf gfd gfds fsd gfd fhfg hf dhfg hg fhfgdhfgdh gh gfdhdgf h gfdh dfhg dfgh dfgh fdgh gfd hfd hfd gs fgdf gaaaa</option><option>gdfs gdf g sdfg dfg fdsg dsfg dfs gdfs gds fgs gdfdf gd</option></select>
144 </div>
145 <div class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
146 <select name="hidedetails" class="centpercentonsmartphone"><option>aaaaaaaaaaaaaaafd sf sf gfd gfds fsd gfd fhfg hf dhfg hg fhfgdhfgdh gh gfdhdgf h gfdh dfhg dfgh dfgh fdgh gfd hfd hfd gs fgdf gaaaa</option><option>gdfs gdf g sdfg dfg fdsg dsfg dfs gdfs gds fgs gdfdf gd</option></select>
147 </div>
148 </form>
149</div>
150
151<br><hr><br>Example 0c: Table with table+tr+td containing a select that should be overflowed and truncated => Use this to align text or form<br>
152
153<table class="centpercent">
154 <tr>
155 <td class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
156 <select name="hidedetails" class="centpercentonsmartphone"><option>aaaaaaaaaaaaaaafd sf sf gfd gfds fsd gfd fhfg hf dhfg hg fhfgdhfgdh gh gfdhdgf h gfdh dfhg dfgh dfgh fdgh gfd hfd hfd gs fgdf gaaaa</option><option>gdfs gdf g sdfg dfg fdsg dsfg dfs gdfs gds fgs gdfdf gd</option></select>
157 </td>
158 <td class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
159 <select name="hidedetails" class="centpercentonsmartphone"><option>aaaaaaaaaaaaaaafd sf sf gfd gfds fsd gfd fhfg hf dhfg hg fhfgdhfgdh gh gfdhdgf h gfdh dfhg dfgh dfgh fdgh gfd hfd hfd gs fgdf gaaaa</option><option>gdfs gdf g sdfg dfg fdsg dsfg dfs gdfs gds fgs gdfdf gd</option></select>
160 </td>
161 </tr>
162</table>
163
164
165
166
167<br><hr><br>Example 1 : Standard table/thead/tbody/tr/th-td (no class pair/impair on td) => Use this if you need the drag and drop for lines or for long result tables<br>
168
169
170<script type="text/javascript">
171/*jQuery(document).ready(function() {
172$(document).ready(function() {
173 var table = $('#tablelines3').DataTable( {
174 scrollY: "300px",
175 scrollX: true,
176 scrollCollapse: true,
177 paging: false,
178 fixedColumns: {
179 leftColumns: 1,
180 rightColumns: 1
181 }
182 } );
183} );
184});*/
185</script>
186
187
188<?php
189include_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
190$productspecimen = new Product($db);
191$productspecimen->initAsSpecimen();
192$object = $productspecimen;
193$param = '';
194$actioncode = getDolGlobalString('MAIN_TEST_UI_ACTION_CODE'); // '' by default
195$status = getDolGlobalString('MAIN_TEST_UI_STATUS'); // '' by default;
196$filter = getDolGlobalString('MAIN_TEST_UI_FILTER'); // '' by default;
197$filtert = getDolGlobalString('MAIN_TEST_UI_FILTERT'); // '' by default;
198$socid = getDolGlobalInt('MAIN_TEST_UI_SOCID', 0); // 0 by default;
199$type = getDolGlobalInt('MAIN_TEST_UI_TYPE', 0); // 0 by default;
200$usergroup = getDolGlobalInt('MAIN_TEST_UI_USERGROUP', 0); // 0 by default;
201$sortfield = getDolGlobalString('MAIN_TEST_UI_SORTFIELD', 'aaa'); // 'aaa' by default;
202$sortorder = 'ASC';
203$tasksarray = array(1, 2, 3); // To force having several lines
204$tagidfortablednd = 'tablelines3';
205if (!isset($moreforfilter)) {
206 $moreforfilter = '';
207}
208if (!empty($conf->use_javascript_ajax)) {
209 include DOL_DOCUMENT_ROOT.'/core/tpl/ajaxrow.tpl.php';
210}
211
212$nav = '';
213$nav .= '<form name="dateselect" action="'.$_SERVER["PHP_SELF"].'?mode=show_peruser'.$param.'">';
214if ($actioncode || GETPOSTISSET('actioncode')) {
215 $nav .= '<input type="hidden" name="actioncode" value="'.$actioncode.'">';
216}
217if ($status || GETPOSTISSET('status')) {
218 $nav .= '<input type="hidden" name="status" value="'.$status.'">';
219}
220if ($filter) {
221 $nav .= '<input type="hidden" name="filter" value="'.$filter.'">';
222}
223if ($filtert) {
224 $nav .= '<input type="hidden" name="filtert" value="'.$filtert.'">';
225}
226if ($socid) {
227 $nav .= '<input type="hidden" name="socid" value="'.$socid.'">';
228}
229if (isset($showbirthday) && $showbirthday) {
230 $nav .= '<input type="hidden" name="showbirthday" value="1">';
231}
232if (isset($pid) && $pid) {
233 $nav .= '<input type="hidden" name="projectid" value="'.$pid.'">';
234}
235if ($type) {
236 $nav .= '<input type="hidden" name="type" value="'.$type.'">';
237}
238if ($usergroup) {
239 $nav .= '<input type="hidden" name="usergroup" value="'.$usergroup.'">';
240}
241$nav .= $form->selectDate($dateselect ?? '', 'dateselect', 0, 0, 1, '', 1, 0);
242$nav .= ' <input type="submit" name="submitdateselect" class="button" value="'.$langs->trans("Refresh").'">';
243$nav .= '</form>';
244
245$limit = 10;
246print_barre_liste('Title of my list', 12, $_SERVER["PHP_SELF"], '', '', '', 'Text in middle', 20, 500, '', 0, $nav, '', $limit, 0, 0, 1);
247
248$moreforfilter .= '<div class="divsearchfield">';
249$moreforfilter .= $langs->trans('This is a select list for a filter A (no combo forced)').': ';
250$cate_arbo = array('field1' => 'value1a into the select list A', 'field2' => 'value2a');
251$moreforfilter .= $form->selectarray('search_aaa', $cate_arbo, '', 1, 0, 0, '', 0, 0, 0, '', 'maxwidth300', 0); // List with no js combo
252$moreforfilter .= '</div>';
253
254$moreforfilter .= '<div class="divsearchfield">';
255$moreforfilter .= $langs->trans('This is a select list for a filter B (auto combo)').': ';
256$cate_arbo = array('field1' => 'value1b into the select list B', 'field2' => 'value2b');
257$moreforfilter .= $form->selectarray('search_bbb', $cate_arbo, '', 1, 0, 0, '', 0, 0, 0, '', 'maxwidth300', -1); // List with js combo auto
258$moreforfilter .= '</div>';
259
260$moreforfilter .= '<div class="divsearchfield">';
261$moreforfilter .= $langs->trans('This is a select list for a filter C (combo forced)').': ';
262$cate_arbo = array('field1' => 'value1c into the select list C', 'field2' => 'value2c');
263$moreforfilter .= $form->selectarray('search_ccc', $cate_arbo, '', 1, 0, 0, '', 0, 0, 0, '', 'maxwidth300', 1); // List with js combo forced
264$moreforfilter .= '</div>';
265
266$moreforfilter .= '<div class="divsearchfield">';
267$moreforfilter .= $langs->trans('This is a select list for a filter D (combo forced)').': ';
268$cate_arbo = array('field1' => 'value1d into the select list D', 'field2' => 'value2d');
269$moreforfilter .= $form->selectarray('search_ddd', $cate_arbo, '', 1, 0, 0, '', 0, 0, 0, '', 'maxwidth300', 1); // List with js combo forced
270$moreforfilter .= '</div>';
271
272print '<div class="liste_titre liste_titre_bydiv centpercent">';
273print $moreforfilter;
274$parameters = array();
275$reshook = $hookmanager->executeHooks('printFieldPreListTitle', $parameters, $object); // Note that $action and $object may have been modified by hook
276print $hookmanager->resPrint;
277print '</div>';
278
279?>
280
281<table class="stripe row-border order-column centpercent tagtable liste<?php echo /* $moreforfilter ? */ " listwithfilterbefore" /* : "" */; ?>" id="tablelines3">
282<thead>
283<tr class="liste_titre">
284<?php print getTitleFieldOfList($langs->trans('title1'), 0, $_SERVER["PHP_SELF"], 'aaa', '', '', 'align="left"', $sortfield, $sortorder); ?>
285<?php print getTitleFieldOfList($langs->trans('title2'), 0, $_SERVER["PHP_SELF"], 'bbb', '', '', 'align="center"', $sortfield, $sortorder); ?>
286<?php print getTitleFieldOfList($langs->trans('title3'), 0, $_SERVER["PHP_SELF"], 'ccc', '', '', 'align="right"', $sortfield, $sortorder); ?>
287</tr>
288</thead>
289<tbody>
290<tr class="pair"><td><?php echo $productspecimen->getNomUrl(1); ?></td><td class="center">b1</td><td class="tdlineupdown right">c1</td></tr>
291<tr class="impair nowrap"><td>a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2</td><td align="center">b2</td><td class="tdlineupdown right">c2</td></tr>
292<tr class="pair"><td>a3</td><td class="center">b3</td><td class="tdlineupdown right">c3</td></tr>
293</tbody>
294</table>
295
296
297<br>
298
299
300<!--
301<br><hr><br>Example 1b : Table using tags: table/thead/tbody/tr/th-td + dataTable => Use this for short result tables<br>
302
303<script type="text/javascript">
304$(document).ready(function(){
305 $('#idtableexample2').dataTable( {
306 <?php
307 if ($optioncss == 'print') {
308 print '\'dom\': \'lfrtip\',';
309 } else {
310 print '\'dom\': \'Blfrtip\',';
311 }
312 ?>
313 "colReorder": true,
314 'buttons': [
315 'colvis','copy', 'csv', 'excel', 'pdf', 'print'
316 ],
317 "sPaginationType": "full_numbers",
318 "lengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "<?php echo $langs->trans('All'); ?>"]],
319 "oLanguage": {
320 "sLengthMenu": "<?php echo $langs->trans('Show'); ?> _MENU_ <?php echo $langs->trans('Entries'); ?>",
321 "sSearch": "<?php echo $langs->trans('Search'); ?>:",
322 "sZeroRecords": "<?php echo $langs->trans('NoRecordsToDisplay'); ?>",
323 "sInfoEmpty": "<?php echo $langs->trans('NoEntriesToShow'); ?>",
324 "sInfoFiltered": "(<?php echo $langs->trans('FilteredFrom'); ?> _MAX_ <?php echo $langs->trans('TotalEntries'); ?>)",
325 "sInfo": "<?php echo $langs->trans('Showing'); ?> _START_ <?php echo $langs->trans('To'); ?> _END_ <?php echo $langs->trans('WTOf'); ?> _TOTAL_ <?php echo $langs->trans('Entries'); ?>",
326 "oPaginate": {
327 "sFirst": "<?php echo $langs->transnoentities('First'); ?>",
328 "sLast": "<?php echo $langs->transnoentities('Last'); ?>",
329 "sPrevious": "<?php echo $langs->transnoentities('Previous'); ?>",
330 "sNext": "<?php echo $langs->transnoentities('Next'); ?>"
331 }
332 },
333 "aaSorting": [[0,'desc']],
334/* To use in ajax mode
335 "bProcessing": true,
336 "stateSave": true,
337 "bServerSide": true,
338 "sAjaxSource": "../ajax.php",
339 "aoColumnDefs": [
340 { "bSortable": false, "aTargets": [ 2,3,4 ] }
341 ],
342*/
343 })
344});
345</script>
346 -->
347
348
349<br><hr><br>Example 2 : Table using tags: div.tagtable+(div|form).tagtr+div[.tagtd] => Use this for tables that need to have a different form for each line, but AVOID IT if possible (drag and drop of lines does not work for this case, also height of title can't be forced to a minimum)<br><br>
350
351
352<?php
353 $tasksarray = array(1, 2, 3); // To force having several lines
354$tagidfortablednd = 'tablelines';
355if (!empty($conf->use_javascript_ajax)) {
356 include DOL_DOCUMENT_ROOT.'/core/tpl/ajaxrow.tpl.php';
357}
358?>
359<div class="tagtable centpercent liste_titre_bydiv" id="tablelines">
360 <div class="tagtr liste_titre">
361 <div class="tagtd">Title A<input type="hidden" name="cartitem" value="3"></div>
362 <div class="tagtd">title B</div>
363 <div class="tagtd">title C</div>
364 <div class="tagtd">title D</div>
365 </div>
366 <div class="pair tagtr">
367 <div class="tagtd">line4<input type="hidden" name="cartitem" value="3"></div>
368 <div class="tagtd">dfsdf</div>
369 <div class="tagtd"><input name="count" value="4" class="maxwidth50"></div>
370 <div class="tagtd tdlineupdown">bbbb</div>
371 </div>
372 <div class="impair tagtr">
373 <div class="tagtd">line5<input type="hidden" name="cartitemb" value="3"></div>
374 <div class="tagtd">dfsdf</div>
375 <div class="tagtd"><input name="countb" value="4" class="maxwidth50"></div>
376 <div class="tagtd tdlineupdown">bbbb</div>
377 </div>
378 <div class="pair tagtr">
379 <div class="tagtd">line6<input type="hidden" name="cartitem" value="3"></div>
380 <div class="tagtd">jghjgh</div>
381 <div class="tagtd">5</div>
382 <div class="tagtd tdlineupdown">lll</div>
383 </div>
384<!-- Using form into div make Firefox crazy (page loading does not end) -->
385<!-- <form class="liste_titre" method="POST" action="1.php">
386 <div>line1<input type="hidden" name="cartitem" value="1"></div>
387 <div><label><input type="checkbox" name="hidedetails" value="2"> A checkbox inside a cell</label></div>
388 <div><input name="count" value="4"></div>
389 <div><input type="submit" name="count2" class="button noshadow" value="aaa"></div>
390 </form>
391 <form class="impair" method="POST" action="2.php">
392 <div>line2<input type="hidden" name="cartitem" value="2"></div>
393 <div><select name="hidedetails"><option>aaaaaaaaaaaaaaafd sf sf gfd gfd gs fgdf gaaaa</option><option>gdfs gdf g sdfg dfg fdsg dsfg dfs gdfs gds fgs gdfdf gd</option></select></div>
394 <div><input name="countb" value="4"></div>
395 <div class="tdlineupdown"><input type="submit" value="xxx" class="button"></div>
396 </form>-->
397</div>
398
399
400
401
402<?php
403if (!empty($usedolheader)) {
404 llxFooter();
405} else { ?>
406</body>
407<?php } ?>
408
409</html>
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 to manage generation of HTML components Only common components must be here.
Class to manage products or services.
print_barre_liste($title, $page, $file, $options='', $sortfield='', $sortorder='', $morehtmlcenter='', $num=-1, $totalnboflines='', $picto='generic', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limit=-1, $selectlimitsuffix=0, $hidenavigation=0, $pagenavastextinput=0, $morehtmlrightbeforearrow='')
Print a title with navigation controls for pagination.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $disablesortlink=0, $tooltip='', $forcenowrapcolumntitle=0)
Get title line of an array.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
treeview li table
No Email.
usage($program, $header)
Print the usage when executing scripts from install/.
Definition inc.php:94
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
Definition member.php:79
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
Definition repair.php:149
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:152
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.