Make code simpler
This commit is contained in:
parent
af9b2414a0
commit
b2901bfae0
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'adherent', $langs->trans("Adherent"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFAdherentDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'contrat', $langs->trans("Contrat"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFContratDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'expensereport', $langs->trans("Expensereport"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFExpensereportDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'holiday', $langs->trans("Holiday"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFHolidaytDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'intervention', $langs->trans("Intervention"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFInterventionDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'invoice', $langs->trans("Invoice"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFInvoiceDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'order', $langs->trans("Order"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFOrderDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -76,11 +76,13 @@ print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
$head = pdf_admin_prepare_head();
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'proposal', $langs->trans("Proposals"), -1, 'pdf');
|
print dol_get_fiche_head($head, 'other', $langs->trans("other"), -1, 'pdf');
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFProposalDesc"), $s)."</span><br>\n";
|
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFOtherDesc"), $s)."</span><br>\n";
|
||||||
print "<br>\n";
|
print "<br>\n";
|
||||||
|
|
||||||
|
print load_fiche_titre($langs->trans("Proposal"), '', '');
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
print '<input type="hidden" name="action" value="update">';
|
print '<input type="hidden" name="action" value="update">';
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'project', $langs->trans("Project"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFProjectDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'reception', $langs->trans("reception"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFReceptionDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'recruitment', $langs->trans("recruitment"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFRecruitmentDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'shipment', $langs->trans("shipment"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFShipmentDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'stock', $langs->trans("Stock"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFStockDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'supplierinvoice', $langs->trans("supplierinvoice"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFSupplierinvoiceDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'supplierorder', $langs->trans("supplierorder"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFSupplierorderDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'supplierproposal', $langs->trans("supplierproposal"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFSupplierproposalDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@inodbox.com>
|
|
||||||
* Copyright (C) 2012-2107 Juanjo Menent <jmenent@2byte.es>
|
|
||||||
* Copyright (C) 2019 Ferran Marcet <fmarcet@2byte.es>
|
|
||||||
* Copyright (C) 2021 Anthony Berton <bertonanthony@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \file htdocs/admin/pdf.php
|
|
||||||
* \brief Page to setup PDF options
|
|
||||||
*/
|
|
||||||
|
|
||||||
require '../main.inc.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/pdf.lib.php';
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
|
||||||
$langs->loadLangs(array('admin', 'languages', 'other', 'companies', 'products', 'members', 'stocks', 'Trips'));
|
|
||||||
|
|
||||||
if (!$user->admin) {
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
$action = GETPOST('action', 'aZ09');
|
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($cancel) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($action == 'update') {
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* View
|
|
||||||
*/
|
|
||||||
|
|
||||||
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
|
|
||||||
llxHeader('', $langs->trans("Setup"), $wikihelp);
|
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
$formother = new FormOther($db);
|
|
||||||
$formadmin = new FormAdmin($db);
|
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("PDF"), '', 'title_setup');
|
|
||||||
|
|
||||||
$head = pdf_admin_prepare_head();
|
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'ticket', $langs->trans("Ticket"), -1, 'pdf');
|
|
||||||
|
|
||||||
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFTicketDesc"), $s)."</span><br>\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
|
||||||
print '<table summary="more" class="noborder centpercent">';
|
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("").'</td><td>';
|
|
||||||
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<br><div class="center">';
|
|
||||||
print '<input class="button button-save" type="submit" name="save" value="'.$langs->trans("Save").'">';
|
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
|
|
||||||
// End of page
|
|
||||||
llxFooter();
|
|
||||||
$db->close();
|
|
||||||
@ -49,7 +49,7 @@ function pdf_admin_prepare_head()
|
|||||||
$head = array();
|
$head = array();
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf.php';
|
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf.php';
|
||||||
$head[$h][1] = $langs->trans("Général");
|
$head[$h][1] = $langs->trans("Common");
|
||||||
$head[$h][2] = 'general';
|
$head[$h][2] = 'general';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
@ -59,105 +59,10 @@ function pdf_admin_prepare_head()
|
|||||||
// $this->tabs = array('entity:-tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to remove a tab
|
// $this->tabs = array('entity:-tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to remove a tab
|
||||||
complete_head_from_modules($conf, $langs, null, $head, $h, 'pdf_admin');
|
complete_head_from_modules($conf, $langs, null, $head, $h, 'pdf_admin');
|
||||||
|
|
||||||
if (1 == 2 && !empty($conf->adherent->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_adherent.php';
|
|
||||||
$head[$h][1] = $langs->trans("Adherent");
|
|
||||||
$head[$h][2] = 'adherent';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->projet->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_project.php';
|
|
||||||
$head[$h][1] = $langs->trans("Project");
|
|
||||||
$head[$h][2] = 'project';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (!empty($conf->propal->enabled)) {
|
if (!empty($conf->propal->enabled)) {
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_proposal.php';
|
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_other.php';
|
||||||
$head[$h][1] = $langs->trans("Proposal");
|
$head[$h][1] = $langs->trans("Other");
|
||||||
$head[$h][2] = 'proposal';
|
$head[$h][2] = 'other';
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->commande->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_order.php';
|
|
||||||
$head[$h][1] = $langs->trans("Order");
|
|
||||||
$head[$h][2] = 'order';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->facture->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_invoice.php';
|
|
||||||
$head[$h][1] = $langs->trans("Invoice");
|
|
||||||
$head[$h][2] = 'invoice';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->expedition->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_shipment.php';
|
|
||||||
$head[$h][1] = $langs->trans("Sendings");
|
|
||||||
$head[$h][2] = 'shipment';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->reception->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_reception.php';
|
|
||||||
$head[$h][1] = $langs->trans("Reception");
|
|
||||||
$head[$h][2] = 'reception';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->ticket->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_ticket.php';
|
|
||||||
$head[$h][1] = $langs->trans("Ticket");
|
|
||||||
$head[$h][2] = 'ticket';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->ficheinter->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_intervention.php';
|
|
||||||
$head[$h][1] = $langs->trans("Intervention");
|
|
||||||
$head[$h][2] = 'intervention';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->supplier_proposal->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_supplierproposal.php';
|
|
||||||
$head[$h][1] = $langs->trans("SupplierProposal");
|
|
||||||
$head[$h][2] = 'supplierproposal';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->fournisseur->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_supplierorder.php';
|
|
||||||
$head[$h][1] = $langs->trans("SupplierOrder");
|
|
||||||
$head[$h][2] = 'supplierorder';
|
|
||||||
$h++;
|
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_supplierinvoice.php';
|
|
||||||
$head[$h][1] = $langs->trans("SuppliersInvoice");
|
|
||||||
$head[$h][2] = 'supplierinvoice';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->recruitment->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_recruitment.php';
|
|
||||||
$head[$h][1] = $langs->trans("Recruitment");
|
|
||||||
$head[$h][2] = 'recruitment';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->contrat->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_contrat.php';
|
|
||||||
$head[$h][1] = $langs->trans("Contrat");
|
|
||||||
$head[$h][2] = 'contrat';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->stock->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_stock.php';
|
|
||||||
$head[$h][1] = $langs->trans("Stock");
|
|
||||||
$head[$h][2] = 'stock';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->holiday->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_holiday.php';
|
|
||||||
$head[$h][1] = $langs->trans("Holidays");
|
|
||||||
$head[$h][2] = 'holiday';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if (1 == 2 && !empty($conf->expensereport->enabled)) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/admin/pdf_expensereport.php';
|
|
||||||
$head[$h][1] = $langs->trans("Trips");
|
|
||||||
$head[$h][2] = 'expensereport';
|
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -399,23 +399,7 @@ SecurityToken=Key to secure URLs
|
|||||||
NoSmsEngine=No SMS sender manager available. A SMS sender manager is not installed with the default distribution because they depend on an external vendor, but you can find some on %s
|
NoSmsEngine=No SMS sender manager available. A SMS sender manager is not installed with the default distribution because they depend on an external vendor, but you can find some on %s
|
||||||
PDF=PDF
|
PDF=PDF
|
||||||
PDFDesc=Global options for PDF generation
|
PDFDesc=Global options for PDF generation
|
||||||
PDFProjectDesc=PDF Option for project
|
PDFOtherDesc=PDF Option specific to some modules
|
||||||
PDFProposalDesc=PDF Option for proposal
|
|
||||||
PDFOrderDesc=PDF Option for order
|
|
||||||
PDFInvoiceDesc=PDF Option for invoice
|
|
||||||
PDFShipmentDesc=PDF Option for shipment
|
|
||||||
PDFReceptionDesc=PDF Option for reception
|
|
||||||
PDFTicketDesc=PDF Option for ticket
|
|
||||||
PDFInterventionDesc=PDF option for intervention
|
|
||||||
PDFSupplierproposalDesc=PDF Option for supplier proposal
|
|
||||||
PDFSupplierorderDesc=PDF Option for supplier order
|
|
||||||
PDFSupplierinvoiceDesc=PDF Option for supplier invoice
|
|
||||||
PDFRecruitmentDesc=PDF Option for recrutment
|
|
||||||
PDFContratDesc=PDF Option for contrat
|
|
||||||
PDFStockDesc=PDF Option for stock
|
|
||||||
PDFHolidaytDesc=PDF Option for holiday
|
|
||||||
PDFExpensereportDesc=PDF Option for Expensereport
|
|
||||||
PDFAdherentDescPDF Option for Adhrent
|
|
||||||
PDFAddressForging=Rules for address section
|
PDFAddressForging=Rules for address section
|
||||||
HideAnyVATInformationOnPDF=Hide all information related to Sales Tax / VAT
|
HideAnyVATInformationOnPDF=Hide all information related to Sales Tax / VAT
|
||||||
PDFRulesForSalesTax=Rules for Sales Tax / VAT
|
PDFRulesForSalesTax=Rules for Sales Tax / VAT
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user