27 require
'../main.inc.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
29 require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
30 require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
31 require_once DOL_DOCUMENT_ROOT.
'/asset/class/asset.class.php';
34 $langs->loadLangs(array(
"assets"));
36 $action =
GETPOST(
'action',
'aZ09') ?
GETPOST(
'action',
'aZ09') :
'view';
37 $massaction =
GETPOST(
'massaction',
'alpha');
38 $show_files =
GETPOST(
'show_files',
'int');
39 $confirm =
GETPOST(
'confirm',
'alpha');
40 $cancel =
GETPOST(
'cancel',
'alpha');
41 $toselect =
GETPOST(
'toselect',
'array');
42 $contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'assetlist';
43 $backtopage =
GETPOST(
'backtopage',
'alpha');
44 $optioncss =
GETPOST(
'optioncss',
'aZ');
49 $limit =
GETPOST(
'limit',
'int') ?
GETPOST(
'limit',
'int') : $conf->liste_limit;
50 $sortfield =
GETPOST(
'sortfield',
'aZ09comma');
51 $sortorder =
GETPOST(
'sortorder',
'aZ09comma');
53 if (empty($page) || $page == -1 ||
GETPOST(
'button_search',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha') || (empty($toselect) && $massaction ===
'0')) { $page = 0; }
54 $offset = $limit * $page;
55 $pageprev = $page - 1;
56 $pagenext = $page + 1;
59 $object =
new Asset($db);
61 $diroutputmassaction = $conf->asset->dir_output.
'/temp/massgeneration/'.$user->id;
62 $hookmanager->initHooks(array(
'assetlist'));
65 $extrafields->fetch_name_optionals_label($object->table_element);
68 $search_array_options = $extrafields->getOptionalsFromPost($object->table_element,
'',
'search_');
71 if (!$sortfield) $sortfield =
"t.".key($object->fields);
72 if (!$sortorder) $sortorder =
"ASC";
76 if ($user->socid) $socid = $user->socid;
87 $search_all =
GETPOST(
"search_all",
'alpha');
89 foreach ($object->fields as $key => $val)
91 if (
GETPOST(
'search_'.$key,
'alpha') !==
'') $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
95 $fieldstosearchall = array();
96 foreach ($object->fields as $key => $val)
98 if ($val[
'searchall']) $fieldstosearchall[
't.'.$key] = $val[
'label'];
102 $arrayfields = array();
103 foreach ($object->fields as $key => $val)
106 if (!empty($val[
'visible'])) $arrayfields[
't.'.$key] = array(
'label'=>$val[
'label'],
'checked'=>(($val[
'visible'] < 0) ? 0 : 1),
'enabled'=>($val[
'enabled'] && ($val[
'visible'] != 3)),
'position'=>$val[
'position']);
109 if (is_array($extrafields->attributes[$object->table_element][
'label']) && count($extrafields->attributes[$object->table_element][
'label']) > 0)
111 foreach ($extrafields->attributes[$object->table_element][
'label'] as $key => $val)
113 if (!empty($extrafields->attributes[$object->table_element][
'list'][$key])) {
114 $arrayfields[
"ef.".$key] = array(
115 'label'=>$extrafields->attributes[$object->table_element][
'label'][$key],
116 'checked'=>(($extrafields->attributes[$object->table_element][
'list'][$key] < 0) ? 0 : 1),
117 'position'=>$extrafields->attributes[$object->table_element][
'pos'][$key],
118 'enabled'=>(abs($extrafields->attributes[$object->table_element][
'list'][$key]) != 3 && $extrafields->attributes[$object->table_element][
'perms'][$key])
126 $permissiontoread = $user->rights->asset->read;
127 $permissiontoadd = $user->rights->asset->write;
128 $permissiontodelete = $user->rights->asset->delete;
135 if (
GETPOST(
'cancel',
'alpha')) { $action =
'list'; $massaction =
''; }
136 if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') { $massaction =
''; }
138 $parameters = array();
139 $reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
140 if ($reshook < 0)
setEventMessages($hookmanager->error, $hookmanager->errors,
'errors');
145 include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
148 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha'))
150 foreach ($object->fields as $key => $val)
155 $search_array_options = array();
157 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')
158 ||
GETPOST(
'button_search_x',
'alpha') ||
GETPOST(
'button_search.x',
'alpha') ||
GETPOST(
'button_search',
'alpha'))
164 $objectclass =
'Asset';
165 $objectlabel =
'Asset';
166 $uploaddir = $conf->asset->dir_output;
167 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
176 $form =
new Form($db);
182 $title = $langs->trans(
'ListOf', $langs->transnoentitiesnoconv(
"Assets"));
188 foreach ($object->fields as $key => $val)
190 $sql .=
't.'.$key.
', ';
193 if (!empty($extrafields->attributes[$object->table_element][
'label'])) {
194 foreach ($extrafields->attributes[$object->table_element][
'label'] as $key => $val) $sql .= ($extrafields->attributes[$object->table_element][
'type'][$key] !=
'separate' ?
"ef.".$key.
' as options_'.$key.
', ' :
'');
197 $parameters = array();
198 $reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object);
199 $sql .= preg_replace(
'/^,/',
'', $hookmanager->resPrint);
200 $sql = preg_replace(
'/,\s*$/',
'', $sql);
201 $sql .=
" FROM ".MAIN_DB_PREFIX.$object->table_element.
" as t";
202 if (is_array($extrafields->attributes[$object->table_element][
'label']) && count($extrafields->attributes[$object->table_element][
'label'])) $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element.
"_extrafields as ef on (t.rowid = ef.fk_object)";
203 if ($object->ismultientitymanaged == 1) $sql .=
" WHERE t.entity IN (".getEntity($object->element).
")";
204 else $sql .=
" WHERE 1 = 1";
205 foreach ($search as $key => $val)
207 if ($key ==
'status' && $search[$key] == -1)
continue;
208 $mode_search = (($object->isInt($object->fields[$key]) || $object->isFloat($object->fields[$key])) ? 1 : 0);
209 if (strpos($object->fields[$key][
'type'],
'integer:') === 0) {
210 if ($search[$key] ==
'-1') $search[$key] =
'';
213 if ($search[$key] !=
'') $sql .=
natural_search($key, $search[$key], (($key ==
'status') ? 2 : $mode_search));
215 if ($search_all) $sql .=
natural_search(array_keys($fieldstosearchall), $search_all);
218 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
220 $parameters = array();
221 $reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object);
222 $sql .= $hookmanager->resPrint;
241 $sql .= $db->order($sortfield, $sortorder);
244 $nbtotalofrecords =
'';
245 if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
247 $resql = $db->query($sql);
248 $nbtotalofrecords = $db->num_rows(
$resql);
249 if (($page * $limit) > $nbtotalofrecords)
256 if (is_numeric($nbtotalofrecords) && ($limit > $nbtotalofrecords || empty($limit)))
258 $num = $nbtotalofrecords;
260 if ($limit) $sql .= $db->plimit($limit + 1, $offset);
262 $resql = $db->query($sql);
269 $num = $db->num_rows(
$resql);
273 if ($num == 1 && !empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && $search_all && !$page)
275 $obj = $db->fetch_object(
$resql);
277 header(
"Location: ".DOL_URL_ROOT.
'/asset/card.php?id='.$id);
288 print '<script type="text/javascript" language="javascript">
289 jQuery(document).ready(function() {
290 function init_myfunc()
292 jQuery("#myid").removeAttr(\'disabled\');
293 jQuery("#myid").attr(\'disabled\',\'disabled\');
296 jQuery("#mybutton").click(function() {
302 $arrayofselected = is_array($toselect) ? $toselect : array();
305 if (!empty($contextpage) && $contextpage !=
$_SERVER[
"PHP_SELF"]) $param .=
'&contextpage='.urlencode($contextpage);
306 if ($limit > 0 && $limit != $conf->liste_limit) $param .=
'&limit='.urlencode($limit);
307 foreach ($search as $key => $val)
309 if (is_array($search[$key]) && count($search[$key]))
foreach ($search[$key] as $skey) $param .=
'&search_'.$key.
'[]='.urlencode($skey);
310 else $param .=
'&search_'.$key.
'='.urlencode($search[$key]);
312 if ($optioncss !=
'') $param .=
'&optioncss='.urlencode($optioncss);
314 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
317 $arrayofmassactions = array(
321 if ($permissiontodelete) $arrayofmassactions[
'predelete'] =
'<span class="fa fa-trash paddingrightonly"></span>'.$langs->trans(
"Delete");
322 if (
GETPOST(
'nomassaction',
'int') || in_array($massaction, array(
'presend',
'predelete'))) $arrayofmassactions = array();
323 $massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
325 print '<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].
'">'.
"\n";
326 if ($optioncss !=
'')
print '<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
327 print '<input type="hidden" name="token" value="'.newToken().
'">';
328 print '<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
329 print '<input type="hidden" name="action" value="list">';
330 print '<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
331 print '<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
332 print '<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
334 $newcardbutton =
dolGetButtonTitle($langs->trans(
'NewAsset'),
'',
'fa fa-plus-circle',
dol_buildpath(
'/asset/card.php', 1).
'?action=create&backtopage='.urlencode(
$_SERVER[
'PHP_SELF']),
'', $permissiontoadd);
336 print_barre_liste($title, $page,
$_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
'accountancy', 0, $newcardbutton,
'', $limit, 0, 0, 1);
339 $topicmail =
"SendAssetsRef";
340 $modelmail =
"asset";
341 $objecttmp =
new Asset($db);
342 $trackid =
'asset'.$object->id;
343 include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
347 foreach ($fieldstosearchall as $key => $val) $fieldstosearchall[$key] = $langs->trans($val);
348 print '<div class="divsearchfieldfilter">'.$langs->trans(
"FilterOnInto", $sall).join(
', ', $fieldstosearchall).
'</div>';
356 $parameters = array();
357 $reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $object);
358 if (empty($reshook)) $moreforfilter .= $hookmanager->resPrint;
359 else $moreforfilter = $hookmanager->resPrint;
361 if (!empty($moreforfilter))
363 print '<div class="liste_titre liste_titre_bydiv centpercent">';
364 print $moreforfilter;
368 $varpage = empty($contextpage) ?
$_SERVER[
"PHP_SELF"] : $contextpage;
369 $selectedfields = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage);
370 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons(
'checkforselect', 1) :
'');
372 print '<div class="div-table-responsive">';
373 print '<table class="tagtable liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">'.
"\n";
378 print '<tr class="liste_titre">';
379 foreach ($object->fields as $key => $val)
381 $cssforfield = (empty($val[
'css']) ?
'' : $val[
'css']);
382 if ($key ==
'status') $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
383 elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) $cssforfield .= ($cssforfield ? ' ' : '').'center';
384 elseif (in_array($val['
type'], array('timestamp'))) $cssforfield .= ($cssforfield ? ' ' : '').'nowrap';
385 elseif (in_array($val['type'], array('
double(24,8)', '
double(6,3)', 'integer', 'real', '
price')) && $val['label'] != 'TechnicalID') $cssforfield .= ($cssforfield ? ' ' : '').'right';
386 if (!empty($arrayfields['t.'.$key]['checked']))
388 print
'<td class="liste_titre'.($cssforfield ?
' '.$cssforfield :
'').
'">';
389 if (!empty($val[
'arrayofkeyval']) && is_array($val[
'arrayofkeyval'])) print $form->selectarray(
'search_'.$key, $val[
'arrayofkeyval'], $search[$key], $val[
'notnull'], 0, 0,
'', 1, 0, 0,
'',
'maxwidth100', 1);
390 elseif (strpos($val[
'type'],
'integer:') === 0) {
391 print $object->showInputField($val, $key, $search[$key],
'',
'',
'search_',
'maxwidth150', 1);
392 } elseif (!preg_match(
'/^(date|timestamp)/', $val[
'type'])) print '<input type="text" class="flat maxwidth75"
name="search_'.$key.'" value="'.
dol_escape_htmltag($search[$key]).'">';
397 include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_input.tpl.php';
400 $parameters = array('arrayfields'=>$arrayfields);
401 $reshook = $hookmanager->executeHooks('printFieldListOption', $parameters, $object);
402 print $hookmanager->resPrint;
404 print '<td class="liste_titre maxwidthsearch">';
405 $searchpicto = $form->showFilterButtons();
413 print '<tr class="liste_titre">';
414 foreach ($object->
fields as $key => $val)
416 $cssforfield = (empty($val[
'css']) ?
'' : $val[
'css']);
417 if ($key ==
'status') $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
418 elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) $cssforfield .= ($cssforfield ? ' ' : '').'center';
419 elseif (in_array($val['type'], array('timestamp'))) $cssforfield .= ($cssforfield ? ' ' : '').'nowrap';
420 elseif (in_array($val['type'], array('
double(24,8)', '
double(6,3)', 'integer', 'real', '
price')) && $val['label'] != 'TechnicalID') $cssforfield .= ($cssforfield ? ' ' : '').'right';
421 if (!empty($arrayfields['t.'.$key]['checked']))
423 print
getTitleFieldOfList($arrayfields[
't.'.$key][
'label'], 0,
$_SERVER[
'PHP_SELF'],
't.'.$key,
'', $param, ($cssforfield ?
'class="'.$cssforfield.
'"' :
''), $sortfield, $sortorder, ($cssforfield ? $cssforfield.
' ' :
'')).
"\n";
427 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
429 $parameters = array(
'arrayfields'=>$arrayfields,
'param'=>$param,
'sortfield'=>$sortfield,
'sortorder'=>$sortorder);
430 $reshook = $hookmanager->executeHooks(
'printFieldListTitle', $parameters, $object);
431 print $hookmanager->resPrint;
433 print
getTitleFieldOfList($selectedfields, 0,
$_SERVER[
"PHP_SELF"],
'',
'',
'',
'align="center"', $sortfield, $sortorder,
'maxwidthsearch ').
"\n";
438 $needToFetchEachLine = 0;
439 if (is_array($extrafields->attributes[$object->table_element][
'computed']) && count($extrafields->attributes[$object->table_element][
'computed']) > 0)
441 foreach ($extrafields->attributes[$object->table_element][
'computed'] as $key => $val)
443 if (preg_match(
'/\$object/', $val)) $needToFetchEachLine++;
451 $totalarray = array();
452 while ($i < ($limit ? min($num, $limit) : $num))
454 $obj = $db->fetch_object(
$resql);
455 if (empty($obj))
break;
458 $object->setVarsFromFetchObj($obj);
461 print
'<tr class="oddeven">';
462 foreach ($object->fields as $key => $val)
464 $cssforfield = (empty($val[
'css']) ?
'' : $val[
'css']);
465 if (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
466 elseif ($key ==
'status') $cssforfield .= ($cssforfield ? ' ' : '').'center';
468 if (in_array($val['type'], array('timestamp'))) $cssforfield .= ($cssforfield ? ' ' : '').'nowrap';
469 elseif ($key == 'ref') $cssforfield .= ($cssforfield ? ' ' : '').'nowrap';
471 if (in_array($val['type'], array('
double(24,8)', '
double(6,3)', 'integer', 'real', '
price')) && $key != 'status') $cssforfield .= ($cssforfield ? ' ' : '').'right';
473 if (!empty($arrayfields['t.'.$key]['checked']))
475 print
'<td'.($cssforfield ?
' class="'.$cssforfield.
'"' :
'').
'>';
476 if ($key ==
'status') print $object->getLibStatut(5);
477 else print $object->showOutputField($val, $key, $object->$key,
'');
479 if (!$i) $totalarray[
'nbfield']++;
480 if (!empty($val[
'isameasure']))
482 if (!$i) $totalarray[
'pos'][$totalarray[
'nbfield']] =
't.'.$key;
483 $totalarray[
'val'][
't.'.$key] += $object->$key;
488 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
490 $parameters = array(
'arrayfields'=>$arrayfields,
'object'=>$object,
'obj'=>$obj,
'i'=>$i,
'totalarray'=>&$totalarray);
491 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters, $object);
492 print $hookmanager->resPrint;
494 print
'<td class="nowrap center">';
495 if ($massactionbutton || $massaction)
498 if (in_array($object->id, $arrayofselected)) $selected = 1;
499 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
502 if (!$i) $totalarray[
'nbfield']++;
510 include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
516 foreach ($arrayfields as $key => $val) {
if (!empty($val[
'checked'])) $colspan++; }
517 print
'<tr><td colspan="'.$colspan.
'" class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</td></tr>';
523 $parameters = array(
'arrayfields'=>$arrayfields,
'sql'=>$sql);
524 $reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $object);
525 print $hookmanager->resPrint;
527 print
'</table>'.
"\n";
530 print
'</form>'.
"\n";
532 if (in_array(
'builddoc', $arrayofmassactions) && ($nbtotalofrecords ===
'' || $nbtotalofrecords))
534 $hidegeneratedfilelistifempty = 1;
535 if ($massaction ==
'builddoc' || $action ==
'remove_file' || $show_files) $hidegeneratedfilelistifempty = 0;
537 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
541 $urlsource =
$_SERVER[
'PHP_SELF'].
'?sortfield='.$sortfield.
'&sortorder='.$sortorder;
542 $urlsource .= str_replace(
'&',
'&', $param);
544 $filedir = $diroutputmassaction;
545 $genallowed = $permissiontoread;
546 $delallowed = $permissiontoadd;
548 print $formfile->showdocuments(
'massfilesarea_asset',
'', $filedir, $urlsource, 0, $delallowed,
'', 1, 1, 0, 48, 1, $param, $title,
'');
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dolGetButtonTitle($label, $helpText= '', $iconClass= 'fa fa-file', $url= '', $id= '', $status=1, $params=array())
Function dolGetButtonTitle : this kind of buttons are used in title in list.
foreach($object->fields as $key=> $val) if(is_array($extrafields->attributes[$object->table_element]['label'])&&count($extrafields->attributes[$object->table_element]['label']) > 0) $object fields
dol_now($mode= 'auto')
Return date for now.
$conf db name
Only used if Module[ID]Name translation string is not found.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
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...
setEventMessages($mesg, $mesgs, $style= 'mesgs', $messagekey= '')
Set event messages in dol_events session object.
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.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname.
restrictedArea($user, $features, $objectid=0, $tableandshare= '', $feature2= '', $dbt_keyfield= 'fk_soc', $dbt_select= 'rowid', $isdraft=0)
Check permissions of a user to show a page and an object.
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 ...
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...
print $_SERVER["PHP_SELF"]
Edit parameters.
dol_sort_array(&$array, $index, $order= 'asc', $natsort=0, $case_sensitive=0, $keepindex=0)
Advanced sort array by second index function, which produces ascending (default) or descending output...
print
Draft customers invoices.
if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) if(!empty($conf->don->enabled)&&$user->rights->don->lire) if(!empty($conf->tax->enabled)&&$user->rights->tax->charges->lire) if(!empty($conf->facture->enabled)&&!empty($conf->commande->enabled)&&$user->rights->commande->lire &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) $resql
Social contributions to pay.
dol_print_error($db= '', $error= '', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
print $_SERVER["PHP_SELF"] n
Edit parameters.
getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $disablesortlink=0, $tooltip= '', $forcenowrapcolumntitle=0)
Get title line of an array.
if(!defined('CSRFCHECK_WITH_TOKEN')) define('CSRFCHECK_WITH_TOKEN'
Draft customers invoices.
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $keepmoretags= '', $escapeonlyhtmltags=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields...