35require
'../main.inc.php';
44require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
45require_once DOL_DOCUMENT_ROOT.
'/core/lib/pdf.lib.php';
46require_once DOL_DOCUMENT_ROOT.
'/core/lib/invoice.lib.php';
47require_once DOL_DOCUMENT_ROOT.
'/compta/facture/class/facture.class.php';
50$langs->loadLangs(array(
'admin',
'errors',
'other',
'bills'));
56$action =
GETPOST(
'action',
'aZ09');
57$value =
GETPOST(
'value',
'alpha');
58$modulepart =
GETPOST(
'modulepart',
'aZ09');
60$label =
GETPOST(
'label',
'alpha');
61$scandir =
GETPOST(
'scan_dir',
'alpha');
72include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
74if ($action ==
'updateMask') {
75 $maskconstinvoice =
GETPOST(
'maskconstinvoice',
'aZ09');
76 $maskconstreplacement =
GETPOST(
'maskconstreplacement',
'aZ09');
77 $maskconstcredit =
GETPOST(
'maskconstcredit',
'aZ09');
78 $maskconstdeposit =
GETPOST(
'maskconstdeposit',
'aZ09');
79 $maskinvoice =
GETPOST(
'maskinvoice',
'alpha');
80 $maskreplacement =
GETPOST(
'maskreplacement',
'alpha');
81 $maskcredit =
GETPOST(
'maskcredit',
'alpha');
82 $maskdeposit =
GETPOST(
'maskdeposit',
'alpha');
84 if ($maskconstinvoice && preg_match(
'/_MASK_/', $maskconstinvoice)) {
87 if ($maskconstreplacement && preg_match(
'/_MASK_/', $maskconstreplacement)) {
90 if ($maskconstcredit && preg_match(
'/_MASK_/', $maskconstcredit)) {
93 if ($maskconstdeposit && preg_match(
'/_MASK_/', $maskconstdeposit)) {
102 setEventMessages($langs->trans(
"SetupSaved"),
null,
'mesgs');
104 setEventMessages($langs->trans(
"Error"),
null,
'errors');
106} elseif ($action ==
'specimen') {
107 $modele =
GETPOST(
'module',
'alpha');
110 $facture->initAsSpecimen();
115 $dirmodels = array_merge(array(
'/'), (array)
$conf->modules_parts[
'models']);
116 foreach ($dirmodels as $reldir) {
117 $file =
dol_buildpath($reldir.
"core/modules/facture/doc/pdf_".$modele.
".modules.php", 0);
118 if (file_exists($file)) {
119 $classname =
"pdf_".$modele;
124 if ($classname !==
'') {
129 '@phan-var-force ModelePDFFactures $module';
131 if (
$module->write_file($facture, $langs) > 0) {
132 header(
"Location: ".DOL_URL_ROOT.
"/document.php?modulepart=facture&file=SPECIMEN.pdf");
139 setEventMessages($langs->trans(
"ErrorModuleNotFound"),
null,
'errors');
140 dol_syslog($langs->trans(
"ErrorModuleNotFound"), LOG_ERR);
142} elseif ($action ==
'set') {
145} elseif ($action ==
'del') {
152} elseif ($action ==
'setdoc') {
157 $conf->global->FACTURE_ADDON_PDF = $value;
165} elseif ($action ==
'setmod') {
169} elseif ($action ==
'setribchq') {
170 $rib =
GETPOST(
'rib',
'alpha');
171 $chq =
GETPOST(
'chq',
'alpha');
181 setEventMessages($langs->trans(
"SetupSaved"),
null,
'mesgs');
183 setEventMessages($langs->trans(
"Error"),
null,
'errors');
185} elseif ($action ==
'set_FACTURE_DRAFT_WATERMARK') {
186 $draft =
GETPOST(
'FACTURE_DRAFT_WATERMARK',
'alpha');
195 setEventMessages($langs->trans(
"SetupSaved"),
null,
'mesgs');
197 setEventMessages($langs->trans(
"Error"),
null,
'errors');
199} elseif ($action ==
'set_INVOICE_FREE_TEXT') {
200 $freetext =
GETPOST(
'INVOICE_FREE_TEXT',
'restricthtml');
209 setEventMessages($langs->trans(
"SetupSaved"),
null,
'mesgs');
211 setEventMessages($langs->trans(
"Error"),
null,
'errors');
213} elseif ($action ==
'setforcedate') {
214 $forcedate =
GETPOST(
'forcedate',
'alpha');
223 setEventMessages($langs->trans(
"SetupSaved"),
null,
'mesgs');
225 setEventMessages($langs->trans(
"Error"),
null,
'errors');
227} elseif ($action ==
'setDefaultPDFModulesByType') {
228 $invoicetypemodels =
GETPOST(
'invoicetypemodels');
230 if (!empty($invoicetypemodels) && is_array($invoicetypemodels)) {
233 foreach ($invoicetypemodels as $type => $value) {
241 setEventMessages($langs->trans(
"SetupSaved"),
null,
'mesgs');
243 setEventMessages($langs->trans(
"Error"),
null,
'errors');
246} elseif ($action ==
'set_INVOICE_CHECK_POSTERIOR_DATE') {
247 $check_posterior_date =
GETPOSTINT(
'INVOICE_CHECK_POSTERIOR_DATE');
248 $res =
dolibarr_set_const($db,
'INVOICE_CHECK_POSTERIOR_DATE', $check_posterior_date,
'chaine', 0,
'',
$conf->entity);
252} elseif (preg_match(
'/set_(.*)/', $action, $reg)) {
262 setEventMessages($langs->trans(
'Error'),
null,
'errors');
264 setEventMessages($langs->trans(
'SetupSaved'),
null,
'mesgs');
265 header(
"Location: " . $_SERVER[
"PHP_SELF"]);
268} elseif (preg_match(
'/del_(.*)/', $action, $reg)) {
277 setEventMessages($langs->trans(
'Error'),
null,
'errors');
279 setEventMessages($langs->trans(
'SetupSaved'),
null,
'mesgs');
280 header(
"Location: " . $_SERVER[
"PHP_SELF"]);
290$dirmodels = array_merge(array(
'/'), (array)
$conf->modules_parts[
'models']);
292$title = $langs->trans(
"BillsSetup");
294llxHeader(
"", $title,
'EN:Invoice_Configuration|FR:Configuration_module_facture|ES:ConfiguracionFactura',
'', 0, 0,
'',
'',
'',
'mod-admin page-invoice');
296$form =
new Form($db);
299$linkback =
'<a href="'.dolBuildUrl(DOL_URL_ROOT.
'/admin/modules.php', [
'restore_lastsearch_values' => 1]).
'">'.img_picto($langs->trans(
"BackToModuleList"),
'back',
'class="pictofixedwidth"').
'<span class="hideonsmartphone">'.$langs->trans(
"BackToModuleList").
'</span></a>';
310print
'<div class="div-table-responsive-no-min">';
311print
'<table class="noborder centpercent">';
312print
'<tr class="liste_titre">';
313print
'<td>'.$langs->trans(
"Name").
'</td>';
314print
'<td>'.$langs->trans(
"Description").
'</td>';
315print
'<td class="nowrap">'.$langs->trans(
"Example").
'</td>';
316print
'<td class="center" width="60">'.$langs->trans(
"Status").
'</td>';
317print
'<td class="center" width="16">'.$langs->trans(
"ShortInfo").
'</td>';
322$arrayofmodules = array();
324foreach ($dirmodels as $reldir) {
327 $handle = opendir($dir);
328 if (is_resource($handle)) {
329 while (($file = readdir($handle)) !==
false) {
330 if (!is_dir($dir.$file) || (
dol_substr($file, 0, 1) !=
'.' &&
dol_substr($file, 0, 3) !=
'CVS')) {
332 $classname = preg_replace(
'/\.php$/',
'', $file);
334 if (!is_file($dir.$filebis)) {
335 $filebis = $file.
"/".$file.
".modules.php";
336 $classname =
"mod_facture_".$file;
340 preg_match(
'/\-(.*)_(.*)$/', $classname, $reg);
341 if (!empty($reg[2]) && $reg[2] != strtoupper(
$mysoc->country_code)) {
345 $classname = preg_replace(
'/\-.*$/',
'', $classname);
346 if (!class_exists($classname) && is_readable($dir.$filebis) && (preg_match(
'/mod_/', $filebis) || preg_match(
'/mod_/', $classname)) &&
dol_substr($filebis,
dol_strlen($filebis) - 3, 3) ==
'php') {
348 require_once $dir.$filebis;
352 '@phan-var-force ModeleNumRefFactures $module';
365'@phan-var-force ModeleNumRefFactures[] $arrayofmodules';
367foreach ($arrayofmodules as
$module) {
368 $file = strtolower(
$module->getName($langs));
369 if (!preg_match(
'/^mod_facture_/', $file)) {
370 $file =
'mod_facture_'.$file;
385 print
'<tr class="oddeven"><td width="100">';
386 print preg_replace(
'/\-.*$/',
'', preg_replace(
'/mod_facture_/',
'',
$module->getName($langs)));
392 print
'<td class="nowrap">';
394 if (preg_match(
'/^Error/', $tmp)) {
395 $langs->load(
"errors");
396 print
'<div class="error">'.$langs->trans($tmp).
'</div>';
397 } elseif ($tmp ==
'NotConfigured') {
398 print
'<span class="opacitymedium">'.$langs->trans($tmp).
'</span>';
404 print
'<td class="center">';
406 print img_picto($langs->trans(
"Activated"),
'switch_on');
408 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?action=setmod&token='.
newToken().
'&value='.preg_replace(
'/\.php$/',
'', $file).
'" alt="'.$langs->trans(
"Default").
'">'.img_picto($langs->trans(
"Disabled"),
'switch_off').
'</a>';
413 $facture->initAsSpecimen();
418 $htmltooltip .=
''.$langs->trans(
"Version").
': <b>'.
$module->getVersion().
'</b><br>';
421 if (
"$nextval" != $langs->trans(
"NotAvailable")) {
422 $htmltooltip .= $langs->trans(
"NextValueForInvoices").
': ';
424 if (preg_match(
'/^Error/', $nextval) || $nextval ==
'NotConfigured') {
425 $nextval = $langs->trans($nextval);
427 $htmltooltip .= $nextval.
'<br>';
429 $htmltooltip .= $langs->trans(
$module->error).
'<br>';
436 if (
"$nextval" != $langs->trans(
"NotAvailable")) {
437 $htmltooltip .= $langs->trans(
"NextValueForReplacements").
': ';
439 if (preg_match(
'/^Error/', $nextval) || $nextval ==
'NotConfigured') {
440 $nextval = $langs->trans($nextval);
442 $htmltooltip .= $nextval.
'<br>';
444 $htmltooltip .= $langs->trans(
$module->error).
'<br>';
451 if (
"$nextval" != $langs->trans(
"NotAvailable")) {
452 $htmltooltip .= $langs->trans(
"NextValueForCreditNotes").
': ';
454 if (preg_match(
'/^Error/', $nextval) || $nextval ==
'NotConfigured') {
455 $nextval = $langs->trans($nextval);
457 $htmltooltip .= $nextval.
'<br>';
459 $htmltooltip .= $langs->trans(
$module->error).
'<br>';
465 if (
"$nextval" != $langs->trans(
"NotAvailable")) {
466 $htmltooltip .= $langs->trans(
"NextValueForDeposit").
': ';
468 if (preg_match(
'/^Error/', $nextval) || $nextval ==
'NotConfigured') {
469 $nextval = $langs->trans($nextval);
471 $htmltooltip .= $nextval;
473 $htmltooltip .= $langs->trans(
$module->error);
477 print
'<td class="center">';
478 print $form->textwithpicto(
'', $htmltooltip, 1,
'info');
501printDocumentModelList(
'invoice',
'facture',
'FACTURE_ADDON_PDF', $langs->trans(
"BillsPDFModules"), array(
502 'Logo' =>
'option_logo',
503 'PaymentMode' =>
'option_modereg',
504 'PaymentConditions' =>
'option_condreg',
505 'Discounts' =>
'option_escompte',
506 'CreditNote' =>
'option_credit_note',
507 'MultiLanguage' =>
'option_multilang',
508 'WatermarkOnDraftInvoices' =>
'option_draft_watermark',
516 print
load_fiche_titre($langs->trans(
"BillsPDFModulesAccordindToInvoiceType"),
'',
'');
518 print
'<form action="'.$_SERVER[
"PHP_SELF"].
'#default-pdf-modules-by-type-table" method="POST" spellcheck="false">';
519 print
'<input type="hidden" name="token" value="'.newToken().
'" />';
520 print
'<input type="hidden" name="action" value="setDefaultPDFModulesByType" >';
521 print
'<input type="hidden" name="page_y" value="" />';
523 print
'<div class="div-table-responsive-no-min">';
524 print
'<table id="default-pdf-modules-by-type-table" class="noborder centpercent">';
525 print
'<tr class="liste_titre">';
526 print
'<td>'.$langs->trans(
"Type").
'</td>';
527 print
'<td>'.$langs->trans(
"Name").
'</td>';
528 print
'<td class="right"><input type="submit" class="button button-edit reposition" value="'.$langs->trans(
"Modify").
'"></td>';
541 foreach ($listtype as $type => $trans) {
542 $thisTypeConfName =
'FACTURE_ADDON_PDF_'.$type;
545 print
'<td>'.$trans.
'</td>';
560print
load_fiche_titre($langs->trans(
"SuggestedPaymentModesIfNotDefinedInInvoice"),
'',
'');
562print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST" spellcheck="false">';
563print
'<input type="hidden" name="token" value="'.newToken().
'" />';
564print
'<input type="hidden" name="page_y" value="" />';
566print
'<div class="div-table-responsive-no-min">';
567print
'<table class="noborder centpercent">';
569print
'<tr class="liste_titre">';
571print
'<input type="hidden" name="action" value="setribchq">';
572print $langs->trans(
"PaymentMode").
'</td>';
573print
'<td class="right"></td>';
576print
'<tr class="oddeven">';
577print
"<td>".$langs->trans(
"SuggestPaymentByRIBOnAccount").
"</td>";
580 $sql =
"SELECT rowid, label, clos";
581 $sql .=
" FROM ".MAIN_DB_PREFIX.
"bank_account";
582 $sql .=
" WHERE courant = 1";
583 $sql .=
" AND entity IN (".getEntity(
'bank_account').
")";
584 $resql = $db->query($sql);
586 $num = $db->num_rows($resql);
589 print
'<select name="rib" class="flat" id="rib">';
590 print
'<option value="0">'.$langs->trans(
"DoNotSuggestPaymentMode").
'</option>';
592 $obj = $db->fetch_object($resql);
594 print
'<option value="'.$obj->rowid.
'"';
596 if (!empty($obj->clos)) {
599 print
'>'.dol_escape_htmltag($obj->label).
'</option>';
606 print
'<span class="opacitymedium">'.$langs->trans(
"NoActiveBankAccountDefined").
'</span>';
610 print $langs->trans(
"BankModuleNotActive");
616print
'<tr class="oddeven">';
617print
"<td>".$langs->trans(
"SuggestPaymentByChequeToAddress").
"</td>";
619print
'<select class="flat" name="chq" id="chq">';
620print
'<option value="0">'.$langs->trans(
"DoNotSuggestPaymentMode").
'</option>';
621print
'<option value="-1"'.($FACTURE_CHQ_NUMBER == -1 ?
' selected' :
'').
'>'.$langs->trans(
"MenuCompanySetup").
' ('.(
$mysoc->name ?
$mysoc->name : $langs->trans(
"NotDefined")).
')</option>';
623$sql =
"SELECT rowid, label";
624$sql .=
" FROM ".MAIN_DB_PREFIX.
"bank_account";
625$sql .=
" WHERE clos = 0";
626$sql .=
" AND courant = 1";
627$sql .=
" AND entity IN (".getEntity(
'bank_account').
")";
629$resql = $db->query($sql);
631 $num = $db->num_rows($resql);
634 $row = $db->fetch_row($resql);
636 print
'<option value="'.$row[0].
'"';
637 print $FACTURE_CHQ_NUMBER == $row[0] ?
' selected' :
'';
638 print
'>'.$langs->trans(
"OwnerOfBankAccount", $row[1]).
'</option>';
650if (
$mysoc->country_code ==
'BE') {
651 print
'<tr class="oddeven"><td>' . $langs->trans(
"InvoicePaymentManageStructuredCommunication") .
' ';
652 print $form->textwithpicto(
'', $langs->trans(
"InvoicePaymentManageStructuredCommunicationHelp"), 1,
'help') .
'</td>';
653 print
'<td class="left" colspan="2">';
654 print ajax_constantonoff(
'INVOICE_PAYMENT_ENABLE_STRUCTURED_COMMUNICATION');
662print
'<input type="submit" class="button button-edit reposition" value="'.$langs->trans(
"Modify").
'">';
671print
'<div class="div-table-responsive-no-min">';
672print
'<table class="noborder centpercent">';
673print
'<tr class="liste_titre">';
674print
'<td>'.$langs->trans(
"Parameters").
'</td>';
675print
'<td class="center"></td>';
676print
'<td width="80"> </td>';
680$substitutionarray[
'__(AnyTranslationKey)__'] = $langs->trans(
"Translation");
681$htmltext =
'<i>'.$langs->trans(
"AvailableVariables").
':<br>';
682foreach ($substitutionarray as $key => $val) {
683 $htmltext .= $key.
'<br>';
687print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST" spellcheck="false">';
688print
'<input type="hidden" name="token" value="'.newToken().
'" />';
689print
'<input type="hidden" name="action" value="set_INVOICE_FREE_TEXT" />';
690print
'<input type="hidden" name="page_y" value="" />';
691print
'<tr class="oddeven"><td colspan="2">';
692print $form->textwithpicto($langs->trans(
"FreeLegalTextOnInvoices"), $langs->trans(
"AddCRIfTooLong").
'<br><br>'.$htmltext, 1,
'help',
'', 0, 2,
'freetexttooltip').
'<br>';
693$variablename =
'INVOICE_FREE_TEXT';
695 print
'<textarea name="'.$variablename.
'" class="flat" cols="120">'.
getDolGlobalString($variablename).
'</textarea>';
697 include_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
699 print $doleditor->Create();
701print
'</td><td class="right">';
702print
'<input type="submit" class="button button-edit reposition" value="'.$langs->trans(
"Modify").
'" />';
707print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST" spellcheck="false">';
708print
'<input type="hidden" name="token" value="'.newToken().
'" />';
709print
'<input type="hidden" name="action" value="set_FACTURE_DRAFT_WATERMARK" />';
710print
'<input type="hidden" name="page_y" value="" />';
711print
'<tr class="oddeven"><td>';
712print $form->textwithpicto($langs->trans(
"WatermarkOnDraftBill"), $htmltext, 1,
'help',
'', 0, 2,
'watermarktooltip').
'<br>';
714print
'<td><input class="flat minwidth200imp" type="text" name="FACTURE_DRAFT_WATERMARK" value="'.dol_escape_htmltag(
getDolGlobalString(
'FACTURE_DRAFT_WATERMARK')).
'">';
715print
'</td><td class="right">';
716print
'<input type="submit" class="button button-edit reposition" value="'.$langs->trans(
"Modify").
'" />';
722print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST" spellcheck="false">';
723print
'<input type="hidden" name="token" value="'.newToken().
'" />';
724print
'<input type="hidden" name="action" value="setforcedate" />';
725print
'<input type="hidden" name="page_y" value="" />';
726print
'<tr class="oddeven"><td>';
727print $langs->trans(
"ForceInvoiceDate");
729print $form->selectyesno(
"forcedate",
getDolGlobalInt(
'FAC_FORCE_DATE_VALIDATION', 0), 1);
730print
'</td><td class="right">';
731print
'<input type="submit" class="button button-edit reposition" value="'.$langs->trans(
"Modify").
'" />';
735print
'<tr class="oddeven"><td>'.$langs->trans(
"InvoiceCheckPosteriorDate").
' ' ;
736print $form->textwithpicto(
'', $langs->trans(
"InvoiceCheckPosteriorDateHelp"), 1,
'help') .
'</td>';
737print
'<td class="left" colspan="2">';
739print ajax_constantonoff(
'INVOICE_CHECK_POSTERIOR_DATE');
746print
'<tr class="oddeven">';
747print
'<td>'.$langs->trans(
"AllowExternalDownload").
'</td>';
748print
'<td class="left" colspan="2">';
749print ajax_constantonoff(
'INVOICE_ALLOW_EXTERNAL_DOWNLOAD', array(),
null, 0, 0, 0, 2, 0, 1);
754print
'<tr class="oddeven">';
755print
'<td>'.img_picto(
'',
'email',
'class="pictofixedwidth"').$langs->trans(
"Notifications").
'</td>';
756print
'<td colspan="2">';
757print $langs->trans(
"YouMayFindNotificationsFeaturesIntoModuleNotification");
761print
'<tr class="oddeven">';
762print
'<td>'.img_picto(
'',
'pdf',
'class="pictofixedwidth"').$langs->trans(
"MoreOptionsRelatedToPDF").
'</td>';
763print
'<td colspan="2">';
764print img_picto(
'',
'url',
'class="pictofixedwidth"').
'<a href="'.DOL_URL_ROOT.
'/admin/pdf_other.php">'.$langs->trans(
"SeeInPDFSetupPage").
'</a>';
addDocumentModel($name, $type, $label='', $description='')
Add document model used by doc generator.
dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
dolibarr_del_const($db, $name, $entity=1)
Delete a constant.
delDocumentModel($name, $type)
Delete document model used by doc generator.
ajax_combobox($htmlname, $events=array(), $minLengthToAutocomplete=0, $forcefocus=0, $widthTypeOfAutocomplete='resolve', $idforemptyvalue='-1', $morecss='', $placeholder='')
Convert a html select field into an ajax combobox.
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.
Class to manage a WYSIWYG editor.
Class to manage invoices.
const TYPE_REPLACEMENT
Replacement invoice.
const TYPE_STANDARD
Standard invoice.
const TYPE_SITUATION
Situation invoice.
const TYPE_DEPOSIT
Deposit invoice.
const TYPE_CREDIT_NOTE
Credit note invoice.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
if(! $sortfield) if(! $sortorder) $module
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
dol_sort_array(&$array, $index, $order='asc', $natsort=0, $case_sensitive=0, $keepindex=0)
Advanced sort array by the value of a given key, which produces ascending (default) or descending out...
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.
dol_substr($string, $start, $length=null, $stringencoding='', $trunconbytes=0)
Make a substring.
GETPOSTINT($paramname, $method=0, $nodefault=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0, $morecssdiv='')
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
dol_htmloutput_mesg($mesgstring='', $mesgarray=array(), $style='ok', $keepembedded=0)
Print formatted messages to output (Used to show messages on html output).
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
invoice_admin_prepare_head()
Return array head with list of tabs to view object information.
pdf_getSubstitutionArray($outputlangs, $exclude=null, $object=null, $onlykey=0, $include=null)
Return array of possible substitutions for PDF content (without external module substitutions).
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.