31require
'../main.inc.php';
32require_once DOL_DOCUMENT_ROOT.
'/product/class/product.class.php';
33require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formother.class.php';
34require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
35require_once DOL_DOCUMENT_ROOT.
'/product/class/html.formproduct.class.php';
38$langs->loadLangs(array(
'products',
'stocks'));
40$action =
GETPOST(
'action',
'aZ09');
41$sref =
GETPOST(
"sref",
'alpha');
42$snom =
GETPOST(
"snom",
'alpha');
43$sall = trim((
GETPOST(
'search_all',
'alphanohtml') !=
'') ?
GETPOST(
'search_all',
'alphanohtml') :
GETPOST(
'sall',
'alphanohtml'));
44$type = GETPOSTISSET(
'type') ?
GETPOST(
'type',
'int') :
Product::TYPE_PRODUCT;
45$search_barcode =
GETPOST(
"search_barcode",
'alpha');
46$search_toolowstock =
GETPOST(
'search_toolowstock');
49$fourn_id =
GETPOST(
"fourn_id",
'int');
50$sbarcode =
GETPOST(
"sbarcode",
'int');
51$search_stock_physique =
GETPOST(
'search_stock_physique',
'alpha');
53$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
54$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
55$page = GETPOSTISSET(
'pageplusone') ? (
GETPOST(
'pageplusone') - 1) :
GETPOST(
"page",
'int');
56if (empty($page) || $page < 0) {
65$limit =
GETPOST(
'limit',
'int') ?
GETPOST(
'limit',
'int') : $conf->liste_limit;
66if (empty($page) || $page == -1) {
69$offset = $limit * $page;
72$search_sale =
GETPOST(
"search_sale");
73if (GETPOSTISSET(
'catid')) {
74 $search_categ =
GETPOST(
'catid',
'int');
76 $search_categ =
GETPOST(
'search_categ',
'int');
83 require_once DOL_DOCUMENT_ROOT.
'/core/class/canvas.class.php';
84 $objcanvas =
new Canvas($db, $action);
85 $objcanvas->getCanvas(
'product',
'list', $canvas);
89$virtualdiffersfromphysical = 0;
90if (!empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT)
91 || !empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER)
92 || !empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT_CLOSE)
93 || !empty($conf->global->STOCK_CALCULATE_ON_RECEPTION)
94 || !empty($conf->global->STOCK_CALCULATE_ON_RECEPTION_CLOSE)
95 || isModEnabled(
'mrp')) {
96 $virtualdiffersfromphysical = 1;
100$hookmanager->initHooks(array(
'productreassortlist'));
103 $socid = $user->socid;
105$result =
restrictedArea($user,
'produit|service', 0,
'product&product');
113if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
121 $search_toolowstock =
'';
124 $search_stock_physique =
'';
133$helpurl =
'EN:Module_Stocks_En|FR:Module_Stock|ES:Módulo_Stocks';
135$form =
new Form($db);
137if (!empty($objp->stock_physique) && $objp->stock_physique < 0) { print
'<span class="warning">'; }
139$sql =
'SELECT p.rowid, p.ref, p.label, p.barcode, p.price, p.price_ttc, p.price_base_type, p.entity,';
140$sql .=
' p.fk_product_type, p.tms as datem,';
141$sql .=
' p.duration, p.tosell as statut, p.tobuy, p.seuil_stock_alerte, p.desiredstock,';
142$sql .=
' SUM(s.reel) as stock_physique';
143if (!empty($conf->global->PRODUCT_USE_UNITS)) {
144 $sql .=
', u.short_label as unit_short';
147$parameters = array();
148$reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object);
149$sql .= $hookmanager->resPrint;
150$sql .=
' FROM '.MAIN_DB_PREFIX.
'product as p';
151$sql .=
' LEFT JOIN '.MAIN_DB_PREFIX.
'product_stock as s ON p.rowid = s.fk_product';
152if (!empty($conf->global->PRODUCT_USE_UNITS)) {
153 $sql .=
' LEFT JOIN '.MAIN_DB_PREFIX.
'c_units as u on p.fk_unit = u.rowid';
156$parameters = array();
157$reshook = $hookmanager->executeHooks(
'printFieldListFrom', $parameters, $object);
158$sql .= $hookmanager->resPrint;
159$sql .=
" WHERE p.entity IN (".getEntity(
'product').
")";
160if (!empty($search_categ) && $search_categ !=
'-1') {
162 if ($search_categ == -2) {
163 $sql .=
" NOT EXISTS ";
168 $sql .=
" SELECT cp.fk_categorie, cp.fk_product";
169 $sql .=
" FROM " . MAIN_DB_PREFIX .
"categorie_product as cp";
170 $sql .=
" WHERE cp.fk_product = p.rowid";
171 if ($search_categ > 0) {
172 $sql .=
" AND cp.fk_categorie = " . ((int) $search_categ);
176if (empty($conf->global->PRODUCT_STOCK_LIST_SHOW_VIRTUAL_WITH_NO_PHYSICAL)) {
177 $sql .=
" AND EXISTS (SELECT e.rowid FROM ".MAIN_DB_PREFIX.
"entrepot as e WHERE e.rowid = s.fk_entrepot AND e.entity IN (".
getEntity(
'stock').
"))";
183 FROM ".MAIN_DB_PREFIX.
"entrepot as e
184 WHERE e.rowid = s.fk_entrepot AND e.entity IN (".
getEntity(
'stock').
"))
186 SELECT SUM(cd1.qty) as qty
187 FROM ".MAIN_DB_PREFIX.
"commande_fournisseurdet as cd1
188 LEFT JOIN ".MAIN_DB_PREFIX.
"commande_fournisseur as c1
189 ON c1.rowid = cd1.fk_commande
190 WHERE c1.entity IN (1) AND cd1.fk_product = p.rowid AND c1.fk_statut in (3,4) AND cd1.qty <> 0
193 SELECT SUM(cd2.qty) as qty
194 FROM ".MAIN_DB_PREFIX.
"commandedet as cd2
195 LEFT JOIN ".MAIN_DB_PREFIX.
"commande as c2 ON c2.rowid = cd2.fk_commande
196 WHERE c2.entity IN (1) AND cd2.fk_product = p.rowid AND c2.fk_statut in (1,2) AND cd2.qty <> 0
199 SELECT SUM(ed3.qty) as qty
200 FROM ".MAIN_DB_PREFIX.
"expeditiondet as ed3
201 LEFT JOIN ".MAIN_DB_PREFIX.
"expedition as e3 ON e3.rowid = ed3.fk_expedition
202 LEFT JOIN ".MAIN_DB_PREFIX.
"commandedet as cd3 ON ed3.fk_origin_line = cd3.rowid
203 LEFT JOIN ".MAIN_DB_PREFIX.
"commande as c3 ON c3.rowid = cd3.fk_commande
204 WHERE e3.entity IN (1) AND cd3.fk_product = p.rowid AND c3.fk_statut IN (1,2) AND e3.fk_statut IN (1,2) AND ed3.qty <> 0
207 SELECT SUM(mp4.qty) as qty
208 FROM ".MAIN_DB_PREFIX.
"mrp_production as mp4
209 LEFT JOIN ".MAIN_DB_PREFIX.
"mrp_mo as m4 ON m4.rowid = mp4.fk_mo AND m4.entity IN (1) AND m4.status IN (1,2)
210 WHERE mp4.fk_product = p.rowid AND mp4.qty <> 0
215 $sql .=
natural_search(array(
'p.ref',
'p.label',
'p.description',
'p.note'), $sall);
220 $sql .=
" AND p.fk_product_type = '1'";
222 $sql .=
" AND p.fk_product_type <> '1'";
228if ($search_barcode) {
234if (!empty($tosell)) {
235 $sql .=
" AND p.tosell = ".((int) $tosell);
238 $sql .=
" AND p.tobuy = ".((int) $tobuy);
240if (!empty($canvas)) {
241 $sql .=
" AND p.canvas = '".$db->escape($canvas).
"'";
244 $sql .=
" AND p.rowid = pf.fk_product AND pf.fk_soc = ".((int) $fourn_id);
247$parameters = array();
248$reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object);
249$sql .= $hookmanager->resPrint;
250$sql .=
" GROUP BY p.rowid, p.ref, p.label, p.barcode, p.price, p.price_ttc, p.price_base_type, p.entity,";
251$sql .=
" p.fk_product_type, p.tms, p.duration, p.tosell, p.tobuy, p.seuil_stock_alerte, p.desiredstock";
254$parameters = array();
255$reshook = $hookmanager->executeHooks(
'printFieldListGroupBy', $parameters, $object);
256$sql .= $hookmanager->resPrint;
259if ($search_toolowstock) {
260 $sql_having .=
" HAVING SUM(".$db->ifsql(
's.reel IS NULL',
'0',
's.reel').
") < p.seuil_stock_alerte";
262if ($search_stock_physique !=
'') {
264 $natural_search_physique =
natural_search(
'SUM(' . $db->ifsql(
's.reel IS NULL',
'0',
's.reel') .
')', $search_stock_physique, 1, 1);
265 $natural_search_physique =
" " . substr($natural_search_physique, 1, -1);
266 if (!empty($sql_having)) {
267 $sql_having .=
" AND";
269 $sql_having .=
" HAVING";
271 $sql_having .= $natural_search_physique;
275$parameters = array();
276$reshook = $hookmanager->executeHooks(
'printFieldListHaving', $parameters, $object);
277if (!empty($hookmanager->resPrint)) {
278 if (!empty($sql_having)) {
279 $sql_having .=
" AND";
281 $sql_having .=
" HAVING";
283 $sql_having .= $hookmanager->resPrint;
286if (!empty($sql_having)) {
289$sql .= $db->order($sortfield, $sortorder);
292$nbtotalofrecords =
'';
294 $result = $db->query($sql);
295 $nbtotalofrecords = $db->num_rows($result);
296 if (($page * $limit) > $nbtotalofrecords) {
302$sql .= $db->plimit($limit + 1, $offset);
304$resql = $db->query($sql);
306 $num = $db->num_rows($resql);
310 if ($num == 1 &&
GETPOST(
'autojumpifoneonly') && ($sall || $snom || $sref)) {
311 $objp = $db->fetch_object($resql);
312 header(
"Location: card.php?id=$objp->rowid");
318 $texte = $langs->trans(
"Services");
320 $texte = $langs->trans(
"Products");
323 $texte = $langs->trans(
"ProductsAndServices");
325 $texte .=
' ('.$langs->trans(
"MenuStocks").
')';
328 if ($limit > 0 && $limit != $conf->liste_limit) {
329 $param .=
'&limit='.((int) $limit);
332 $param .=
"&sall=".urlencode($sall);
335 $param .=
"&tosell=".urlencode($tosell);
338 $param .=
"&tobuy=".urlencode($tobuy);
341 $param .=
"&type=".urlencode($type);
344 $param .=
"&fourn_id=".urlencode($fourn_id);
347 $param .=
"&snom=".urlencode($snom);
350 $param .=
"&sref=".urlencode($sref);
353 $param .=
"&search_sale=".urlencode($search_sale);
355 if ($search_categ > 0) {
356 $param .=
"&search_categ=".urlencode($search_categ);
358 if ($search_toolowstock) {
359 $param .=
"&search_toolowstock=".urlencode($search_toolowstock);
362 $param .=
"&sbarcode=".urlencode($sbarcode);
364 if ($search_stock_physique) {
365 $param .=
'&search_stock_physique=' . urlencode($search_stock_physique);
370 print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post" name="formulaire">';
371 print
'<input type="hidden" name="token" value="'.newToken().
'">';
372 print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
373 print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
374 print
'<input type="hidden" name="page" value="'.$page.
'">';
375 print
'<input type="hidden" name="type" value="'.$type.
'">';
377 print_barre_liste($texte, $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder,
'', $num, $nbtotalofrecords,
'product', 0,
'',
'', $limit);
379 if ($search_categ > 0) {
380 print
"<div id='ways'>";
382 $c->fetch($search_categ);
383 $ways = $c->print_all_ways(
' > ',
'product/reassort.php');
384 print
" > ".$ways[0].
"<br>\n";
390 if (isModEnabled(
'categorie')) {
391 $moreforfilter .=
'<div class="divsearchfield">';
392 $moreforfilter .=
img_picto($langs->trans(
'Categories'),
'category',
'class="pictofixedwidth"');
393 $moreforfilter .= $htmlother->select_categories(Categorie::TYPE_PRODUCT, $search_categ,
'search_categ', 1);
394 $moreforfilter .=
'</div>';
397 $moreforfilter .=
'<div class="divsearchfield">';
398 $moreforfilter .=
'<label for="search_toolowstock">'.$langs->trans(
"StockTooLow").
' </label><input type="checkbox" id="search_toolowstock" name="search_toolowstock" value="1"'.($search_toolowstock ?
' checked' :
'').
'>';
399 $moreforfilter .=
'</div>';
401 if (!empty($moreforfilter)) {
402 print
'<div class="liste_titre liste_titre_bydiv centpercent">';
403 print $moreforfilter;
404 $parameters = array();
405 $reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters);
406 print $hookmanager->resPrint;
411 $formProduct->loadWarehouses();
412 $warehouses_list = $formProduct->cache_warehouses;
413 $nb_warehouse = count($warehouses_list);
414 $colspan_warehouse = 1;
415 if (!empty($conf->global->STOCK_DETAIL_ON_WAREHOUSE)) {
416 $colspan_warehouse = $nb_warehouse > 1 ? $nb_warehouse + 1 : 1;
419 print
'<div class="div-table-responsive">';
420 print
'<table class="tagtable liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">';
423 print
'<tr class="liste_titre_filter">';
425 if (!empty($conf->global->MAIN_CHECKBOX_LEFT_COLUMN)) {
426 print
'<td class="liste_titre maxwidthsearch">';
427 $searchpicto = $form->showFilterAndCheckAddButtons(0);
431 print
'<td class="liste_titre">';
432 print
'<input class="flat" type="text" name="sref" size="6" value="'.$sref.
'">';
434 print
'<td class="liste_titre">';
435 print
'<input class="flat" type="text" name="snom" size="8" value="'.$snom.
'">';
438 if (isModEnabled(
"service") && $type == 1) {
439 print
'<td class="liste_titre">';
444 print
'<td class="liste_titre"> </td>';
445 print
'<td class="liste_titre right"> </td>';
447 print
'<td class="liste_titre right">';
448 print
'<input class="flat" type="text" size="5" name="search_stock_physique" value="'.dol_escape_htmltag($search_stock_physique).
'">';
450 if ($virtualdiffersfromphysical) {
451 print
'<td class="liste_titre"> </td>';
453 print
'<td class="liste_titre"> </td>';
454 print
'<td class="liste_titre" colspan="'.$colspan_warehouse.
'"> </td>';
455 print
'<td class="liste_titre"></td>';
456 $parameters = array();
457 $reshook = $hookmanager->executeHooks(
'printFieldListOption', $parameters);
458 print $hookmanager->resPrint;
459 if (empty($conf->global->MAIN_CHECKBOX_LEFT_COLUMN)) {
460 print
'<td class="liste_titre maxwidthsearch">';
461 $searchpicto = $form->showFilterAndCheckAddButtons(0);
468 print
'<tr class="liste_titre">';
470 if (!empty($conf->global->MAIN_CHECKBOX_LEFT_COLUMN)) {
475 if (isModEnabled(
"service") && $type == 1) {
476 print_liste_field_titre(
"Duration", $_SERVER[
"PHP_SELF"],
"p.duration",
'', $param,
"", $sortfield, $sortorder,
'center ');
478 print_liste_field_titre(
"StockLimit", $_SERVER[
"PHP_SELF"],
"p.seuil_stock_alerte",
'', $param,
"", $sortfield, $sortorder,
'right ');
479 print_liste_field_titre(
"DesiredStock", $_SERVER[
"PHP_SELF"],
"p.desiredstock",
'', $param,
"", $sortfield, $sortorder,
'right ');
480 print_liste_field_titre(
"PhysicalStock", $_SERVER[
"PHP_SELF"],
"stock_physique",
'', $param,
"", $sortfield, $sortorder,
'right ');
482 if (!empty($conf->global->STOCK_DETAIL_ON_WAREHOUSE)) {
483 if ($nb_warehouse > 1) {
484 foreach ($warehouses_list as &$wh) {
489 if ($virtualdiffersfromphysical) {
490 print_liste_field_titre(
"VirtualStock", $_SERVER[
"PHP_SELF"],
"",
'', $param,
"", $sortfield, $sortorder,
'right ',
'VirtualStockDesc');
493 if (!empty($conf->global->PRODUCT_USE_UNITS)) {
494 print_liste_field_titre(
"Unit", $_SERVER[
"PHP_SELF"],
"unit_short",
'', $param,
'align="right"', $sortfield, $sortorder);
497 print_liste_field_titre(
"ProductStatusOnSell", $_SERVER[
"PHP_SELF"],
"p.tosell",
'', $param,
"", $sortfield, $sortorder,
'right ');
498 print_liste_field_titre(
"ProductStatusOnBuy", $_SERVER[
"PHP_SELF"],
"p.tobuy",
'', $param,
"", $sortfield, $sortorder,
'right ');
500 $parameters = array(
'param'=>$param,
'sortfield'=>$sortfield,
'sortorder'=>$sortorder);
501 $reshook = $hookmanager->executeHooks(
'printFieldListTitle', $parameters);
502 print $hookmanager->resPrint;
504 if (empty($conf->global->MAIN_CHECKBOX_LEFT_COLUMN)) {
509 while ($i < min($num, $limit)) {
510 $objp = $db->fetch_object($resql);
513 $product->fetch($objp->rowid);
514 $product->load_stock();
518 if (!empty($conf->global->MAIN_CHECKBOX_LEFT_COLUMN)) {
521 print
'<td class="nowrap">';
522 print $product->getNomUrl(1,
'', 16);
525 print
'<td class="tdoverflowmax150" title="'.dol_escape_htmltag($product->label).
'">'.
dol_escape_htmltag($product->label).
'</td>';
527 if (isModEnabled(
"service") && $type == 1) {
528 print
'<td class="center">';
529 if (preg_match(
'/([0-9]+)y/i', $objp->duration, $regs)) {
530 print $regs[1].
' '.$langs->trans(
"DurationYear");
531 } elseif (preg_match(
'/([0-9]+)m/i', $objp->duration, $regs)) {
532 print $regs[1].
' '.$langs->trans(
"DurationMonth");
533 } elseif (preg_match(
'/([0-9]+)d/i', $objp->duration, $regs)) {
534 print $regs[1].
' '.$langs->trans(
"DurationDay");
536 print $objp->duration;
541 print
'<td class="right">';
542 print $objp->seuil_stock_alerte;
544 print
'<td class="right">';
545 print $objp->desiredstock;
548 print
'<td class="right">';
549 if ($objp->seuil_stock_alerte !=
'' && ($objp->stock_physique < $objp->seuil_stock_alerte)) {
550 print
img_warning($langs->trans(
"StockLowerThanLimit", $objp->seuil_stock_alerte)).
' ';
552 if ($objp->stock_physique < 0) { print
'<span class="warning">'; }
553 print
price(
price2num($objp->stock_physique,
'MS'), 0, $langs, 1, 0);
554 if ($objp->stock_physique < 0) { print
'</span>'; }
558 if (!empty($conf->global->STOCK_DETAIL_ON_WAREHOUSE)) {
559 if ($nb_warehouse > 1) {
560 foreach ($warehouses_list as &$wh) {
561 print
'<td class="right">';
562 print
price(empty($product->stock_warehouse[$wh[
'id']]->real) ? 0 :
price2num($product->stock_warehouse[$wh[
'id']]->real,
'MS'), 0, $langs, 1, 0);
569 if ($virtualdiffersfromphysical) {
570 print
'<td class="right">';
571 if ($objp->seuil_stock_alerte !=
'' && ($product->stock_theorique < (
float) $objp->seuil_stock_alerte)) {
572 print
img_warning($langs->trans(
"StockLowerThanLimit", $objp->seuil_stock_alerte)).
' ';
574 if ($objp->stock_physique < 0) { print
'<span class="warning">'; }
575 print
price(
price2num($product->stock_theorique,
'MS'), 0, $langs, 1, 0);
576 if ($objp->stock_physique < 0) { print
'</span>'; }
580 if (!empty($conf->global->PRODUCT_USE_UNITS)) {
581 print
'<td class="left">'.dol_escape_htmltag($objp->unit_short).
'</td>';
583 print
'<td class="center nowraponall">';
584 print
img_picto($langs->trans(
"StockMovement"),
'movement',
'class="pictofixedwidth"');
585 print
'<a href="'.DOL_URL_ROOT.
'/product/stock/movement_list.php?idproduct='.$product->id.
'">'.$langs->trans(
"Movements").
'</a>';
587 print
'<td class="right nowrap">'.$product->LibStatut($objp->statut, 5, 0).
'</td>';
588 print
'<td class="right nowrap">'.$product->LibStatut($objp->tobuy, 5, 1).
'</td>';
590 $parameters = array(
'obj'=>$objp);
591 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters, $product);
592 print $hookmanager->resPrint;
594 if (empty($conf->global->MAIN_CHECKBOX_LEFT_COLUMN)) {
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
Class to manage categories.
Class to manage products or services.
img_warning($titlealt='default', $moreatt='', $morecss='pictowarning')
Show warning logo.
price2num($amount, $rounding='', $option=0)
Function that return a number with universal decimal format (decimal separator is '.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
natural_search($fields, $value, $mode=0, $nofirstand=0)
Generate natural SQL search string for a criteria (this criteria can be tested on one or several fiel...
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
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.
getDolGlobalInt($key, $default=0)
Return dolibarr global constant int value.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
print_liste_field_titre($name, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $tooltip="", $forcenowrapcolumntitle=0)
Show 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.
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.
getEntity($element, $shared=1, $currentobject=null)
Get list of entity id to use.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
restrictedArea(User $user, $features, $object=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.