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