36require
'../../main.inc.php';
37require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formadmin.class.php';
38require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
39require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
40require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
41require_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
42require_once DOL_DOCUMENT_ROOT.
'/core/lib/accounting.lib.php';
43if (isModEnabled(
'accounting')) {
44 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formaccounting.class.php';
48$langs->loadLangs(array(
'accountancy',
'admin',
'companies',
'compta',
'errors',
'holiday',
'hrm',
'resource'));
50$action =
GETPOST(
'action',
'aZ09') ?
GETPOST(
'action',
'aZ09') :
'view';
51$confirm =
GETPOST(
'confirm',
'alpha');
53$rowid =
GETPOST(
'rowid',
'alpha');
54$code =
GETPOST(
'code',
'alpha');
58$actl[0] =
img_picto($langs->trans(
"Disabled"),
'switch_off',
'class="size15x"');
59$actl[1] =
img_picto($langs->trans(
"Activated"),
'switch_on',
'class="size15x"');
61$listoffset =
GETPOST(
'listoffset',
'alpha');
62$listlimit =
GETPOST(
'listlimit',
'int') > 0 ?
GETPOST(
'listlimit',
'int') : 1000;
65$sortfield =
GETPOST(
"sortfield",
'aZ09comma');
66$sortorder =
GETPOST(
"sortorder",
'aZ09comma');
67$page = GETPOSTISSET(
'pageplusone') ? (
GETPOST(
'pageplusone') - 1) :
GETPOST(
"page",
'int');
68if (empty($page) || $page == -1) {
71$offset = $listlimit * $page;
75$search_country_id =
GETPOST(
'search_country_id',
'int');
79if ($user->socid > 0) {
82if (!$user->hasRight(
'accounting',
'chartofaccount')) {
88$hookmanager->initHooks(array(
'admin'));
96$tabname[31] = MAIN_DB_PREFIX.
"accounting_system";
100$tablib[31] =
"Pcg_version";
104$tabsql[31] =
"SELECT s.rowid as rowid, pcg_version, s.label, s.fk_country as country_id, c.code as country_code, c.label as country, s.active FROM ".MAIN_DB_PREFIX.
"accounting_system as s, ".MAIN_DB_PREFIX.
"c_country as c WHERE s.fk_country=c.rowid and c.active=1";
107$tabsqlsort = array();
108$tabsqlsort[31] =
"pcg_version ASC";
112$tabfield[31] =
"pcg_version,label,country_id,country";
115$tabfieldvalue = array();
116$tabfieldvalue[31] =
"pcg_version,label,country";
119$tabfieldinsert = array();
120$tabfieldinsert[31] =
"pcg_version,label,fk_country";
130$tabhelp[31] = array(
'pcg_version'=>$langs->trans(
"EnterAnyCode"));
134$elementList = array();
135$sourceList = array();
143if (
GETPOST(
'button_removefilter',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter_x',
'alpha')) {
144 $search_country_id =
'';
148if (
GETPOST(
'actionadd',
'alpha') ||
GETPOST(
'actionmodify',
'alpha')) {
149 $listfield = explode(
',', str_replace(
' ',
'', $tabfield[$id]));
150 $listfieldinsert = explode(
',', $tabfieldinsert[$id]);
151 $listfieldmodify = explode(
',', $tabfieldinsert[$id]);
152 $listfieldvalue = explode(
',', $tabfieldvalue[$id]);
156 foreach ($listfield as $f => $value) {
157 if ($value ==
'country_id' && in_array($tablib[$id], array(
'Pcg_version'))) {
160 if ((!GETPOSTISSET($value)) ||
GETPOST($value) ==
'') {
162 $fieldnamekey = $listfield[$f];
165 if ($fieldnamekey ==
'pcg_version') {
166 $fieldnamekey =
'Pcg_version';
168 if ($fieldnamekey ==
'label') {
169 $fieldnamekey =
'Label';
171 if ($fieldnamekey ==
'country') {
172 $fieldnamekey =
"Country";
175 setEventMessages($langs->transnoentities(
"ErrorFieldRequired", $langs->transnoentities($fieldnamekey)),
null,
'errors');
179 if (GETPOSTISSET(
"pcg_version")) {
180 if (
GETPOST(
"pcg_version") ==
'0') {
182 setEventMessages($langs->transnoentities(
'ErrorCodeCantContainZero'),
null,
'errors');
185 if (GETPOSTISSET(
"country") && (
GETPOST(
"country") ==
'0') && ($id != 2)) {
187 setEventMessages($langs->transnoentities(
"ErrorFieldRequired", $langs->transnoentities(
"Country")),
null,
'errors');
191 if ($ok &&
GETPOST(
'actionadd',
'alpha')) {
192 if ($tabrowid[$id]) {
195 $sql =
"SELECT MAX(".$tabrowid[$id].
") newid from ".$tabname[$id];
196 $result = $db->query($sql);
198 $obj = $db->fetch_object($result);
199 $newid = ($obj->newid + 1);
206 $sql =
"INSERT INTO ".$tabname[$id].
" (";
208 if ($tabrowid[$id] && !in_array($tabrowid[$id], $listfieldinsert)) {
209 $sql .= $tabrowid[$id].
",";
211 $sql .= $tabfieldinsert[$id];
216 if ($tabrowid[$id] && !in_array($tabrowid[$id], $listfieldinsert)) {
220 foreach ($listfieldinsert as $f => $value) {
221 if ($value ==
'price' || preg_match(
'/^amount/i', $value) || $value ==
'taux') {
222 $_POST[$listfieldvalue[$i]] =
price2num(
GETPOST($listfieldvalue[$i]),
'MU');
223 } elseif ($value ==
'entity') {
224 $_POST[$listfieldvalue[$i]] = $conf->entity;
229 if (
GETPOST($listfieldvalue[$i]) ==
'') {
232 $sql .=
"'".$db->escape(
GETPOST($listfieldvalue[$i])).
"'";
239 $result = $db->query($sql);
242 $_POST = array(
'id'=>$id);
244 if ($db->errno() ==
'DB_ERROR_RECORD_ALREADY_EXISTS') {
245 setEventMessages($langs->transnoentities(
"ErrorRecordAlreadyExists"),
null,
'errors');
253 if ($ok &&
GETPOST(
'actionmodify',
'alpha')) {
254 if ($tabrowid[$id]) {
255 $rowidcol = $tabrowid[$id];
261 $sql =
"UPDATE ".$tabname[$id].
" SET ";
263 if ($tabrowid[$id] && !in_array($tabrowid[$id], $listfieldmodify)) {
264 $sql .= $tabrowid[$id].
"=";
265 $sql .=
"'".$db->escape($rowid).
"', ";
268 foreach ($listfieldmodify as $field) {
269 if ($field ==
'price' || preg_match(
'/^amount/i', $field) || $field ==
'taux') {
270 $_POST[$listfieldvalue[$i]] =
price2num(
GETPOST($listfieldvalue[$i]),
'MU');
271 } elseif ($field ==
'entity') {
272 $_POST[$listfieldvalue[$i]] = $conf->entity;
278 if (
GETPOST($listfieldvalue[$i]) ==
'') {
281 $sql .=
"'".$db->escape(
GETPOST($listfieldvalue[$i])).
"'";
285 $sql .=
" WHERE ".$rowidcol.
" = ".((int) $rowid);
289 $resql = $db->query($sql);
296if ($action ==
'confirm_delete' && $confirm ==
'yes') {
297 if ($tabrowid[$id]) {
298 $rowidcol = $tabrowid[$id];
303 $sql =
"DELETE from ".$tabname[$id].
" WHERE ".$rowidcol.
" = ".((int) $rowid);
306 $result = $db->query($sql);
308 if ($db->errno() ==
'DB_ERROR_CHILD_EXISTS') {
309 setEventMessages($langs->transnoentities(
"ErrorRecordIsUsedByChild"),
null,
'errors');
317if ($action == $acts[0]) {
318 if ($tabrowid[$id]) {
319 $rowidcol = $tabrowid[$id];
325 $sql =
"UPDATE ".$tabname[$id].
" SET active = 1 WHERE ".$rowidcol.
" = ".((int) $rowid);
327 $sql =
"UPDATE ".$tabname[$id].
" SET active = 1 WHERE code='".$db->escape($code).
"'";
330 $result = $db->query($sql);
337if ($action == $acts[1]) {
338 if ($tabrowid[$id]) {
339 $rowidcol = $tabrowid[$id];
345 $sql =
"UPDATE ".$tabname[$id].
" SET active = 0 WHERE ".$rowidcol.
" = ".((int) $rowid);
347 $sql =
"UPDATE ".$tabname[$id].
" SET active = 0 WHERE code='".$db->escape($code).
"'";
350 $result = $db->query($sql);
357if ($action ==
'activate_favorite') {
358 if ($tabrowid[$id]) {
359 $rowidcol = $tabrowid[$id];
365 $sql =
"UPDATE ".$tabname[$id].
" SET favorite = 1 WHERE ".$rowidcol.
" = ".((int) $rowid);
367 $sql =
"UPDATE ".$tabname[$id].
" SET favorite = 1 WHERE code='".$db->escape($code).
"'";
370 $result = $db->query($sql);
377if ($action ==
'disable_favorite') {
378 if ($tabrowid[$id]) {
379 $rowidcol = $tabrowid[$id];
385 $sql =
"UPDATE ".$tabname[$id].
" SET favorite = 0 WHERE ".$rowidcol.
" = ".((int) $rowid);
387 $sql =
"UPDATE ".$tabname[$id].
" SET favorite = 0 WHERE code='".$db->escape($code).
"'";
390 $result = $db->query($sql);
401$form =
new Form($db);
404$help_url =
'EN:Module_Double_Entry_Accounting#Setup|FR:Module_Comptabilité_en_Partie_Double#Configuration';
406llxHeader(
'', $langs->trans(
"Pcg_version"), $help_url);
408$titre = $langs->trans($tablib[$id]);
415if ($action ==
'delete') {
416 print $form->formconfirm($_SERVER[
"PHP_SELF"].
'?'.($page ?
'page='.urlencode($page).
'&' :
'').
'sortfield='.urlencode($sortfield).
'&sortorder='.urlencode($sortorder).
'&rowid='.urlencode($rowid).
'&code='.urlencode($code).
'&id='.urlencode($id), $langs->trans(
'DeleteLine'), $langs->trans(
'ConfirmDeleteLine'),
'confirm_delete',
'', 0, 1);
427 if ($search_country_id > 0) {
428 if (preg_match(
'/ WHERE /', $sql)) {
433 $sql .=
" c.rowid = ".((int) $search_country_id);
437 if ($sortfield ==
'country') {
438 $sortfield =
'country_code';
440 $sql .= $db->order($sortfield, $sortorder);
441 $sql .= $db->plimit($listlimit + 1, $offset);
444 $fieldlist = explode(
',', $tabfield[$id]);
446 print
'<form action="'.$_SERVER[
'PHP_SELF'].
'?id='.$id.
'" method="POST">';
447 print
'<input type="hidden" name="token" value="'.newToken().
'">';
449 print
'<div class="div-table-responsive">';
450 print
'<table class="noborder centpercent">';
455 $fieldlist = explode(
',', $tabfield[$id]);
458 print
'<tr class="liste_titre">';
459 foreach ($fieldlist as $field => $value) {
462 $valuetoshow = ucfirst($fieldlist[$field]);
463 $valuetoshow = $langs->trans($valuetoshow);
465 if ($fieldlist[$field] ==
'code') {
466 $valuetoshow = $langs->trans(
"Code");
468 if ($fieldlist[$field] ==
'label') {
469 $valuetoshow = $langs->trans(
"Label");
470 $class =
'minwidth300';
472 if ($fieldlist[$field] ==
'country') {
473 if (in_array(
'region_id', $fieldlist)) {
474 print
'<td> </td>';
477 $valuetoshow = $langs->trans(
"Country");
479 if ($fieldlist[$field] ==
'country_id') {
482 if ($fieldlist[$field] ==
'pcg_version' || $fieldlist[$field] ==
'fk_pcg_version') {
483 $valuetoshow = $langs->trans(
"Pcg_version");
487 if ($valuetoshow !=
'') {
488 print
'<td class="'.$class.
'">';
489 if (!empty($tabhelp[$id][$value]) && preg_match(
'/^http(s*):/i', $tabhelp[$id][$value])) {
490 print
'<a href="'.$tabhelp[$id][$value].
'">'.$valuetoshow.
' '.
img_help(1, $valuetoshow).
'</a>';
491 } elseif (!empty($tabhelp[$id][$value])) {
492 print $form->textwithpicto($valuetoshow, $tabhelp[$id][$value]);
501 print
'<input type="hidden" name="id" value="'.$id.
'">';
508 print
'<tr class="oddeven">';
512 if (
GETPOST(
'actionadd',
'alpha')) {
513 foreach ($fieldlist as $key => $val) {
520 $tmpaction =
'create';
521 $parameters = array(
'fieldlist'=>$fieldlist,
'tabname'=>$tabname[$id]);
522 $reshook = $hookmanager->executeHooks(
'createDictionaryFieldlist', $parameters, $obj, $tmpaction);
523 $error = $hookmanager->error;
524 $errors = $hookmanager->errors;
526 if (empty($reshook)) {
530 print
'<td colspan="3" class="right">';
531 print
'<input type="submit" class="button button-add" name="actionadd" value="'.$langs->trans(
"Add").
'">';
535 $colspan = count($fieldlist) + 3;
537 print
'<tr><td colspan="'.$colspan.
'"> </td></tr>';
544 $resql = $db->query($sql);
546 $num = $db->num_rows($resql);
549 $param =
'&id='.urlencode($id);
550 if ($search_country_id > 0) {
551 $param .=
'&search_country_id='.urlencode($search_country_id);
553 $paramwithsearch = $param;
555 $paramwithsearch .=
'&sortorder='.urlencode($sortorder);
558 $paramwithsearch .=
'&sortfield='.urlencode($sortfield);
562 if ($num > $listlimit) {
563 print
'<tr class="none"><td class="right" colspan="'.(3 + count($fieldlist)).
'">';
564 print_fleche_navigation($page, $_SERVER[
"PHP_SELF"], $paramwithsearch, ($num > $listlimit),
'<li class="pagination"><span>'.$langs->trans(
"Page").
' '.($page + 1).
'</span></li>');
569 print
'<tr class="liste_titre liste_titre_add">';
570 foreach ($fieldlist as $field => $value) {
573 if ($fieldlist[$field] ==
'region_id' || $fieldlist[$field] ==
'country_id') {
578 if ($value ==
'country') {
579 print
'<td class="liste_titre">';
580 print $form->select_country($search_country_id,
'search_country_id',
'', 28,
'maxwidth200 maxwidthonsmartphone');
583 print
'<td class="liste_titre"></td>';
587 print
'<td class="liste_titre"></td>';
588 print
'<td class="liste_titre right" colspan="2">';
589 $searchpicto = $form->showFilterAndCheckAddButtons(0);
595 print
'<tr class="liste_titre">';
596 print
getTitleFieldOfList($langs->trans(
"Pcg_version"), 0, $_SERVER[
"PHP_SELF"],
"pcg_version", ($page ?
'page='.$page.
'&' :
''), $param,
'', $sortfield, $sortorder,
'');
597 print
getTitleFieldOfList($langs->trans(
"Label"), 0, $_SERVER[
"PHP_SELF"],
"label", ($page ?
'page='.$page.
'&' :
''), $param,
'', $sortfield, $sortorder,
'');
598 print
getTitleFieldOfList($langs->trans(
"Country"), 0, $_SERVER[
"PHP_SELF"],
"country_code", ($page ?
'page='.$page.
'&' :
''), $param,
'', $sortfield, $sortorder,
'');
599 print
getTitleFieldOfList($langs->trans(
"Status"), 0, $_SERVER[
"PHP_SELF"],
"active", ($page ?
'page='.$page.
'&' :
''), $param,
'', $sortfield, $sortorder,
'center ');
608 $obj = $db->fetch_object($resql);
611 print
'<tr class="oddeven" id="rowid-'.$obj->rowid.
'">';
612 if ($action ==
'edit' && ($rowid == (!empty($obj->rowid) ? $obj->rowid : $obj->code))) {
613 print
'<form action="'.$_SERVER[
'PHP_SELF'].
'?id='.$id.
'" method="POST">';
614 print
'<input type="hidden" name="token" value="'.newToken().
'">';
615 print
'<input type="hidden" name="page" value="'.$page.
'">';
616 print
'<input type="hidden" name="rowid" value="'.$rowid.
'">';
619 $parameters = array(
'fieldlist'=>$fieldlist,
'tabname'=>$tabname[$id]);
620 $reshook = $hookmanager->executeHooks(
'editDictionaryFieldlist', $parameters, $obj, $tmpaction);
621 $error = $hookmanager->error;
622 $errors = $hookmanager->errors;
624 if (empty($reshook)) {
628 print
'<td colspan="3" class="right">';
629 print
'<a name="'.(!empty($obj->rowid) ? $obj->rowid : $obj->code).
'"> </a><input type="submit" class="button button-edit" name="actionmodify" value="'.$langs->trans(
"Modify").
'">';
630 print
' <input type="submit" class="button button-cancel" name="actioncancel" value="'.$langs->trans(
"Cancel").
'">';
634 $parameters = array(
'fieldlist'=>$fieldlist,
'tabname'=>$tabname[$id]);
635 $reshook = $hookmanager->executeHooks(
'viewDictionaryFieldlist', $parameters, $obj, $tmpaction);
637 $error = $hookmanager->error;
638 $errors = $hookmanager->errors;
640 if (empty($reshook)) {
641 foreach ($fieldlist as $field => $value) {
644 $tmpvar = $fieldlist[$field];
645 $valuetoshow = $obj->$tmpvar;
646 if ($value ==
'type_template') {
647 $valuetoshow = isset($elementList[$valuetoshow]) ? $elementList[$valuetoshow] : $valuetoshow;
649 if ($value ==
'element') {
650 $valuetoshow = isset($elementList[$valuetoshow]) ? $elementList[$valuetoshow] : $valuetoshow;
651 } elseif ($value ==
'source') {
652 $valuetoshow = isset($sourceList[$valuetoshow]) ? $sourceList[$valuetoshow] : $valuetoshow;
653 } elseif ($valuetoshow ==
'all') {
654 $valuetoshow = $langs->trans(
'All');
655 } elseif ($fieldlist[$field] ==
'country') {
656 if (empty($obj->country_code)) {
659 $key = $langs->trans(
"Country".strtoupper($obj->country_code));
660 $valuetoshow = ($key !=
"Country".strtoupper($obj->country_code) ? $obj->country_code.
" - ".$key : $obj->country);
662 } elseif ($fieldlist[$field] ==
'country_id') {
667 if ($fieldlist[$field] ==
'tracking') {
668 $class .=
' tdoverflowauto';
672 print
'<!-- '.$fieldlist[$field].
' --><td class="'.$class.
'">'.$valuetoshow.
'</td>';
682 $url = $_SERVER[
"PHP_SELF"].
'?token='.newToken().($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) :
'');
689 print
'<td class="center nowrap">';
690 if ($canbedisabled) {
691 print
'<a href="'.$url.
'action='.$acts[$obj->active].
'">'.$actl[$obj->active].
'</a>';
693 print $langs->trans(
"AlwaysActive");
698 if ($canbemodified) {
699 print
'<td class="center"><a class="reposition editfielda" href="'.$url.
'action=edit&token='.newToken().
'">'.
img_edit().
'</a></td>';
701 print
'<td> </td>';
706 print
'<td class="center"><a href="'.$url.
'action=delete&token='.newToken().
'">'.
img_delete().
'</a></td>';
708 print
'<td> </td>';
717 print
'<tr><td colspan="6"><span class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</span></td></tr>';
749 global $elementList, $sourceList;
755 foreach ($fieldlist as $field => $value) {
756 if ($fieldlist[$field] ==
'country') {
757 if (in_array(
'region_id', $fieldlist)) {
764 $fieldname =
'country';
765 print $form->select_country((!empty($obj->country_code) ? $obj->country_code : (!empty($obj->country) ? $obj->country :
'')), $fieldname,
'', 28,
'maxwidth200 maxwidthonsmartphone');
767 } elseif ($fieldlist[$field] ==
'country_id') {
768 if (!in_array(
'country', $fieldlist)) {
769 $country_id = (!empty($obj->{$fieldlist[$field]}) ? $obj->{$fieldlist[$field]} : 0);
771 print
'<input type="hidden" name="'.$fieldlist[$field].
'" value="'.$country_id.
'">';
774 } elseif ($fieldlist[$field] ==
'type_cdr') {
775 if ($fieldlist[$field] ==
'type_cdr') {
776 print
'<td class="center">';
780 if ($fieldlist[$field] ==
'type_cdr') {
781 print $form->selectarray($fieldlist[$field], array(0=>$langs->trans(
'None'), 1=>$langs->trans(
'AtEndOfMonth'), 2=>$langs->trans(
'CurrentNext')), (!empty($obj->{$fieldlist[$field]}) ? $obj->{$fieldlist[$field]} :
''));
783 print $form->selectyesno($fieldlist[$field], (!empty($obj->{$fieldlist[$field]}) ? $obj->{$fieldlist[$field]} :
''), 1);
786 } elseif ($fieldlist[$field] ==
'code' && isset($obj->{$fieldlist[$field]})) {
787 print
'<td><input type="text" class="flat" value="'.(!empty($obj->{$fieldlist[$field]}) ? $obj->{$fieldlist[$field]} :
'').
'" size="10" name="'.$fieldlist[$field].
'"></td>';
791 if ($fieldlist[$field] ==
'pcg_version') {
794 if ($fieldlist[$field] ==
'label') {
797 print
'<input type="text" class="flat'.($class ?
' '.$class :
'').
'" value="'.(isset($obj->{$fieldlist[$field]}) ? $obj->{$fieldlist[$field]} :
'').
'" name="'.$fieldlist[$field].
'">';
fieldListAccountModel($fieldlist, $obj=null, $tabname='', $context='')
Show fields in insert/edit mode.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
img_help($usehelpcursor=1, $usealttitle=1)
Show help logo with cursor "?".
img_delete($titlealt='default', $other='class="pictodelete"', $morecss='')
Show delete logo.
print_fleche_navigation($page, $file, $options='', $nextpage=0, $betweenarrows='', $afterarrows='', $limit=-1, $totalnboflines=0, $hideselectlimit=0, $beforearrows='', $hidenavigation=0)
Function to show navigation arrows into lists.
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...
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
getTitleFieldOfList($name, $thead=0, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $disablesortlink=0, $tooltip='', $forcenowrapcolumntitle=0)
Get 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.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
img_edit($titlealt='default', $float=0, $other='')
Show logo editer/modifier fiche.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.