dolibarr  16.0.5
customerMargins.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2012-2013 Christophe Battarel <christophe.battarel@altairis.fr>
3  * Copyright (C) 2014 Ferran Marcet <fmarcet@2byte.es>
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 require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
27 require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
28 require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
29 require_once DOL_DOCUMENT_ROOT.'/margin/lib/margins.lib.php';
30 
31 // Load translation files required by the page
32 $langs->loadLangs(array('companies', 'bills', 'products', 'margins'));
33 
34 // Security check
35 $socid = GETPOST('socid', 'int');
36 $TSelectedProducts = GETPOST('products', 'array');
37 $TSelectedCats = GETPOST('categories', 'array');
38 
39 if (!empty($user->socid)) {
40  $socid = $user->socid;
41 }
42 $result = restrictedArea($user, 'societe', '', '');
43 $result = restrictedArea($user, 'margins');
44 
45 
46 // Load variable for pagination
47 $limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
48 $sortfield = GETPOST('sortfield', 'aZ09comma');
49 $sortorder = GETPOST('sortorder', 'aZ09comma');
50 $page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOST("page", 'int');
51 if (empty($page) || $page == -1) {
52  $page = 0;
53 } // If $page is not defined, or '' or -1
54 $offset = $limit * $page;
55 $pageprev = $page - 1;
56 $pagenext = $page + 1;
57 if (!$sortfield) {
58  $sortfield = "s.nom"; // Set here default search field
59 }
60 if (!$sortorder) {
61  $sortorder = "ASC";
62 }
63 
64 $startdate = $enddate = '';
65 if (GETPOST('startdatemonth')) {
66  $startdate = dol_mktime(0, 0, 0, GETPOST('startdatemonth', 'int'), GETPOST('startdateday', 'int'), GETPOST('startdateyear', 'int'));
67 }
68 if (GETPOST('enddatemonth')) {
69  $enddate = dol_mktime(23, 59, 59, GETPOST('enddatemonth', 'int'), GETPOST('enddateday', 'int'), GETPOST('enddateyear'));
70 }
71 
72 // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
73 $object = new Societe($db);
74 $hookmanager->initHooks(array('margincustomerlist'));
75 
76 
77 /*
78  * View
79  */
80 
81 $companystatic = new Societe($db);
82 $invoicestatic = new Facture($db);
83 
84 $form = new Form($db);
85 
86 llxHeader('', $langs->trans("Margins").' - '.$langs->trans("Clients"));
87 
88 $text = $langs->trans("Margins");
89 //print load_fiche_titre($text);
90 
91 // Show tabs
92 $head = marges_prepare_head($user);
93 $titre = $langs->trans("Margins");
94 $picto = 'margin';
95 
96 
97 print '<form method="post" name="sel" action="'.$_SERVER['PHP_SELF'].'">';
98 print '<input type="hidden" name="token" value="'.newToken().'">';
99 
100 print dol_get_fiche_head($head, 'customerMargins', $titre, 0, $picto);
101 
102 print '<table class="border centpercent">';
103 
104 $client = false;
105 if ($socid > 0) {
106  $soc = new Societe($db);
107  $soc->fetch($socid);
108 
109  if ($soc->client) {
110  print '<tr><td class="titlefield">'.$langs->trans('ThirdPartyName').'</td>';
111  print '<td class="maxwidthonsmartphone" colspan="4">';
112  print img_picto('', 'company').$form->select_company($socid, 'socid', '(client=1 OR client=3)', 1, 0, 0);
113  print '</td></tr>';
114 
115  $client = true;
116  if (!$sortorder) {
117  $sortorder = "DESC";
118  }
119  if (!$sortfield) {
120  $sortfield = "f.datef";
121  }
122  }
123 } else {
124  print '<tr><td class="titlefield">'.$langs->trans('ThirdPartyName').'</td>';
125  print '<td class="maxwidthonsmartphone" colspan="4">';
126  print img_picto('', 'company').$form->select_company(null, 'socid', '(client=1 OR client=3)', 1, 0, 0);
127  print '</td></tr>';
128 }
129 
130 $sortfield = GETPOST('sortfield', 'aZ09comma');
131 $sortorder = GETPOST('sortorder', 'aZ09comma');
132 if (!$sortorder) {
133  $sortorder = "ASC";
134 }
135 if (!$sortfield) {
136  if ($client) {
137  $sortfield = "f.datef";
138  $sortorder = "DESC";
139  } else {
140  $sortfield = "s.nom";
141  $sortorder = "ASC";
142  }
143 }
144 
145 // Products
146 $TRes = $form->select_produits_list('', '', '', '', 0, '', 1, 2, 1, 0, '', 1);
147 
148 $TProducts = array();
149 foreach ($TRes as $prod) {
150  $TProducts[$prod['key']] = $prod['label'];
151 }
152 
153 print '<tr><td class="titlefield">'.$langs->trans('ProductOrService').'</td>';
154 print '<td class="maxwidthonsmartpone" colspan="4">';
155 print img_picto('', 'product').$form->multiselectarray('products', $TProducts, $TSelectedProducts, 0, 0, 'minwidth500');
156 print '</td></tr>';
157 
158 // Categories
159 $TCats = $form->select_all_categories(0, array(), '', 64, 0, 1);
160 
161 print '<tr>';
162 print '<td class="titlefield">'.$langs->trans('Category').'</td>';
163 print '<td class="maxwidthonsmartphone" colspan="4">';
164 print img_picto('', 'category').$form->multiselectarray('categories', $TCats, $TSelectedCats, 0, 0, 'quatrevingtpercent widthcentpercentminusx');
165 print '</td>';
166 print '</tr>';
167 
168 // Start date
169 print '<td>'.$langs->trans('DateStart').' ('.$langs->trans("DateValidation").')</td>';
170 print '<td>';
171 print $form->selectDate($startdate, 'startdate', '', '', 1, "sel", 1, 1);
172 print '</td>';
173 print '<td>'.$langs->trans('DateEnd').' ('.$langs->trans("DateValidation").')</td>';
174 print '<td>';
175 print $form->selectDate($enddate, 'enddate', '', '', 1, "sel", 1, 1);
176 print '</td>';
177 print '<td style="text-align: center;">';
178 print '<input type="submit" class="button" value="'.dol_escape_htmltag($langs->trans('Refresh')).'" />';
179 print '</td></tr>';
180 
181 print "</table>";
182 
183 print '<br>';
184 
185 print '<table class="border centpercent">';
186 
187 // Total Margin
188 print '<tr><td class="titlefield">'.$langs->trans("TotalMargin").'</td><td colspan="4">';
189 print '<span id="totalMargin" class="amount"></span> <span class="amount">'.$langs->getCurrencySymbol($conf->currency).'</span>'; // set by jquery (see below)
190 print '</td></tr>';
191 
192 // Margin Rate
193 if (!empty($conf->global->DISPLAY_MARGIN_RATES)) {
194  print '<tr><td>'.$langs->trans("MarginRate").'</td><td colspan="4">';
195  print '<span id="marginRate"></span>'; // set by jquery (see below)
196  print '</td></tr>';
197 }
198 
199 // Mark Rate
200 if (!empty($conf->global->DISPLAY_MARK_RATES)) {
201  print '<tr><td>'.$langs->trans("MarkRate").'</td><td colspan="4">';
202  print '<span id="markRate"></span>'; // set by jquery (see below)
203  print '</td></tr>';
204 }
205 
206 print "</table>";
207 
208 print dol_get_fiche_end();
209 
210 print '</form>';
211 
212 $invoice_status_except_list = array(Facture::STATUS_DRAFT, Facture::STATUS_ABANDONED);
213 
214 $sql = "SELECT";
215 $sql .= " s.rowid as socid, s.nom as name, s.code_client, s.client,";
216 if ($client) {
217  $sql .= " f.rowid as facid, f.ref, f.total_ht, f.datef, f.paye, f.fk_statut as statut,";
218 }
219 $sql .= " sum(d.total_ht) as selling_price,";
220 // Note: qty and buy_price_ht is always positive (if not, your database may be corrupted, you can update this)
221 $sql .= " sum(".$db->ifsql('d.total_ht < 0', 'd.qty * d.buy_price_ht * -1 * (d.situation_percent / 100)', 'd.qty * d.buy_price_ht * (d.situation_percent / 100)').") as buying_price,";
222 $sql .= " sum(".$db->ifsql('d.total_ht < 0', '-1 * (abs(d.total_ht) - (d.buy_price_ht * d.qty * (d.situation_percent / 100)))', 'd.total_ht - (d.buy_price_ht * d.qty * (d.situation_percent / 100))').") as marge";
223 $sql .= " FROM ".MAIN_DB_PREFIX."societe as s";
224 $sql .= ", ".MAIN_DB_PREFIX."facture as f";
225 $sql .= ", ".MAIN_DB_PREFIX."facturedet as d";
226 if (!empty($TSelectedCats)) {
227  $sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'categorie_product as cp ON cp.fk_product=d.fk_product';
228 }
229 
230 if (empty($user->rights->societe->client->voir) && !$socid) {
231  $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
232 }
233 $sql .= " WHERE f.fk_soc = s.rowid";
234 if ($socid > 0) {
235  $sql .= ' AND s.rowid = '.((int) $socid);
236 }
237 if (empty($user->rights->societe->client->voir) && !$socid) {
238  $sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = ".((int) $user->id);
239 }
240 $sql .= " AND f.fk_statut NOT IN (".$db->sanitize(implode(', ', $invoice_status_except_list)).")";
241 $sql .= ' AND s.entity IN ('.getEntity('societe').')';
242 $sql .= ' AND f.entity IN ('.getEntity('invoice').')';
243 $sql .= " AND d.fk_facture = f.rowid";
244 $sql .= " AND (d.product_type = 0 OR d.product_type = 1)";
245 if (!empty($TSelectedProducts)) {
246  $sql .= ' AND d.fk_product IN ('.$db->sanitize(implode(',', $TSelectedProducts)).')';
247 }
248 if (!empty($TSelectedCats)) {
249  $sql .= ' AND cp.fk_categorie IN ('.$db->sanitize(implode(',', $TSelectedCats)).')';
250 }
251 if (!empty($startdate)) {
252  $sql .= " AND f.datef >= '".$db->idate($startdate)."'";
253 }
254 if (!empty($enddate)) {
255  $sql .= " AND f.datef <= '".$db->idate($enddate)."'";
256 }
257 $sql .= " AND d.buy_price_ht IS NOT NULL";
258 // We should not use this here. Option ForceBuyingPriceIfNull should have effect only when inserting data. Once data is recorded, it must be used as it is for report.
259 // We keep it with value ForceBuyingPriceIfNull = 2 for retroactive effect but results are unpredicable.
260 if (isset($conf->global->ForceBuyingPriceIfNull) && $conf->global->ForceBuyingPriceIfNull == 2) {
261  $sql .= " AND d.buy_price_ht <> 0";
262 }
263 if ($client) {
264  $sql .= " GROUP BY s.rowid, s.nom, s.code_client, s.client, f.rowid, f.ref, f.total_ht, f.datef, f.paye, f.fk_statut";
265 } else {
266  $sql .= " GROUP BY s.rowid, s.nom, s.code_client, s.client";
267 }
268 $sql .= $db->order($sortfield, $sortorder);
269 // TODO: calculate total to display then restore pagination
270 //$sql.= $db->plimit($conf->liste_limit +1, $offset);
271 
272 $param = '&socid='.((int) $socid);
273 if (GETPOST('startdatemonth', 'int')) {
274  $param .= '&startdateyear='.GETPOST('startdateyear', 'int');
275  $param .= '&startdatemonth='.GETPOST('startdatemonth', 'int');
276  $param .= '&startdateday='.GETPOST('startdateday', 'int');
277 }
278 if (GETPOST('enddatemonth', 'int')) {
279  $param .= '&enddateyear='.GETPOST('enddateyear', 'int');
280  $param .= '&enddatemonth='.GETPOST('enddatemonth', 'int');
281  $param .= '&enddateday='.GETPOST('enddateday', 'int');
282 }
283 $listofproducts = GETPOST('products', 'array:int');
284 if (is_array($listofproducts)) {
285  foreach ($listofproducts as $val) {
286  $param .= '&products[]='.$val;
287  }
288 }
289 $listofcateg = GETPOST('categories', 'array:int');
290 if (is_array($listofcateg)) {
291  foreach ($listofcateg as $val) {
292  $param .= '&categories[]='.$val;
293  }
294 }
295 
296 dol_syslog('margin::customerMargins.php', LOG_DEBUG);
297 $result = $db->query($sql);
298 if ($result) {
299  $num = $db->num_rows($result);
300 
301  print '<br>';
302  print_barre_liste($langs->trans("MarginDetails"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', $num, $num, '', 0, '', '', 0, 1);
303 
304  if ($conf->global->MARGIN_TYPE == "1") {
305  $labelcostprice = 'BuyingPrice';
306  } else { // value is 'costprice' or 'pmp'
307  $labelcostprice = 'CostPrice';
308  }
309 
310  $moreforfilter = '';
311 
312  $i = 0;
313  print '<div class="div-table-responsive">';
314  print '<table class="tagtable liste'.($moreforfilter ? " listwithfilterbefore" : "").'">'."\n";
315 
316  print '<tr class="liste_titre">';
317  if (!empty($client)) {
318  print_liste_field_titre("Invoice", $_SERVER["PHP_SELF"], "f.ref", "", $param, '', $sortfield, $sortorder);
319  print_liste_field_titre("DateInvoice", $_SERVER["PHP_SELF"], "f.datef", "", $param, 'align="center"', $sortfield, $sortorder);
320  } else {
321  print_liste_field_titre("Customer", $_SERVER["PHP_SELF"], "s.nom", "", $param, '', $sortfield, $sortorder);
322  }
323  print_liste_field_titre("SellingPrice", $_SERVER["PHP_SELF"], "selling_price", "", $param, 'align="right"', $sortfield, $sortorder);
324  print_liste_field_titre($labelcostprice, $_SERVER["PHP_SELF"], "buying_price", "", $param, 'align="right"', $sortfield, $sortorder);
325  print_liste_field_titre("Margin", $_SERVER["PHP_SELF"], "marge", "", $param, 'align="right"', $sortfield, $sortorder);
326  if (!empty($conf->global->DISPLAY_MARGIN_RATES)) {
327  print_liste_field_titre("MarginRate", $_SERVER["PHP_SELF"], "", "", $param, 'align="right"', $sortfield, $sortorder);
328  }
329  if (!empty($conf->global->DISPLAY_MARK_RATES)) {
330  print_liste_field_titre("MarkRate", $_SERVER["PHP_SELF"], "", "", $param, 'align="right"', $sortfield, $sortorder);
331  }
332  print "</tr>\n";
333 
334  $cumul_achat = 0;
335  $cumul_vente = 0;
336 
337  if ($num > 0) {
338  while ($i < $num /*&& $i < $conf->liste_limit*/) {
339  $objp = $db->fetch_object($result);
340 
341  $pa = $objp->buying_price;
342  $pv = $objp->selling_price;
343  $marge = $objp->marge;
344 
345  if ($marge < 0) {
346  $marginRate = ($pa != 0) ?-1 * (100 * $marge / $pa) : '';
347  $markRate = ($pv != 0) ?-1 * (100 * $marge / $pv) : '';
348  } else {
349  $marginRate = ($pa != 0) ? (100 * $marge / $pa) : '';
350  $markRate = ($pv != 0) ? (100 * $marge / $pv) : '';
351  }
352 
353  print '<tr class="oddeven">';
354  if ($client) {
355  print '<td>';
356  $invoicestatic->id = $objp->facid;
357  $invoicestatic->ref = $objp->ref;
358  print $invoicestatic->getNomUrl(1);
359  print '</td>';
360  print '<td class="center">';
361  print dol_print_date($db->jdate($objp->datef), 'day').'</td>';
362  } else {
363  $companystatic->id = $objp->socid;
364  $companystatic->name = $objp->name;
365  $companystatic->client = $objp->client;
366  print '<td>'.$companystatic->getNomUrl(1, 'margin').'</td>';
367  }
368 
369  print '<td class="nowrap right"><span class="amount">'.price(price2num($pv, 'MT')).'</span></td>';
370  print '<td class="nowrap right"><span class="amount">'.price(price2num($pa, 'MT')).'</span></td>';
371  print '<td class="nowrap right"><span class="amount">'.price(price2num($marge, 'MT')).'</span></td>';
372  if (!empty($conf->global->DISPLAY_MARGIN_RATES)) {
373  print '<td class="nowrap right">'.(($marginRate === '') ? 'n/a' : price(price2num($marginRate, 'MT'))."%").'</td>';
374  }
375  if (!empty($conf->global->DISPLAY_MARK_RATES)) {
376  print '<td class="nowrap right">'.(($markRate === '') ? 'n/a' : price(price2num($markRate, 'MT'))."%").'</td>';
377  }
378  print "</tr>\n";
379 
380  $i++;
381  $cumul_achat += $objp->buying_price;
382  $cumul_vente += $objp->selling_price;
383  }
384  }
385 
386  // affichage totaux marges
387 
388  $totalMargin = $cumul_vente - $cumul_achat;
389  /*if ($totalMargin < 0)
390  {
391  $marginRate = ($cumul_achat != 0)?-1*(100 * $totalMargin / $cumul_achat):'';
392  $markRate = ($cumul_vente != 0)?-1*(100 * $totalMargin / $cumul_vente):'';
393  }
394  else
395  {*/
396  $marginRate = ($cumul_achat != 0) ? (100 * $totalMargin / $cumul_achat) : '';
397  $markRate = ($cumul_vente != 0) ? (100 * $totalMargin / $cumul_vente) : '';
398  //}
399 
400  print '<tr class="liste_total">';
401  if ($client) {
402  print '<td colspan=2>';
403  } else {
404  print '<td>';
405  }
406  print $langs->trans('TotalMargin')."</td>";
407  print '<td class="nowrap right">'.price(price2num($cumul_vente, 'MT')).'</td>';
408  print '<td class="nowrap right">'.price(price2num($cumul_achat, 'MT')).'</td>';
409  print '<td class="nowrap right">'.price(price2num($totalMargin, 'MT')).'</td>';
410  if (!empty($conf->global->DISPLAY_MARGIN_RATES)) {
411  print '<td class="nowrap right">'.(($marginRate === '') ? 'n/a' : price(price2num($marginRate, 'MT'))."%").'</td>';
412  }
413  if (!empty($conf->global->DISPLAY_MARK_RATES)) {
414  print '<td class="nowrap right">'.(($markRate === '') ? 'n/a' : price(price2num($markRate, 'MT'))."%").'</td>';
415  }
416  print '</tr>';
417 
418  print '</table>';
419  print '</div>';
420 } else {
421  dol_print_error($db);
422 }
423 $db->free($result);
424 
425 print '<script type="text/javascript">
426 $(document).ready(function() {
427  console.log("Init some values");
428  $("#totalMargin").html("'.price(price2num($totalMargin, 'MT')).'");
429  $("#marginRate").html("'.(($marginRate === '') ? 'n/a' : price(price2num($marginRate, 'MT'))."%").'");
430  $("#markRate").html("'.(($markRate === '') ? 'n/a' : price(price2num($markRate, 'MT'))."%").'");
431 });
432 </script>
433 ';
434 
435 // End of page
436 llxFooter();
437 $db->close();
Facture\STATUS_DRAFT
const STATUS_DRAFT
Draft status.
Definition: facture.class.php:412
Societe
Class to manage third parties objects (customers, suppliers, prospects...)
Definition: societe.class.php:48
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
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
dol_print_error
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
Definition: functions.lib.php:4844
$form
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
Definition: card.php:142
Facture
Class to manage invoices.
Definition: facture.class.php:60
marges_prepare_head
marges_prepare_head()
Return array of tabs to used on pages for third parties cards.
Definition: margins.lib.php:59
price2num
price2num($amount, $rounding='', $option=0)
Function that return a number with universal decimal format (decimal separator is '.
Definition: functions.lib.php:5661
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_syslog
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
Definition: functions.lib.php:1603
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
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
dol_get_fiche_end
dol_get_fiche_end($notab=0)
Return tab footer of a card.
Definition: functions.lib.php:2018
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
print_liste_field_titre
print_liste_field_titre($name, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $tooltip="", $forcenowrapcolumntitle=0)
Show title line of an array.
Definition: functions.lib.php:5026
Form
Class to manage generation of HTML components Only common components must be here.
Definition: html.form.class.php:52
Facture\STATUS_ABANDONED
const STATUS_ABANDONED
Classified abandoned and no payment done.
Definition: facture.class.php:435
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
dol_mktime
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm='auto', $check=1)
Return a timestamp date built from detailed informations (by default a local PHP server timestamp) Re...
Definition: functions.lib.php:2757
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