27require
'../../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formadmin.class.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
30require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
31require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
32require_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
33require_once DOL_DOCUMENT_ROOT.
'/core/lib/accounting.lib.php';
34require_once DOL_DOCUMENT_ROOT.
'/accountancy/class/accountancyreport.class.php';
45$langs->loadLangs(array(
"admin",
"companies"));
47$action =
GETPOST(
'action',
'aZ09') ?
GETPOST(
'action',
'aZ09') :
'view';
48$confirm =
GETPOST(
'confirm',
'alpha');
50$rowid =
GETPOST(
'rowid',
'alpha');
51$code =
GETPOST(
'code',
'alpha');
54if (!$user->hasRight(
'accounting',
'chartofaccount')) {
62$actl[0] = img_picto($langs->trans(
"Disabled"),
'switch_off',
'class="size15x"');
63$actl[1] = img_picto($langs->trans(
"Activated"),
'switch_on',
'class="size15x"');
65$listoffset =
GETPOST(
'listoffset',
'alpha');
68$sortfield =
GETPOST(
"sortfield",
'aZ09comma');
69$sortorder =
GETPOST(
"sortorder",
'aZ09comma');
71if (empty($page) || $page < 0 ||
GETPOST(
'button_search',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
75$offset = $listlimit * $page;
79$search_country_id =
GETPOST(
'search_country_id',
'int');
82$hookmanager->initHooks(array(
'admin'));
92$tabname[45] = MAIN_DB_PREFIX.
"c_accounting_report";
96$tablib[45] =
"DictionaryAccountancyReport";
100$tabsql[45] =
"SELECT r.rowid as rowid, r.code as code, r.label, r.fk_country as country_id, c.code as country_code, c.label as country, r.active FROM ".MAIN_DB_PREFIX.
"c_accounting_report as r, ".MAIN_DB_PREFIX.
"c_country as c WHERE r.fk_country = c.rowid and c.active=1";
103$tabsqlsort = array();
104$tabsqlsort[45] =
"code ASC";
108$tabfield[45] =
"code,label,country";
111$tabfieldvalue = array();
112$tabfieldvalue[45] =
"code,label,country_id";
115$tabfieldinsert = array();
116$tabfieldinsert[45] =
"code,label,fk_country";
130$tabhelp[45] = array(
'code' => $langs->trans(
"EnterAnyCode"));
133$tabfieldcheck = array();
134$tabfieldcheck[45] = array();
137complete_dictionary_with_modules($taborder, $tabname, $tablib, $tabsql, $tabsqlsort, $tabfield, $tabfieldvalue, $tabfieldinsert, $tabrowid, $tabcond, $tabhelp, $tabfieldcheck);
146if (
GETPOST(
'button_removefilter',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter_x',
'alpha')) {
147 $search_country_id =
'';
151if (
GETPOST(
'actionadd',
'alpha') ||
GETPOST(
'actionmodify',
'alpha')) {
152 $listfield = explode(
',', str_replace(
' ',
'', $tabfield[$id]));
153 $listfieldinsert = explode(
',', $tabfieldinsert[$id]);
154 $listfieldmodify = explode(
',', $tabfieldinsert[$id]);
155 $listfieldvalue = explode(
',', $tabfieldvalue[$id]);
159 foreach ($listfield as $f => $value) {
160 if (($value ==
'country' || $value ==
'country_id') &&
GETPOST(
'country_id')) {
165 $fieldnamekey = $listfield[$f];
167 if ($fieldnamekey ==
'libelle' || ($fieldnamekey ==
'label')) {
168 $fieldnamekey =
'Label';
170 if ($fieldnamekey ==
'code') {
171 $fieldnamekey =
'Code';
173 if ($fieldnamekey ==
'country') {
174 $fieldnamekey =
'Country';
177 setEventMessages($langs->transnoentities(
"ErrorFieldRequired", $langs->transnoentities($fieldnamekey)),
null,
'errors');
183 setEventMessages($langs->transnoentities(
'ErrorCodeCantContainZero'),
null,
'errors');
188 if ($ok &&
GETPOST(
'actionadd',
'alpha')) {
191 if ($tabrowid[$id]) {
193 $sql =
"SELECT MAX(".$db->sanitize($tabrowid[$id]).
") newid FROM ".$db->sanitize($tabname[$id]);
194 $result = $db->query($sql);
196 $obj = $db->fetch_object($result);
197 $newid = ($obj->newid + 1);
199 dol_print_error($db);
204 $sql =
"INSERT INTO ".$db->sanitize($tabname[$id]).
" (";
206 if ($tabrowid[$id] && !in_array($tabrowid[$id], $listfieldinsert)) {
207 $sql .= $db->sanitize($tabrowid[$id]).
",";
209 $sql .= $db->sanitize($tabfieldinsert[$id]);
214 if ($tabrowid[$id] && !in_array($tabrowid[$id], $listfieldinsert)) {
215 $sql .= ((int) $newid).
",";
218 foreach ($listfieldinsert as $f => $value) {
219 if ($value ==
'entity') {
220 $_POST[$listfieldvalue[$i]] =
$conf->entity;
225 if (
GETPOST($listfieldvalue[$i]) ==
'' && !$listfieldvalue[$i] ==
'formula') {
228 $sql .=
"'".$db->escape(
GETPOST($listfieldvalue[$i])).
"'";
235 $result = $db->query($sql);
237 setEventMessages($langs->transnoentities(
"RecordSaved"),
null,
'mesgs');
238 $_POST = array(
'id' => $id);
240 if ($db->errno() ==
'DB_ERROR_RECORD_ALREADY_EXISTS') {
241 $langs->load(
'errors');
242 setEventMessages($langs->transnoentities(
"ErrorRecordAlreadyExists"),
null,
'errors');
244 dol_print_error($db);
250 if ($ok &&
GETPOST(
'actionmodify',
'alpha')) {
251 if ($tabrowid[$id]) {
252 $rowidcol = $tabrowid[
$id];
258 $sql =
"UPDATE ".$db->sanitize($tabname[$id]).
" SET ";
260 if ($tabrowid[$id] && !in_array($tabrowid[$id], $listfieldmodify)) {
261 $sql .= $db->sanitize($tabrowid[$id]).
" = ";
262 $sql .=
"'".$db->escape($rowid).
"', ";
265 foreach ($listfieldmodify as $field) {
266 if ($field ==
'fk_country' &&
GETPOST(
'country') > 0) {
267 $_POST[$listfieldvalue[$i]] =
GETPOST(
'country');
268 } elseif ($field ==
'entity') {
269 $_POST[$listfieldvalue[$i]] =
$conf->entity;
275 if (
GETPOST($listfieldvalue[$i]) ==
'' && !$listfieldvalue[$i] ==
'range_account') {
278 $sql .=
"'".$db->escape(
GETPOST($listfieldvalue[$i])).
"'";
282 $sql .=
" WHERE ".$db->sanitize($rowidcol).
" = ".((int) $rowid);
286 $resql = $db->query($sql);
288 setEventMessages($db->error(),
null,
'errors');
293if ($action ==
'confirm_delete' && $confirm ==
'yes') {
296 $sql =
"DELETE from ".$db->sanitize($tabname[$id]).
" WHERE ".$db->sanitize($rowidcol).
" = ".((int) $rowid);
299 $result = $db->query($sql);
301 if ($db->errno() ==
'DB_ERROR_CHILD_EXISTS') {
302 setEventMessages($langs->transnoentities(
"ErrorRecordIsUsedByChild"),
null,
'errors');
304 dol_print_error($db);
310if ($action == $acts[0]) {
315 $sql =
"UPDATE ".$db->sanitize($tabname[$id]).
" SET active = 1 WHERE ".$db->sanitize($rowidcol).
" = ".((int) $rowid);
317 $sql =
"UPDATE ".$db->sanitize($tabname[$id]).
" SET active = 1 WHERE code = '".$db->escape($code).
"'";
321 $result = $db->query($sql);
323 dol_print_error($db);
329if ($action == $acts[1]) {
334 $sql =
"UPDATE ".$db->sanitize($tabname[$id]).
" SET active = 0 WHERE ".$db->sanitize($rowidcol).
" = ".((int) $rowid);
336 $sql =
"UPDATE ".$db->sanitize($tabname[$id]).
" SET active = 0 WHERE code = '".$db->escape($code).
"'";
340 $result = $db->query($sql);
342 dol_print_error($db);
351$form =
new Form($db);
354$help_url =
'EN:Module_Double_Entry_Accounting#Setup|FR:Module_Comptabilité_en_Partie_Double#Configuration';
356llxHeader(
'', $langs->trans(
'DictionaryAccountancyCategory'), $help_url,
'', 0, 0,
'',
'',
'',
'mod-accountancy page-admin_categories_list');
358$titre = $langs->trans($tablib[$id]);
360$titlepicto =
'setup';
364print
'<span class="opacitymedium">'.$langs->trans(
"AccountingAccountReportsDesc", $langs->transnoentitiesnoconv(
"ByPersonalizedAccountGroups")).
'</span><br><br>';
367if ($action ==
'delete') {
368 print $form->formconfirm($_SERVER[
"PHP_SELF"].
'?'.($page ?
'page='.$page.
'&' :
'').
'sortfield='.$sortfield.
'&sortorder='.$sortorder.
'&rowid='.$rowid.
'&code='.$code.
'&id='.
$id.($search_country_id > 0 ?
'&search_country_id='.$search_country_id :
''), $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_delete',
'', 0, 1);
374if ($search_country_id > 0) {
375 if (preg_match(
'/ WHERE /', $sql)) {
380 $sql .=
" (r.fk_country = ".((int) $search_country_id).
" OR r.fk_country = 0)";
384if ($sortfield ==
'country') {
385 $sortfield =
'country_code';
388$sql .= $db->order($sortfield, $sortorder);
389$sql .= $db->plimit($listlimit + 1, $offset);
392$fieldlist = explode(
',', $tabfield[$id]);
395if ($search_country_id > 0) {
396 $param .=
'&search_country_id='.urlencode((
string) ($search_country_id));
398$paramwithsearch = $param;
400 $paramwithsearch .=
'&sortorder='.urlencode($sortorder);
403 $paramwithsearch .=
'&sortfield='.urlencode($sortfield);
406 $paramwithsearch .=
'&from='.urlencode(
GETPOST(
'from',
'alpha'));
409 $paramwithsearch .=
'&listlimit='.urlencode((
string) (
GETPOSTINT(
'listlimit')));
411print
'<form action="'.$_SERVER[
'PHP_SELF'].
'?id='.
$id.
'" method="POST">';
412print
'<input type="hidden" name="token" value="'.newToken().
'">';
413print
'<input type="hidden" name="from" value="'.dol_escape_htmltag(
GETPOST(
'from',
'alpha')).
'">';
414print
'<input type="hidden" name="sortfield" value="'.dol_escape_htmltag($sortfield).
'">';
415print
'<input type="hidden" name="sortorder" value="'.dol_escape_htmltag($sortorder).
'">';
418print
'<div class="div-table-responsive-no-min">';
419print
'<table class="noborder centpercent">';
423 $fieldlist = explode(
',', $tabfield[$id]);
426 print
'<tr class="liste_titre">';
428 if (
$conf->main_checkbox_left_column) {
431 foreach ($fieldlist as $field => $value) {
434 $valuetoshow = ucfirst($fieldlist[$field]);
435 $valuetoshow = $langs->trans($valuetoshow);
437 if ($fieldlist[$field] ==
'code') {
438 $valuetoshow = $langs->trans(
"Code");
441 if ($fieldlist[$field] ==
'libelle' || $fieldlist[$field] ==
'label') {
442 $valuetoshow = $langs->trans(
"Label");
444 if ($fieldlist[$field] ==
'country') {
445 $valuetoshow = $langs->trans(
"Country");
448 if ($valuetoshow !=
'') {
449 print
'<td class="'.$class.
'">';
450 if (!empty($tabhelp[$id][$value]) && preg_match(
'/^http(s*):/i', $tabhelp[$id][$value])) {
451 print
'<a href="'.$tabhelp[
$id][$value].
'">'.$valuetoshow.
' '.img_help(1, $valuetoshow).
'</a>';
452 } elseif (!empty($tabhelp[$id][$value])) {
453 print $form->textwithpicto($valuetoshow, $tabhelp[$id][$value]);
462 print
'<input type="hidden" name="id" value="'.$id.
'">';
466 if (!
$conf->main_checkbox_left_column) {
472 print
'<tr class="oddeven nodrag nodrop nohover">';
475 if (
$conf->main_checkbox_left_column) {
481 if (
GETPOST(
'actionadd',
'alpha')) {
482 foreach ($fieldlist as $key => $val) {
489 $tmpaction =
'create';
490 $parameters = array(
'fieldlist' => $fieldlist,
'tabname' => $tabname[$id]);
491 $reshook = $hookmanager->executeHooks(
'createDictionaryFieldlist', $parameters, $obj, $tmpaction);
492 $error = $hookmanager->error;
493 $errors = $hookmanager->errors;
495 if (empty($reshook)) {
499 print
'<td colspan="2" class="right">';
500 print
'<input type="submit" class="button button-add" name="actionadd" value="'.$langs->trans(
"Add").
'">';
504 if (!
$conf->main_checkbox_left_column) {
510 $colspan = count($fieldlist) + 3;
519print
'<div class="div-table-responsive">';
520print
'<table class="noborder centpercent">';
523dol_syslog(
"htdocs/accountancy/admin/categories_list.php", LOG_DEBUG);
525$resql = $db->query($sql);
527 $num = $db->num_rows($resql);
531 if ($num > $listlimit) {
532 print
'<tr class="none"><td class="right" colspan="'.(2 + count($fieldlist)).
'">';
533 print_fleche_navigation($page, $_SERVER[
"PHP_SELF"], $paramwithsearch, ($num > $listlimit ? 1 : 0),
'<li class="pagination"><span>'.$langs->trans(
"Page").
' '.($page + 1).
'</span></li>');
538 foreach ($fieldlist as $field => $value) {
540 if ($fieldlist[$field] ==
'region_id' || $fieldlist[$field] ==
'country_id') {
544 if ($value ==
'country') {
551 print
'<tr class="liste_titre liste_titre_filter">';
554 if (
$conf->main_checkbox_left_column) {
555 print
'<td class="liste_titre center">';
557 $searchpicto = $form->showFilterAndCheckAddButtons(0);
564 foreach ($fieldlist as $field => $value) {
567 if ($fieldlist[$field] ==
'region_id' || $fieldlist[$field] ==
'country_id') {
572 if ($value ==
'country') {
573 print
'<td class="liste_titre">';
574 print $form->select_country($search_country_id,
'search_country_id',
'', 28,
'maxwidth150 maxwidthonsmartphone');
578 print
'<td class="liste_titre"></td>';
582 print
'<td class="liste_titre"></td>';
584 if (!
$conf->main_checkbox_left_column) {
585 print
'<td class="liste_titre center">';
587 $searchpicto = $form->showFilterAndCheckAddButtons(0);
595 print
'<tr class="liste_titre">';
597 if (
$conf->main_checkbox_left_column) {
600 foreach ($fieldlist as $field => $value) {
608 $valuetoshow = ucfirst($fieldlist[$field]);
609 $valuetoshow = $langs->trans($valuetoshow);
610 if ($fieldlist[$field] ==
'code') {
611 $valuetoshow = $langs->trans(
"Code");
613 if ($fieldlist[$field] ==
'libelle' || $fieldlist[$field] ==
'label') {
614 $valuetoshow = $langs->trans(
"Label");
616 if ($fieldlist[$field] ==
'country') {
617 $valuetoshow = $langs->trans(
"Country");
619 if ($fieldlist[$field] ==
'region_id' || $fieldlist[$field] ==
'country_id') {
624 print
getTitleFieldOfList($valuetoshow, 0, $_SERVER[
"PHP_SELF"], ($sortable ? $fieldlist[$field] :
''), ($page ?
'page='.$page.
'&' :
''), $param,
"", $sortfield, $sortorder, $class.
' ');
627 print
getTitleFieldOfList($langs->trans(
"Status"), 0, $_SERVER[
"PHP_SELF"],
"active", ($page ?
'page='.$page.
'&' :
''), $param,
'', $sortfield, $sortorder,
'center ');
629 if (!
$conf->main_checkbox_left_column) {
636 $imaxinloop = ($listlimit ? min($num, $listlimit) : $num);
639 while ($i < $imaxinloop) {
640 $obj = $db->fetch_object($resql);
643 print
'<tr class="oddeven" id="rowid-'.$obj->rowid.
'">';
644 if ($action ==
'edit' && ($rowid == (!empty($obj->rowid) ? $obj->rowid : $obj->code))) {
646 $parameters = array(
'fieldlist' => $fieldlist,
'tabname' => $tabname[$id]);
647 $reshook = $hookmanager->executeHooks(
'editDictionaryFieldlist', $parameters, $obj, $tmpaction);
648 $error = $hookmanager->error;
649 $errors = $hookmanager->errors;
652 if (
$conf->main_checkbox_left_column) {
657 if (empty($reshook)) {
661 print
'<td class="center">';
662 print
'<div name="'.(!empty($obj->rowid) ? $obj->rowid : $obj->code).
'"></div>';
663 print
'<input type="hidden" name="page" value="'.$page.
'">';
664 print
'<input type="hidden" name="rowid" value="'.$rowid.
'">';
665 print
'<input type="submit" class="button button-edit smallpaddingimp" name="actionmodify" value="'.$langs->trans(
"Modify").
'">';
666 print
'<input type="submit" class="button button-cancel smallpaddingimp" name="actioncancel" value="'.$langs->trans(
"Cancel").
'">';
669 if (!
$conf->main_checkbox_left_column) {
677 if (isset($obj->code)) {
678 if (($obj->code ==
'0' || $obj->code ==
'' || preg_match(
'/unknown/i', $obj->code))) {
683 $url = $_SERVER[
"PHP_SELF"].
'?'.($page ?
'page='.$page.
'&' :
'').
'sortfield='.$sortfield.
'&sortorder='.$sortorder.
'&rowid='.(!empty($obj->rowid) ? $obj->rowid : (!empty($obj->code) ? $obj->code :
'')).
'&code='.(!empty($obj->code) ? urlencode($obj->code) :
'');
687 $canbemodified = $iserasable;
690 $parameters = array(
'fieldlist' => $fieldlist,
'tabname' => $tabname[$id]);
691 $reshook = $hookmanager->executeHooks(
'viewDictionaryFieldlist', $parameters, $obj, $tmpaction);
693 $error = $hookmanager->error;
694 $errors = $hookmanager->errors;
697 if (
$conf->main_checkbox_left_column) {
698 print
'<td class="center">';
699 if ($canbemodified) {
700 print
'<a class="reposition editfielda marginleftonly marginrightonly" href="'.$url.
'action=edit&token='.
newToken().
'">'.img_edit().
'</a>';
704 print
'<a class="marginleftonly marginrightonly" href="'.$url.
'action=delete&token='.
newToken().
'">'.img_delete().
'</a>';
710 if (empty($reshook)) {
711 foreach ($fieldlist as $field => $value) {
716 $tmpvar = $fieldlist[$field];
717 $valuetoshow = $obj->$tmpvar;
718 if ($valuetoshow ==
'all') {
719 $valuetoshow = $langs->trans(
'All');
720 } elseif ($fieldlist[$field] ==
'country') {
721 if (empty($obj->country_code)) {
724 $key = $langs->trans(
"Country".strtoupper($obj->country_code));
725 $valuetoshow = ($key !=
"Country".strtoupper($obj->country_code) ? $obj->country_code.
" - ".$key : $obj->country);
727 } elseif (in_array($fieldlist[$field], array(
'label'))) {
728 $class =
"tdoverflowmax250";
729 $title = $valuetoshow;
730 } elseif ($fieldlist[$field] ==
'region_id' || $fieldlist[$field] ==
'country_id') {
736 print
'<!-- '.$fieldlist[$field].
' --><td class="'.$class.
'"'.($title ?
' title="'.dol_escape_htmltag($title).
'"' :
'').
'>'.
dol_escape_htmltag($valuetoshow).
'</td>';
742 print
'<td class="center" class="nowrap">';
743 if ($canbedisabled) {
744 print
'<a class="reposition" href="'.$url.
'action='.$acts[$obj->active].
'&token='.
newToken().
'">'.$actl[$obj->active].
'</a>';
746 print $langs->trans(
"AlwaysActive");
751 if (!
$conf->main_checkbox_left_column) {
752 print
'<td class="center">';
753 if ($canbemodified) {
754 print
'<a class="reposition editfielda paddingleft marginleftonly marginrightonly paddingright" href="'.$url.
'action=edit&token='.
newToken().
'">'.img_edit().
'</a>';
758 print
'<a class="paddingleft marginleftonly marginrightonly paddingright" href="'.$url.
'action=delete&token='.
newToken().
'">'.img_delete().
'</a>';
769 print
'<tr><td colspan="'.$colspan.
'"><span class="opacitymedium">'.$langs->trans(
"None").
'</td></tr>';
772 dol_print_error($db);
800 foreach ($fieldlist as $field => $value) {
801 if ($fieldlist[$field] ==
'country') {
803 $fieldname =
'country';
805 $fieldname =
'country_id';
807 print $form->select_country($preselectcountrycode, $fieldname,
'', 28,
'maxwidth150 maxwidthonsmartphone');
809 $preselectcountrycode = (empty($obj->country_code) ? (empty($obj->country) ?
$mysoc->country_code : $obj->country) : $obj->country_code);
810 print $form->select_country($preselectcountrycode, $fieldname,
'', 28,
'maxwidth150 maxwidthonsmartphone');
813 } elseif ($fieldlist[$field] ==
'country_id') {
814 if (!in_array(
'country', $fieldlist)) {
815 $country_id = (!empty($obj->{$fieldlist[$field]}) ? $obj->{$fieldlist[$field]} : 0);
817 print
'<input type="hidden" name="'.$fieldlist[$field].
'" value="'.$country_id.
'">';
820 } elseif ($fieldlist[$field] ==
'code' && isset($obj->{$fieldlist[$field]})) {
821 print
'<td><input type="text" class="flat minwidth100" value="'.(!empty($obj->{$fieldlist[$field]}) ? $obj->{$fieldlist[$field]} :
'').
'" name="'.$fieldlist[$field].
'"></td>';
825 if (in_array($fieldlist[$field], array(
'label'))) {
826 $class =
'maxwidth150';
828 print
'<input type="text" class="flat'.($class ?
' '.$class :
'').
'" value="'.(isset($obj->{$fieldlist[$field]}) ? $obj->{$fieldlist[$field]} :
'').
'" name="'.$fieldlist[$field].
'">';
$id
Support class for third parties, contacts, members, users or resources.
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $conf
The main.inc.php has been included so the following variable are now defined:
Class to manage reports for accounting categories.
$context
@method int call_trigger(string $triggerName, ?User $user)
newToken()
Return the value of token currently saved into session with name 'newtoken'.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0, $nodefault=0)
Return value of a param into GET or POST supervariable.
GETPOSTINT($paramname, $method=0, $nodefault=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
isModEnabled($module)
Is Dolibarr module enabled.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $disablesortlink=0, $tooltip='', $forcenowrapcolumntitle=0)
Get title line of an array.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
print_fleche_navigation($page, $file, $options='', $nextpage=0, $betweenarrows='', $afterarrows='', $limit=-1, $totalnboflines=0, $selectlimitsuffix='', $beforearrows='', $hidenavigation=0)
Function to show navigation arrows into lists.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
fieldListAccountingReport($fieldlist, $obj=null, $tabname='', $context='')
Show fields in insert/edit mode.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.