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//define("NOLOGIN",1); // This means this output page does not require to be logged.
18//if (!defined('NOREQUIREUSER')) define('NOREQUIREUSER', '1');
19//if (!defined('NOREQUIREDB')) define('NOREQUIREDB', '1');
20if (!defined('NOREQUIRESOC')) {
21 define('NOREQUIRESOC', '1');
22}
23//if (!defined('NOREQUIRETRAN')) define('NOREQUIRETRAN', '1');
24if (!defined('NOSTYLECHECK')) {
25 define('NOSTYLECHECK', '1'); // Do not check style html tag into posted data
26}
27//if (!defined('NOREQUIREMENU')) define('NOREQUIREMENU', '1'); // If there is no need to load and show top and left menu
28//if (!defined('NOREQUIREHTML')) define('NOREQUIREHTML', '1'); // If we don't need to load the html.form.class.php
29//if (!defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1'); // Do not load ajax.lib.php library
30if (!defined("NOLOGIN")) {
31 define("NOLOGIN", '1'); // If this page is public (can be called outside logged session)
32}
33
34// Load Dolibarr environment
35require '../../main.inc.php';
43// Security
44if ($dolibarr_main_prod) {
45 accessforbidden('Access forbidden when $dolibarr_main_prod is set to 1');
46}
47$optioncss = GETPOST('optioncss', 'alpha');
48
49
50/*
51 * View
52 */
53
54$form = new Form($db);
55
56$usedolheader = 1; // 1 = Test inside a dolibarr page, 0 = Use hard coded header
57
58// HEADER
59//--------
60
61if (empty($usedolheader)) {
62 header("Content-type: text/html; charset=UTF8");
63
64 // Security options
65 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)
66 header("X-Frame-Options: SAMEORIGIN"); // Frames allowed only if on same domain (stop some XSS attacks)
67 ?>
68 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
69 <html>
70 <head>
71 <meta name="robots" content="noindex,nofollow" />
72 <meta name="author" content="Dolibarr Development Team">
73 <title>Test page</title>
74 <!-- Includes for JQuery (Ajax library) -->
75 <link rel="stylesheet" type="text/css" href="<?php echo DOL_URL_ROOT ?>/includes/jquery/css/base/jquery-ui.css" />
76 <!-- <link rel="stylesheet" type="text/css" href="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/datatables/media/css/jquery.dataTables.css" /> -->
77 <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' : ''; ?>" />
78 <!-- Includes JS for JQuery -->
79 <script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/js/jquery.min.js"></script>
80 <!-- migration fixes for removed Jquery functions -->
81 <script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/js/jquery-migrate.min.js"></script>
82 <script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/tablednd/jquery.tablednd.0.6.min.js"></script>
83 <!-- <script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/datatables/media/js/jquery.dataTables.js"></script> -->
84 <script type="text/javascript" src="<?php echo DOL_URL_ROOT ?>/includes/jquery/plugins/select2/select2.min.js?version=4.0.0-beta"></script>
85 </head>
86
87 <body style="padding: 10px;">
88
89
90 <?php
91} else {
92 $arraycss = array();
93 $arrayjs = array();
94 /*
95 $arraycss=array('/includes/jquery/plugins/datatables/media/css/jquery.dataTables.css',
96 '/includes/jquery/plugins/datatables/extensions/Buttons/css/buttons.dataTables.min.css',
97 '/includes/jquery/plugins/datatables/extensions/ColReorder/css/colReorder.dataTables.min.css'
98 );
99 $arrayjs=array('/includes/jquery/plugins/datatables/media/js/jquery.dataTables.js',
100 '/includes/jquery/plugins/datatables/extensions/Buttons/js/dataTables.buttons.js',
101 '/includes/jquery/plugins/datatables/extensions/Buttons/js/buttons.colVis.min.js',
102 '/includes/jquery/plugins/datatables/extensions/Buttons/js/buttons.html5.min.js',
103 '/includes/jquery/plugins/datatables/extensions/Buttons/js/buttons.flash.min.js',
104 '/includes/jquery/plugins/datatables/extensions/Buttons/js/buttons.print.min.js',
105 '/includes/jquery/plugins/datatables/extensions/ColReorder/js/dataTables.colReorder.min.js',
106 '/includes/jszip/jszip.min.js',
107 '/includes/pdfmake/pdfmake.min.js',
108 '/includes/pdfmake/vfs_fonts.js'
109 );
110 */
111
112 llxHeader('', '', '', '', 0, 0, $arrayjs, $arraycss);
113}
114
115
116// CONTENT
117//---------
118?>
119
120<h2>
121This page is a sample of page using tables. It is designed to make test with<br>
122</h2>
123<div class="wordbreak">
124- css (add parameter &amp;theme=newtheme to test another theme or edit css of current theme)<br>
125- 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>
126- 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>
127- tablednd<br>
128</div>
129
130
131<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>
132
133<div class="tagtable centpercent">
134 <div class="tagtr">
135 <div class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
136 <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>
137 </div>
138 <div class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
139 <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>
140 </div>
141 </div>
142</div>
143
144<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>
145
146<div class="tagtable centpercent">
147 <form action="xxx" method="POST" class="tagtr">
148 <div class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
149 <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>
150 </div>
151 <div class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
152 <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>
153 </div>
154 </form>
155</div>
156
157<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>
158
159<table class="centpercent">
160 <tr>
161 <td class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
162 <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>
163 </td>
164 <td class="tagtd maxwidthonsmartphone" style="overflow: hidden; white-space: nowrap;"> <!-- If you remove max-width, the jmobile overflow does not work -->
165 <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>
166 </td>
167 </tr>
168</table>
169
170
171
172
173<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>
174
175
176<script type="text/javascript">
177/*jQuery(document).ready(function() {
178$(document).ready(function() {
179 var table = $('#tablelines3').DataTable( {
180 scrollY: "300px",
181 scrollX: true,
182 scrollCollapse: true,
183 paging: false,
184 fixedColumns: {
185 leftColumns: 1,
186 rightColumns: 1
187 }
188 } );
189} );
190});*/
191</script>
192
193
194<?php
195include_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
196$productspecimen = new Product($db);
197$productspecimen->initAsSpecimen();
198$object = $productspecimen;
199
200$sortfield = 'aaa';
201$sortorder = 'ASC';
202$tasksarray = array(1, 2, 3); // To force having several lines
203$tagidfortablednd = 'tablelines3';
204if (!isset($moreforfilter)) {
205 $moreforfilter = '';
206}
207if (!empty($conf->use_javascript_ajax)) {
208 include DOL_DOCUMENT_ROOT.'/core/tpl/ajaxrow.tpl.php';
209}
210
211$nav = '';
212$nav .= '<form name="dateselect" action="'.$_SERVER["PHP_SELF"].'?mode=show_peruser'.$param.'">';
213if ($actioncode || GETPOSTISSET('actioncode')) {
214 $nav .= '<input type="hidden" name="actioncode" value="'.$actioncode.'">';
215}
216if ($status || GETPOSTISSET('status')) {
217 $nav .= '<input type="hidden" name="status" value="'.$status.'">';
218}
219if ($filter) {
220 $nav .= '<input type="hidden" name="filter" value="'.$filter.'">';
221}
222if ($filtert) {
223 $nav .= '<input type="hidden" name="filtert" value="'.$filtert.'">';
224}
225if ($socid) {
226 $nav .= '<input type="hidden" name="socid" value="'.$socid.'">';
227}
228if (isset($showbirthday) && $showbirthday) {
229 $nav .= '<input type="hidden" name="showbirthday" value="1">';
230}
231if (isset($pid) && $pid) {
232 $nav .= '<input type="hidden" name="projectid" value="'.$pid.'">';
233}
234if ($type) {
235 $nav .= '<input type="hidden" name="type" value="'.$type.'">';
236}
237if ($usergroup) {
238 $nav .= '<input type="hidden" name="usergroup" value="'.$usergroup.'">';
239}
240$nav .= $form->selectDate($dateselect ?? '', 'dateselect', 0, 0, 1, '', 1, 0);
241$nav .= ' <input type="submit" name="submitdateselect" class="button" value="'.$langs->trans("Refresh").'">';
242$nav .= '</form>';
243
244$limit = 10;
245print_barre_liste('Title of my list', 12, $_SERVER["PHP_SELF"], '', '', '', 'Text in middle', 20, 500, '', 0, $nav, '', $limit, 0, 0, 1);
246
247$moreforfilter .= '<div class="divsearchfield">';
248$moreforfilter .= $langs->trans('This is a select list for a filter A (no combo forced)').': ';
249$cate_arbo = array('field1' => 'value1a into the select list A', 'field2' => 'value2a');
250$moreforfilter .= $form->selectarray('search_aaa', $cate_arbo, '', 1, 0, 0, '', 0, 0, 0, '', 'maxwidth300', 0); // List with no js combo
251$moreforfilter .= '</div>';
252
253$moreforfilter .= '<div class="divsearchfield">';
254$moreforfilter .= $langs->trans('This is a select list for a filter B (auto combo)').': ';
255$cate_arbo = array('field1' => 'value1b into the select list B', 'field2' => 'value2b');
256$moreforfilter .= $form->selectarray('search_bbb', $cate_arbo, '', 1, 0, 0, '', 0, 0, 0, '', 'maxwidth300', -1); // List with js combo auto
257$moreforfilter .= '</div>';
258
259$moreforfilter .= '<div class="divsearchfield">';
260$moreforfilter .= $langs->trans('This is a select list for a filter C (combo forced)').': ';
261$cate_arbo = array('field1' => 'value1c into the select list C', 'field2' => 'value2c');
262$moreforfilter .= $form->selectarray('search_ccc', $cate_arbo, '', 1, 0, 0, '', 0, 0, 0, '', 'maxwidth300', 1); // List with js combo forced
263$moreforfilter .= '</div>';
264
265$moreforfilter .= '<div class="divsearchfield">';
266$moreforfilter .= $langs->trans('This is a select list for a filter D (combo forced)').': ';
267$cate_arbo = array('field1' => 'value1d into the select list D', 'field2' => 'value2d');
268$moreforfilter .= $form->selectarray('search_ddd', $cate_arbo, '', 1, 0, 0, '', 0, 0, 0, '', 'maxwidth300', 1); // List with js combo forced
269$moreforfilter .= '</div>';
270
271if (!empty($moreforfilter)) {
272 print '<div class="liste_titre liste_titre_bydiv centpercent">';
273 print $moreforfilter;
274 $parameters = array();
275 $reshook = $hookmanager->executeHooks('printFieldPreListTitle', $parameters, $object); // Note that $action and $object may have been modified by hook
276 print $hookmanager->resPrint;
277 print '</div>';
278}
279
280?>
281
282<table class="stripe row-border order-column centpercent tagtable liste<?php echo $moreforfilter ? " listwithfilterbefore" : ""; ?>" id="tablelines3">
283<thead>
284<tr class="liste_titre">
285<?php print getTitleFieldOfList($langs->trans('title1'), 0, $_SERVER["PHP_SELF"], 'aaa', '', '', 'align="left"', $sortfield, $sortorder); ?>
286<?php print getTitleFieldOfList($langs->trans('title2'), 0, $_SERVER["PHP_SELF"], 'bbb', '', '', 'align="center"', $sortfield, $sortorder); ?>
287<?php print getTitleFieldOfList($langs->trans('title3'), 0, $_SERVER["PHP_SELF"], 'ccc', '', '', 'align="right"', $sortfield, $sortorder); ?>
288</tr>
289</thead>
290<tbody>
291<tr class="pair"><td><?php echo $productspecimen->getNomUrl(1); ?></td><td class="center">b1</td><td class="tdlineupdown right">c1</td></tr>
292<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>
293<tr class="pair"><td>a3</td><td class="center">b3</td><td class="tdlineupdown right">c3</td></tr>
294</tbody>
295</table>
296
297
298<br>
299
300
301<!--
302<br><hr><br>Example 1b : Table using tags: table/thead/tbody/tr/th-td + dataTable => Use this for short result tables<br>
303
304<script type="text/javascript">
305$(document).ready(function(){
306 $('#idtableexample2').dataTable( {
307 <?php
308 if ($optioncss == 'print') {
309 print '\'dom\': \'lfrtip\',';
310 } else {
311 print '\'dom\': \'Blfrtip\',';
312 }
313 ?>
314 "colReorder": true,
315 'buttons': [
316 'colvis','copy', 'csv', 'excel', 'pdf', 'print'
317 ],
318 "sPaginationType": "full_numbers",
319 "lengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "<?php echo $langs->trans('All'); ?>"]],
320 "oLanguage": {
321 "sLengthMenu": "<?php echo $langs->trans('Show'); ?> _MENU_ <?php echo $langs->trans('Entries'); ?>",
322 "sSearch": "<?php echo $langs->trans('Search'); ?>:",
323 "sZeroRecords": "<?php echo $langs->trans('NoRecordsToDisplay'); ?>",
324 "sInfoEmpty": "<?php echo $langs->trans('NoEntriesToShow'); ?>",
325 "sInfoFiltered": "(<?php echo $langs->trans('FilteredFrom'); ?> _MAX_ <?php echo $langs->trans('TotalEntries'); ?>)",
326 "sInfo": "<?php echo $langs->trans('Showing'); ?> _START_ <?php echo $langs->trans('To'); ?> _END_ <?php echo $langs->trans('WTOf'); ?> _TOTAL_ <?php echo $langs->trans('Entries'); ?>",
327 "oPaginate": {
328 "sFirst": "<?php echo $langs->transnoentities('First'); ?>",
329 "sLast": "<?php echo $langs->transnoentities('Last'); ?>",
330 "sPrevious": "<?php echo $langs->transnoentities('Previous'); ?>",
331 "sNext": "<?php echo $langs->transnoentities('Next'); ?>"
332 }
333 },
334 "aaSorting": [[0,'desc']],
335/* To use in ajax mode
336 "bProcessing": true,
337 "stateSave": true,
338 "bServerSide": true,
339 "sAjaxSource": "../ajax.php",
340 "aoColumnDefs": [
341 { "bSortable": false, "aTargets": [ 2,3,4 ] }
342 ],
343*/
344 })
345});
346</script>
347 -->
348
349
350<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>
351
352
353<?php
354 $tasksarray = array(1, 2, 3); // To force having several lines
355$tagidfortablednd = 'tablelines';
356if (!empty($conf->use_javascript_ajax)) {
357 include DOL_DOCUMENT_ROOT.'/core/tpl/ajaxrow.tpl.php';
358}
359?>
360<div class="tagtable centpercent liste_titre_bydiv" id="tablelines">
361 <div class="tagtr liste_titre">
362 <div class="tagtd">Title A<input type="hidden" name="cartitem" value="3"></div>
363 <div class="tagtd">title B</div>
364 <div class="tagtd">title C</div>
365 <div class="tagtd">title D</div>
366 </div>
367 <div class="pair tagtr">
368 <div class="tagtd">line4<input type="hidden" name="cartitem" value="3"></div>
369 <div class="tagtd">dfsdf</div>
370 <div class="tagtd"><input name="count" value="4" class="maxwidth50"></div>
371 <div class="tagtd tdlineupdown">bbbb</div>
372 </div>
373 <div class="impair tagtr">
374 <div class="tagtd">line5<input type="hidden" name="cartitemb" value="3"></div>
375 <div class="tagtd">dfsdf</div>
376 <div class="tagtd"><input name="countb" value="4" class="maxwidth50"></div>
377 <div class="tagtd tdlineupdown">bbbb</div>
378 </div>
379 <div class="pair tagtr">
380 <div class="tagtd">line6<input type="hidden" name="cartitem" value="3"></div>
381 <div class="tagtd">jghjgh</div>
382 <div class="tagtd">5</div>
383 <div class="tagtd tdlineupdown">lll</div>
384 </div>
385<!-- Using form into div make Firefox crazy (page loading does not end) -->
386<!-- <form class="liste_titre" method="POST" action="1.php">
387 <div>line1<input type="hidden" name="cartitem" value="1"></div>
388 <div><label><input type="checkbox" name="hidedetails" value="2"> A checkbox inside a cell</label></div>
389 <div><input name="count" value="4"></div>
390 <div><input type="submit" name="count2" class="button noshadow" value="aaa"></div>
391 </form>
392 <form class="impair" method="POST" action="2.php">
393 <div>line2<input type="hidden" name="cartitem" value="2"></div>
394 <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>
395 <div><input name="countb" value="4"></div>
396 <div class="tdlineupdown"><input type="submit" value="xxx" class="button"></div>
397 </form>-->
398</div>
399
400
401
402
403<?php
404if (!empty($usedolheader)) {
405 llxFooter();
406} else { ?>
407</body>
408<?php } ?>
409
410</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.
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.
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.