24 require
'../main.inc.php';
25 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
26 require_once DOL_DOCUMENT_ROOT.
'/core/lib/agenda.lib.php';
27 require_once DOL_DOCUMENT_ROOT.
'/core/class/events.class.php';
29 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
30 require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
31 require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
35 $langs->loadLangs(array(
"admin",
"other"));
37 $action =
GETPOST(
'action',
'aZ09') ?
GETPOST(
'action',
'aZ09') :
'view';
38 $massaction =
GETPOST(
'massaction',
'alpha');
39 $show_files =
GETPOST(
'show_files',
'int');
40 $confirm =
GETPOST(
'confirm',
'alpha');
41 $cancel =
GETPOST(
'cancel',
'alpha');
42 $toselect =
GETPOST(
'toselect',
'array');
43 $contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'emailcollectorlist';
44 $backtopage =
GETPOST(
'backtopage',
'alpha');
45 $optioncss =
GETPOST(
'optioncss',
'aZ');
50 $limit =
GETPOST(
'limit',
'int') ?
GETPOST(
'limit',
'int') : $conf->liste_limit;
51 $sortfield =
GETPOST(
'sortfield',
'aZ09comma');
52 $sortorder =
GETPOST(
'sortorder',
'aZ09comma');
54 if (empty($page) || $page < 0 ||
GETPOST(
'button_search',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha') || (empty($toselect) && $massaction ===
'0')) { $page = 0; }
55 $offset = $limit * $page;
56 $pageprev = $page - 1;
57 $pagenext = $page + 1;
64 $diroutputmassaction = $conf->emailcollector->dir_output.
'/temp/massgeneration/'.$user->id;
65 $hookmanager->initHooks(array(
'emailcollectorlist'));
68 $extrafields->fetch_name_optionals_label($object->table_element);
70 $search_array_options = $extrafields->getOptionalsFromPost($object->table_element,
'',
'search_');
73 if (!$sortfield) $sortfield =
"t.".key($object->fields);
74 if (!$sortorder) $sortorder =
"ASC";
86 $search_all =
GETPOST(
"search_all",
'alphanohtml');
88 foreach ($object->fields as $key => $val)
90 if (
GETPOST(
'search_'.$key,
'alpha') !==
'') $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
94 $fieldstosearchall = array();
95 foreach ($object->fields as $key => $val)
97 if ($val[
'searchall']) $fieldstosearchall[
't.'.$key] = $val[
'label'];
101 $arrayfields = array();
102 foreach ($object->fields as $key => $val)
105 if (!empty($val[
'visible'])) {
106 $visible =
dol_eval($val[
'visible'], 1);
107 $arrayfields[
't.'.$key] = array(
108 'label'=>$val[
'label'],
109 'checked'=>(($visible < 0) ? 0 : 1),
110 'enabled'=>($visible != 3 &&
dol_eval($val[
'enabled'], 1)),
111 'position'=>$val[
'position']
116 if (is_array($extrafields->attributes[$object->table_element][
'label']) && count($extrafields->attributes[$object->table_element][
'label']) > 0)
118 foreach ($extrafields->attributes[$object->table_element][
'label'] as $key => $val)
120 if (!empty($extrafields->attributes[$object->table_element][
'list'][$key])) {
121 $arrayfields[
"ef.".$key] = array(
122 'label'=>$extrafields->attributes[$object->table_element][
'label'][$key],
123 'checked'=>(($extrafields->attributes[$object->table_element][
'list'][$key] < 0) ? 0 : 1),
124 'position'=>$extrafields->attributes[$object->table_element][
'pos'][$key],
125 'enabled'=>(abs($extrafields->attributes[$object->table_element][
'list'][$key]) != 3 && $extrafields->attributes[$object->table_element][
'perms'][$key]),
126 'langfile'=>$extrafields->attributes[$object->table_element][
'langfile'][$key]
137 $permissiontoread = $user->admin;
138 $permissiontoadd = $user->admin;
139 $permissiontodelete = $user->admin;
142 if (empty($conf->emailcollector->enabled))
accessforbidden(
'Module not enabled');
150 if (
GETPOST(
'cancel',
'alpha')) { $action =
'list'; $massaction =
''; }
151 if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') { $massaction =
''; }
153 $parameters = array();
154 $reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
155 if ($reshook < 0)
setEventMessages($hookmanager->error, $hookmanager->errors,
'errors');
160 include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
163 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha'))
165 foreach ($object->fields as $key => $val)
170 $search_array_options = array();
172 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')
173 ||
GETPOST(
'button_search_x',
'alpha') ||
GETPOST(
'button_search.x',
'alpha') ||
GETPOST(
'button_search',
'alpha'))
179 $objectclass =
'EmailCollector';
180 $objectlabel =
'EmailCollector';
181 $uploaddir = $conf->emailcollector->dir_output;
182 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
191 $form =
new Form($db);
193 $help_url =
"EN:Module_EMail_Collector|FR:Module_Collecteur_de_courrier_électronique|ES:Module_EMail_Collector";
194 $title = $langs->trans(
'ListOf', $langs->transnoentitiesnoconv(
"EmailCollector"));
200 foreach ($object->fields as $key => $val)
202 $sql .=
't.'.$key.
', ';
205 if (!empty($extrafields->attributes[$object->table_element][
'label'])) {
206 foreach ($extrafields->attributes[$object->table_element][
'label'] as $key => $val) $sql .= ($extrafields->attributes[$object->table_element][
'type'][$key] !=
'separate' ?
"ef.".$key.
' as options_'.$key.
', ' :
'');
209 $parameters = array();
210 $reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object);
211 $sql .= preg_replace(
'/^,/',
'', $hookmanager->resPrint);
212 $sql = preg_replace(
'/,\s*$/',
'', $sql);
213 $sql .=
" FROM ".MAIN_DB_PREFIX.$object->table_element.
" as t";
214 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)";
215 if ($object->ismultientitymanaged == 1) $sql .=
" WHERE t.entity IN (".getEntity($object->element).
")";
216 else $sql .=
" WHERE 1 = 1";
217 foreach ($search as $key => $val)
219 if ($key ==
'status' && $search[$key] == -1)
continue;
220 $mode_search = (($object->isInt($object->fields[$key]) || $object->isFloat($object->fields[$key])) ? 1 : 0);
221 if (strpos($object->fields[$key][
'type'],
'integer:') === 0) {
222 if ($search[$key] ==
'-1') $search[$key] =
'';
225 if ($search[$key] !=
'') $sql .=
natural_search($key, $search[$key], (($key ==
'status') ? 2 : $mode_search));
227 if ($search_all) $sql .=
natural_search(array_keys($fieldstosearchall), $search_all);
229 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
231 $parameters = array();
232 $reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object);
233 $sql .= $hookmanager->resPrint;
252 $sql .= $db->order($sortfield, $sortorder);
255 $nbtotalofrecords =
'';
256 if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
258 $resql = $db->query($sql);
259 $nbtotalofrecords = $db->num_rows(
$resql);
260 if (($page * $limit) > $nbtotalofrecords)
267 if (is_numeric($nbtotalofrecords) && ($limit > $nbtotalofrecords || empty($limit)))
269 $num = $nbtotalofrecords;
271 if ($limit) $sql .= $db->plimit($limit + 1, $offset);
273 $resql = $db->query($sql);
280 $num = $db->num_rows(
$resql);
284 if ($num == 1 && !empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && $search_all && !$page)
286 $obj = $db->fetch_object(
$resql);
288 header(
"Location: ".DOL_URL_ROOT.
'/emailcollector/emailcollector_card.php?id='.$id);
299 print '<script type="text/javascript" language="javascript">
300 jQuery(document).ready(function() {
301 function init_myfunc()
303 jQuery("#myid").removeAttr(\'disabled\');
304 jQuery("#myid").attr(\'disabled\',\'disabled\');
307 jQuery("#mybutton").click(function() {
313 $arrayofselected = is_array($toselect) ? $toselect : array();
316 if (!empty($contextpage) && $contextpage !=
$_SERVER[
"PHP_SELF"]) $param .=
'&contextpage='.urlencode($contextpage);
317 if ($limit > 0 && $limit != $conf->liste_limit) $param .=
'&limit='.urlencode($limit);
318 foreach ($search as $key => $val)
320 if (is_array($search[$key]) && count($search[$key]))
foreach ($search[$key] as $skey) $param .=
'&search_'.$key.
'[]='.urlencode($skey);
321 else $param .=
'&search_'.$key.
'='.urlencode($search[$key]);
323 if ($optioncss !=
'') $param .=
'&optioncss='.urlencode($optioncss);
325 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
328 $arrayofmassactions = array(
332 if ($permissiontodelete) $arrayofmassactions[
'predelete'] =
'<span class="fa fa-trash paddingrightonly"></span>'.$langs->trans(
"Delete");
333 if (
GETPOST(
'nomassaction',
'int') || in_array($massaction, array(
'presend',
'predelete'))) $arrayofmassactions = array();
334 $massactionbutton = $form->selectMassAction(
'', $arrayofmassactions);
336 print '<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].
'">';
337 if ($optioncss !=
'')
print '<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
338 print '<input type="hidden" name="token" value="'.newToken().
'">';
339 print '<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
340 print '<input type="hidden" name="action" value="list">';
341 print '<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
342 print '<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
343 print '<input type="hidden" name="page" value="'.$page.
'">';
344 print '<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
346 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
348 $newcardbutton =
dolGetButtonTitle($langs->trans(
'New'),
'',
'fa fa-plus-circle',
'emailcollector_card.php?action=create&backtopage='.urlencode(
$_SERVER[
'PHP_SELF']),
'', $permissiontoadd);
350 print_barre_liste($title, $page,
$_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
'email', 0, $newcardbutton.
' '.$linkback,
'', $limit, 0, 0, 1);
357 include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
364 $parameters = array();
365 $reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $object);
366 if (empty($reshook)) $moreforfilter .= $hookmanager->resPrint;
367 else $moreforfilter = $hookmanager->resPrint;
369 if (!empty($moreforfilter))
371 print '<div class="liste_titre liste_titre_bydiv centpercent">';
372 print $moreforfilter;
376 $varpage = empty($contextpage) ?
$_SERVER[
"PHP_SELF"] : $contextpage;
377 $selectedfields = $form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage);
378 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons(
'checkforselect', 1) :
'');
380 print '<div class="div-table-responsive">';
381 print '<table class="tagtable nobottomiftotal liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">'.
"\n";
386 print '<tr class="liste_titre">';
387 foreach ($object->fields as $key => $val)
389 $cssforfield = (empty($val[
'css']) ?
'' : $val[
'css']);
390 if ($key ==
'status') $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
391 elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) $cssforfield .= ($cssforfield ? ' ' : '').'center';
392 elseif (in_array($val['
type'], array('timestamp'))) $cssforfield .= ($cssforfield ? ' ' : '').'nowrap';
393 elseif (in_array($val['type'], array('
double(24,8)', '
double(6,3)', 'integer', 'real', '
price')) && $val['label'] != 'TechnicalID') $cssforfield .= ($cssforfield ? ' ' : '').'right';
394 if (!empty($arrayfields['t.'.$key]['checked']))
396 print
'<td class="liste_titre'.($cssforfield ?
' '.$cssforfield :
'').
'">';
397 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);
398 elseif (strpos($val[
'type'],
'integer:') === 0) {
399 print $object->showInputField($val, $key, $search[$key],
'',
'',
'search_',
'maxwidth150', 1);
400 } elseif (!preg_match(
'/^(date|timestamp)/', $val[
'type'])) print '<input type="text" class="flat maxwidth75"
name="search_'.$key.'" value="'.
dol_escape_htmltag($search[$key]).'">';
405 include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_input.tpl.php';
408 $parameters = array('arrayfields'=>$arrayfields);
409 $reshook = $hookmanager->executeHooks('printFieldListOption', $parameters, $object);
410 print $hookmanager->resPrint;
412 print '<td class="liste_titre maxwidthsearch">';
413 $searchpicto = $form->showFilterButtons();
421 print '<tr class="liste_titre">';
422 foreach ($object->
fields as $key => $val)
424 $cssforfield = (empty($val[
'css']) ?
'' : $val[
'css']);
425 if ($key ==
'status') $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
426 elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) $cssforfield .= ($cssforfield ? ' ' : '').'center';
427 elseif (in_array($val['type'], array('timestamp'))) $cssforfield .= ($cssforfield ? ' ' : '').'nowrap';
428 elseif (in_array($val['type'], array('
double(24,8)', '
double(6,3)', 'integer', 'real', '
price')) && $val['label'] != 'TechnicalID') $cssforfield .= ($cssforfield ? ' ' : '').'right';
429 if (!empty($arrayfields['t.'.$key]['checked']))
431 print
getTitleFieldOfList($arrayfields[
't.'.$key][
'label'], 0,
$_SERVER[
'PHP_SELF'],
't.'.$key,
'', $param, ($cssforfield ?
'class="'.$cssforfield.
'"' :
''), $sortfield, $sortorder, ($cssforfield ? $cssforfield.
' ' :
'')).
"\n";
435 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
437 $parameters = array(
'arrayfields'=>$arrayfields,
'param'=>$param,
'sortfield'=>$sortfield,
'sortorder'=>$sortorder);
438 $reshook = $hookmanager->executeHooks(
'printFieldListTitle', $parameters, $object);
439 print $hookmanager->resPrint;
441 print
getTitleFieldOfList($selectedfields, 0,
$_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
446 $needToFetchEachLine = 0;
447 if (is_array($extrafields->attributes[$object->table_element][
'computed']) && count($extrafields->attributes[$object->table_element][
'computed']) > 0)
449 foreach ($extrafields->attributes[$object->table_element][
'computed'] as $key => $val)
451 if (preg_match(
'/\$object/', $val)) $needToFetchEachLine++;
459 $totalarray = array();
460 while ($i < ($limit ? min($num, $limit) : $num))
462 $obj = $db->fetch_object(
$resql);
463 if (empty($obj))
break;
466 $object->setVarsFromFetchObj($obj);
469 print
'<tr class="oddeven">';
470 foreach ($object->fields as $key => $val)
472 $cssforfield = (empty($val[
'css']) ?
'' : $val[
'css']);
473 if (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
474 elseif ($key ==
'status') $cssforfield .= ($cssforfield ? ' ' : '').'center';
476 if (in_array($val['type'], array('timestamp'))) $cssforfield .= ($cssforfield ? ' ' : '').'nowrap';
477 elseif ($key == 'ref') $cssforfield .= ($cssforfield ? ' ' : '').'nowrap';
479 if (in_array($val['type'], array('
double(24,8)', '
double(6,3)', 'integer', 'real', '
price')) && !in_array($key, array('
rowid', 'status'))) $cssforfield .= ($cssforfield ? ' ' : '').'right';
482 if (!empty($arrayfields['t.'.$key]['checked']))
484 print
'<td'.($cssforfield ?
' class="'.$cssforfield.
'"' :
'').
'>';
485 if ($key ==
'status') print $object->getLibStatut(5);
486 else print $object->showOutputField($val, $key, $object->$key,
'');
488 if (!$i) $totalarray[
'nbfield']++;
489 if (!empty($val[
'isameasure']))
491 if (!$i) $totalarray[
'pos'][$totalarray[
'nbfield']] =
't.'.$key;
492 $totalarray[
'val'][
't.'.$key] += $object->$key;
497 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
499 $parameters = array(
'arrayfields'=>$arrayfields,
'object'=>$object,
'obj'=>$obj,
'i'=>$i,
'totalarray'=>&$totalarray);
500 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters, $object);
501 print $hookmanager->resPrint;
503 print
'<td class="nowrap center">';
504 if ($massactionbutton || $massaction)
507 if (in_array($object->id, $arrayofselected)) $selected = 1;
508 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
511 if (!$i) $totalarray[
'nbfield']++;
519 include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
526 foreach ($arrayfields as $key => $val) {
if (!empty($val[
'checked'])) $colspan++; }
527 print
'<tr><td colspan="'.$colspan.
'" class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</td></tr>';
533 $parameters = array(
'arrayfields'=>$arrayfields,
'sql'=>$sql);
534 $reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $object);
535 print $hookmanager->resPrint;
537 print
'</table>'.
"\n";
540 print
'</form>'.
"\n";
542 if (in_array(
'builddoc', $arrayofmassactions) && ($nbtotalofrecords ===
'' || $nbtotalofrecords))
544 $hidegeneratedfilelistifempty = 1;
545 if ($massaction ==
'builddoc' || $action ==
'remove_file' || $show_files) $hidegeneratedfilelistifempty = 0;
547 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
551 $urlsource =
$_SERVER[
'PHP_SELF'].
'?sortfield='.$sortfield.
'&sortorder='.$sortorder;
552 $urlsource .= str_replace(
'&',
'&', $param);
554 $filedir = $diroutputmassaction;
555 $genallowed = $permissiontoread;
556 $delallowed = $permissiontoadd;
558 print $formfile->showdocuments(
'massfilesarea_emailcollector',
'', $filedir, $urlsource, 0, $delallowed,
'', 1, 1, 0, 48, 1, $param, $title,
'',
'',
'', null, $hidegeneratedfilelistifempty);
if(!function_exists('dol_getprefix')) dol_include_once($relpath, $classname= '')
Make an include_once using default root and alternate root if it fails.
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_eval($s, $returnvalue=0, $hideerrors=1)
Replace eval function to add more security.
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.
</td >< tdcolspan="3">< spanclass="opacitymedium"></span ></td ></tr >< trclass="liste_total"> CREANCES DETTES< tdcolspan="3"class="right"></td >< tdcolspan="3"class="right"></td ></tr > CREANCES DETTES RECETTES DEPENSES trips CREANCES DETTES Y m expensereport p date_valid Y m expensereport pe datep $db idate($date_start)."' AND $column < p rowid
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
$conf db name
Only used if Module[ID]Name translation string is not found.
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.
Class for EmailCollector.
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...