Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
This commit is contained in:
parent
499810c822
commit
e0b1ad308b
@ -130,12 +130,9 @@ include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
|
||||
|
||||
$dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']);
|
||||
|
||||
llxHeader(
|
||||
"",
|
||||
$langs->trans("BillsSetup"),
|
||||
'EN:Invoice_Configuration|FR:Configuration_module_facture|ES:ConfiguracionFactura'
|
||||
);
|
||||
$help_yrl = 'EN:Invoice_Configuration|FR:Configuration_module_facture|ES:ConfiguracionFactura';
|
||||
|
||||
llxHeader("", $langs->trans("BillsSetup"), $help_url);
|
||||
|
||||
|
||||
$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
|
||||
|
||||
@ -56,21 +56,23 @@ if (!$user->admin) {
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
if ($file && !$what) {
|
||||
//print DOL_URL_ROOT.'/dolibarr_export.php';
|
||||
header("Location: ".DOL_URL_ROOT.'/admin/tools/dolibarr_export.php?msg='.urlencode($langs->trans("ErrorFieldRequired", $langs->transnoentities("ExportMethod"))).(GETPOST('page_y', 'int') ? '&page_y='.GETPOST('page_y', 'int') : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
$errormsg = '';
|
||||
|
||||
$utils = new Utils($db);
|
||||
|
||||
|
||||
/*
|
||||
* Actions
|
||||
*/
|
||||
|
||||
if ($file && !$what) {
|
||||
//print DOL_URL_ROOT.'/dolibarr_export.php';
|
||||
header("Location: ".DOL_URL_ROOT.'/admin/tools/dolibarr_export.php?msg='.urlencode($langs->trans("ErrorFieldRequired", $langs->transnoentities("ExportMethod"))).(GETPOST('page_y', 'int') ? '&page_y='.GETPOST('page_y', 'int') : ''));
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($action == 'delete') {
|
||||
$file = $conf->admin->dir_output.'/'.GETPOST('urlfile');
|
||||
$file = $conf->admin->dir_output.'/'.dol_sanitizeFileName(GETPOST('urlfile'));
|
||||
$ret = dol_delete_file($file, 1);
|
||||
if ($ret) {
|
||||
setEventMessages($langs->trans("FileWasRemoved", GETPOST('urlfile')), null, 'mesgs');
|
||||
@ -80,11 +82,6 @@ if ($action == 'delete') {
|
||||
$action = '';
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
$_SESSION["commandbackuplastdone"] = '';
|
||||
$_SESSION["commandbackuptorun"] = '';
|
||||
$_SESSION["commandbackupresult"] = '';
|
||||
@ -103,13 +100,6 @@ if (!empty($MemoryLimit)) {
|
||||
@ini_set('memory_limit', $MemoryLimit);
|
||||
}
|
||||
|
||||
|
||||
//$help_url='EN:Backups|FR:Sauvegardes|ES:Copias_de_seguridad';
|
||||
//llxHeader('','',$help_url);
|
||||
|
||||
//print load_fiche_titre($langs->trans("Backup"),'','title_setup');
|
||||
|
||||
|
||||
// Start with empty buffer
|
||||
$dump_buffer = '';
|
||||
$dump_buffer_len = 0;
|
||||
@ -122,9 +112,6 @@ $outputdir = $conf->admin->dir_output.'/backup';
|
||||
$result = dol_mkdir($outputdir);
|
||||
|
||||
|
||||
$utils = new Utils($db);
|
||||
|
||||
|
||||
// MYSQL
|
||||
if ($what == 'mysql') {
|
||||
$cmddump = GETPOST("mysqldump", 'none'); // Do not sanitize here with 'alpha', will be sanitize later by dol_sanitizePathName and escapeshellarg
|
||||
@ -216,7 +203,16 @@ if ($errormsg) {
|
||||
}*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
top_httphead();
|
||||
|
||||
$db->close();
|
||||
|
||||
// Redirect to backup page
|
||||
header("Location: dolibarr_export.php".(GETPOST('page_y', 'int') ? '?page_y='.GETPOST('page_y', 'int') : ''));
|
||||
exit();
|
||||
|
||||
@ -205,7 +205,12 @@ if ($compression == 'zip') {
|
||||
print $errormsg;
|
||||
}
|
||||
|
||||
|
||||
// Output export
|
||||
|
||||
if ($export_type != 'externalmodule' || empty($what)) {
|
||||
top_httphead();
|
||||
|
||||
if ($errormsg) {
|
||||
setEventMessages($langs->trans("Error")." : ".$errormsg, null, 'errors');
|
||||
} else {
|
||||
@ -218,12 +223,15 @@ if ($export_type != 'externalmodule' || empty($what)) {
|
||||
$returnto = 'dolibarr_export.php';
|
||||
|
||||
header("Location: ".$returnto);
|
||||
|
||||
exit();
|
||||
} else {
|
||||
top_httphead('application/zip');
|
||||
|
||||
$zipname = $outputdir."/".$file;
|
||||
|
||||
// Then download the zipped file.
|
||||
header('Content-Type: application/zip');
|
||||
|
||||
header('Content-disposition: attachment; filename='.basename($zipname));
|
||||
header('Content-Length: '.filesize($zipname));
|
||||
readfile($zipname);
|
||||
|
||||
@ -779,7 +779,6 @@ $projectstatic = new Project($db);
|
||||
|
||||
$title = $langs->trans("Orders");
|
||||
$help_url = "EN:Module_Customers_Orders|FR:Module_Commandes_Clients|ES:Módulo_Pedidos_de_clientes";
|
||||
// llxHeader('',$title,$help_url);
|
||||
|
||||
$sql = 'SELECT';
|
||||
if ($sall || $search_product_category > 0 || $search_user > 0) {
|
||||
|
||||
@ -517,9 +517,15 @@ $morehtmlref = '';
|
||||
|
||||
if ($id > 0 || !empty($ref)) {
|
||||
$title = $object->ref.' - '.$langs->trans("Transactions");
|
||||
$helpurl = "";
|
||||
llxHeader('', $title, $helpurl);
|
||||
} else {
|
||||
$title = $langs->trans("BankTransactions");
|
||||
}
|
||||
$help_url = '';
|
||||
|
||||
llxHeader('', $title, $help_url, '', 0, 0, array(), array(), $param);
|
||||
|
||||
|
||||
if ($id > 0 || !empty($ref)) {
|
||||
// Load bank groups
|
||||
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/bankcateg.class.php';
|
||||
$bankcateg = new BankCateg($db);
|
||||
@ -574,11 +580,8 @@ if ($id > 0 || !empty($ref)) {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
llxHeader('', $langs->trans("BankTransactions"), '', '', 0, 0, array(), array(), $param);
|
||||
}
|
||||
|
||||
|
||||
$sql = "SELECT b.rowid, b.dateo as do, b.datev as dv, b.amount, b.label, b.rappro as conciliated, b.num_releve, b.num_chq,";
|
||||
$sql .= " b.fk_account, b.fk_type, b.fk_bordereau,";
|
||||
$sql .= " ba.rowid as bankid, ba.ref as bankref";
|
||||
|
||||
@ -223,6 +223,17 @@ if ($id > 0) {
|
||||
$param .= '&id='.urlencode($id);
|
||||
}
|
||||
|
||||
if (empty($numref)) {
|
||||
$title = $object->ref.' - '.$langs->trans("AccountStatements");
|
||||
$helpurl = "";
|
||||
} else {
|
||||
$title = $langs->trans("FinancialAccount").' - '.$langs->trans("AccountStatements");
|
||||
$helpurl = "";
|
||||
}
|
||||
|
||||
|
||||
llxHeader('', $title, $helpurl);
|
||||
|
||||
|
||||
if (empty($numref)) {
|
||||
$sortfield = 'numr';
|
||||
@ -248,10 +259,6 @@ if (empty($numref)) {
|
||||
$numrows = $db->num_rows($result);
|
||||
$i = 0;
|
||||
|
||||
$title = $object->ref.' - '.$langs->trans("AccountStatements");
|
||||
$helpurl = "";
|
||||
llxHeader('', $title, $helpurl);
|
||||
|
||||
// Onglets
|
||||
$head = bank_prepare_head($object);
|
||||
print dol_get_fiche_head($head, 'statement', $langs->trans("FinancialAccount"), 0, 'account');
|
||||
@ -387,10 +394,6 @@ if (empty($numref)) {
|
||||
* Show list of record into a bank statement
|
||||
*/
|
||||
|
||||
$title = $langs->trans("FinancialAccount").' - '.$langs->trans("AccountStatements");
|
||||
$helpurl = "";
|
||||
llxHeader('', $title, $helpurl);
|
||||
|
||||
// Onglets
|
||||
$head = account_statement_prepare_head($object, $numref);
|
||||
print dol_get_fiche_head($head, 'statement', $langs->trans("AccountStatement"), -1, 'account');
|
||||
|
||||
@ -265,6 +265,10 @@ $initialbalanceforterminal = array();
|
||||
$theoricalamountforterminal = array();
|
||||
$theoricalnbofinvoiceforterminal = array();
|
||||
|
||||
|
||||
llxHeader('', $langs->trans("CashControl"));
|
||||
|
||||
|
||||
if ($action == "create" || $action == "start" || $action == 'close') {
|
||||
if ($action == 'close') {
|
||||
$posmodule = $object->posmodule;
|
||||
@ -376,8 +380,6 @@ if ($action == "create" || $action == "start" || $action == 'close') {
|
||||
|
||||
//var_dump($theoricalamountforterminal); var_dump($theoricalnbofinvoiceforterminal);
|
||||
if ($action != 'close') {
|
||||
llxHeader('', $langs->trans("NewCashFence"));
|
||||
|
||||
print load_fiche_titre($langs->trans("CashControl")." - ".$langs->trans("New"), '', 'cash-register');
|
||||
|
||||
print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
|
||||
@ -597,8 +599,6 @@ if ($action == "create" || $action == "start" || $action == 'close') {
|
||||
if (empty($action) || $action == "view" || $action == "close") {
|
||||
$result = $object->fetch($id);
|
||||
|
||||
llxHeader('', $langs->trans("CashControl"));
|
||||
|
||||
if ($result <= 0) {
|
||||
print $langs->trans("ErrorRecordNotFound");
|
||||
} else {
|
||||
|
||||
@ -92,20 +92,24 @@ include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
|
||||
* View
|
||||
*/
|
||||
|
||||
if (empty($object->id)) {
|
||||
llxHeader();
|
||||
$langs->load('errors');
|
||||
echo '<div class="error">'.$langs->trans("ErrorRecordNotFound").'</div>';
|
||||
llxFooter();
|
||||
exit;
|
||||
}
|
||||
$form = new Form($db);
|
||||
|
||||
$title = $object->ref." - ".$langs->trans('Documents');
|
||||
if (empty($object->id)) {
|
||||
$title = $langs->trans('Documents');
|
||||
} else {
|
||||
$title = $object->ref." - ".$langs->trans('Documents');
|
||||
}
|
||||
$help_url = "EN:Customers_Invoices|FR:Factures_Clients|ES:Facturas_a_clientes";
|
||||
|
||||
llxHeader('', $title, $help_url);
|
||||
|
||||
$form = new Form($db);
|
||||
if (empty($object->id)) {
|
||||
$langs->load('errors');
|
||||
echo '<div class="error">'.$langs->trans("ErrorRecordNotFound").'</div>';
|
||||
|
||||
llxFooter();
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($id > 0 || !empty($ref)) {
|
||||
if ($object->fetch($id, $ref) > 0) {
|
||||
|
||||
@ -77,19 +77,24 @@ if (empty($reshook)) {
|
||||
* View
|
||||
*/
|
||||
|
||||
$form = new Form($db);
|
||||
|
||||
if (empty($object->id)) {
|
||||
$title = $object->ref." - ".$langs->trans('Notes');
|
||||
} else {
|
||||
$title = $langs->trans('Notes');
|
||||
}
|
||||
$helpurl = "EN:Customers_Invoices|FR:Factures_Clients|ES:Facturas_a_clientes";
|
||||
|
||||
llxHeader('', $title, $helpurl);
|
||||
|
||||
if (empty($object->id)) {
|
||||
llxHeader();
|
||||
$langs->load('errors');
|
||||
echo '<div class="error">'.$langs->trans("ErrorRecordNotFound").'</div>';
|
||||
llxFooter();
|
||||
exit;
|
||||
}
|
||||
|
||||
$title = $object->ref." - ".$langs->trans('Notes');
|
||||
$helpurl = "EN:Customers_Invoices|FR:Factures_Clients|ES:Facturas_a_clientes";
|
||||
llxHeader('', $title, $helpurl);
|
||||
|
||||
$form = new Form($db);
|
||||
|
||||
if ($id > 0 || !empty($ref)) {
|
||||
$object = new Facture($db);
|
||||
|
||||
@ -1261,7 +1261,6 @@ function dol_delete_file($file, $disableglob = 0, $nophperrors = 0, $nohook = 0,
|
||||
$hookmanager->initHooks(array('fileslib'));
|
||||
|
||||
$parameters = array(
|
||||
'GET' => $_GET,
|
||||
'file' => $file,
|
||||
'disableglob'=> $disableglob,
|
||||
'nophperrors' => $nophperrors
|
||||
|
||||
@ -741,7 +741,6 @@ if ($search_billed > 0) {
|
||||
|
||||
//$help_url="EN:Module_Customers_Orders|FR:Module_Commandes_Clients|ES:Módulo_Pedidos_de_clientes";
|
||||
$help_url = '';
|
||||
// llxHeader('',$title,$help_url);
|
||||
|
||||
$sql = 'SELECT';
|
||||
if ($sall || $search_product_category > 0) {
|
||||
|
||||
@ -404,8 +404,6 @@ $facturestatic = new FactureFournisseur($db);
|
||||
$formcompany = new FormCompany($db);
|
||||
$thirdparty = new Societe($db);
|
||||
|
||||
// llxHeader('',$langs->trans("SuppliersInvoices"),'EN:Suppliers_Invoices|FR:FactureFournisseur|ES:Facturas_de_proveedores');
|
||||
|
||||
$sql = "SELECT";
|
||||
if ($search_all || $search_product_category > 0) {
|
||||
$sql = 'SELECT DISTINCT';
|
||||
|
||||
@ -60,6 +60,17 @@ if (!$sortorder) {
|
||||
}
|
||||
|
||||
|
||||
// Initialize technical object to manage hooks. Note that conf->hooks_modules contains array
|
||||
$hookmanager->initHooks(array('defineholidaylist'));
|
||||
$extrafields = new ExtraFields($db);
|
||||
|
||||
$holiday = new Holiday($db);
|
||||
|
||||
|
||||
if (empty($conf->holiday->enabled)) {
|
||||
accessforbidden('Module not enabled');
|
||||
}
|
||||
|
||||
// Protection if external user
|
||||
if ($user->socid > 0) {
|
||||
accessforbidden();
|
||||
@ -71,23 +82,6 @@ if (empty($user->rights->holiday->read)) {
|
||||
}
|
||||
|
||||
|
||||
// Initialize technical object to manage hooks. Note that conf->hooks_modules contains array
|
||||
$hookmanager->initHooks(array('defineholidaylist'));
|
||||
$extrafields = new ExtraFields($db);
|
||||
|
||||
$holiday = new Holiday($db);
|
||||
|
||||
if (empty($conf->holiday->enabled)) {
|
||||
llxHeader('', $langs->trans('CPTitreMenu'));
|
||||
print '<div class="tabBar">';
|
||||
print '<span style="color: #FF0000;">'.$langs->trans('NotActiveModCP').'</span>';
|
||||
print '</div>';
|
||||
llxFooter();
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Actions
|
||||
*/
|
||||
@ -212,7 +206,6 @@ $title = $langs->trans('CPTitreMenu');
|
||||
|
||||
llxHeader('', $title);
|
||||
|
||||
|
||||
$typeleaves = $holiday->getTypes(1, 1);
|
||||
$result = $holiday->updateBalance(); // Create users into table holiday if they don't exists. TODO Remove this whif we use field into table user.
|
||||
if ($result < 0) {
|
||||
|
||||
@ -59,29 +59,6 @@ $id = GETPOST('id', 'int');
|
||||
|
||||
$childids = $user->getAllChildIds(1);
|
||||
|
||||
// Security check
|
||||
$socid = 0;
|
||||
if ($user->socid > 0) { // Protection if external user
|
||||
//$socid = $user->socid;
|
||||
accessforbidden();
|
||||
}
|
||||
$result = restrictedArea($user, 'holiday', '', '');
|
||||
// If we are on the view of a specific user
|
||||
if ($id > 0) {
|
||||
$canread = 0;
|
||||
if ($id == $user->id) {
|
||||
$canread = 1;
|
||||
}
|
||||
if (!empty($user->rights->holiday->readall)) {
|
||||
$canread = 1;
|
||||
}
|
||||
if (!empty($user->rights->holiday->read) && in_array($id, $childids)) {
|
||||
$canread = 1;
|
||||
}
|
||||
if (!$canread) {
|
||||
accessforbidden();
|
||||
}
|
||||
}
|
||||
|
||||
$diroutputmassaction = $conf->holiday->dir_output.'/temp/massgeneration/'.$user->id;
|
||||
|
||||
@ -156,15 +133,36 @@ $arrayfields = array(
|
||||
// Extra fields
|
||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_array_fields.tpl.php';
|
||||
|
||||
if (empty($conf->holiday->enabled)) {
|
||||
llxHeader('', $langs->trans('CPTitreMenu'));
|
||||
print '<div class="tabBar">';
|
||||
print '<span style="color: #FF0000;">'.$langs->trans('NotActiveModCP').'</span>';
|
||||
print '</div>';
|
||||
llxFooter();
|
||||
exit();
|
||||
|
||||
// Security check
|
||||
$socid = 0;
|
||||
if ($user->socid > 0) { // Protection if external user
|
||||
//$socid = $user->socid;
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
if (empty($conf->holiday->enabled)) accessforbidden('Module not enabled');
|
||||
|
||||
$result = restrictedArea($user, 'holiday', '', '');
|
||||
// If we are on the view of a specific user
|
||||
if ($id > 0) {
|
||||
$canread = 0;
|
||||
if ($id == $user->id) {
|
||||
$canread = 1;
|
||||
}
|
||||
if (!empty($user->rights->holiday->readall)) {
|
||||
$canread = 1;
|
||||
}
|
||||
if (!empty($user->rights->holiday->read) && in_array($id, $childids)) {
|
||||
$canread = 1;
|
||||
}
|
||||
if (!$canread) {
|
||||
accessforbidden();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Actions
|
||||
|
||||
@ -74,11 +74,6 @@ if (!$sortorder) {
|
||||
$sortorder = "DESC";
|
||||
}
|
||||
|
||||
// Si l'utilisateur n'a pas le droit de lire cette page
|
||||
if (!$user->rights->holiday->readall) {
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('users', 'other', 'holiday'));
|
||||
|
||||
@ -92,12 +87,12 @@ $arrayfields = array();
|
||||
$arrayofmassactions = array();
|
||||
|
||||
if (empty($conf->holiday->enabled)) {
|
||||
llxHeader('', $langs->trans('CPTitreMenu'));
|
||||
print '<div class="tabBar">';
|
||||
print '<span style="color: #FF0000;">'.$langs->trans('NotActiveModCP').'</span>';
|
||||
print '</div>';
|
||||
llxFooter();
|
||||
exit();
|
||||
accessforbidden('Module not enabled');
|
||||
}
|
||||
|
||||
// Si l'utilisateur n'a pas le droit de lire cette page
|
||||
if (!$user->rights->holiday->readall) {
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1585,7 +1585,7 @@ if ($step == 5 && $datatoimport) {
|
||||
$param .= '&updatekeys[]='.implode('&updatekeys[]=', $updatekeys);
|
||||
}
|
||||
|
||||
llxHeader('', $langs->trans("NewImport"), 'EN:Module_Imports_En|FR:Module_Imports|ES:Módulo_Importaciones');
|
||||
llxHeader('', $langs->trans("NewImport"), $help_url);
|
||||
|
||||
$head = import_prepare_head($param, 5);
|
||||
|
||||
@ -2051,7 +2051,7 @@ if ($step == 6 && $datatoimport) {
|
||||
$param .= '&enclosure='.urlencode($enclosure);
|
||||
}
|
||||
|
||||
llxHeader('', $langs->trans("NewImport"), 'EN:Module_Imports_En|FR:Module_Imports|ES:Módulo_Importaciones');
|
||||
llxHeader('', $langs->trans("NewImport"), $help_url);
|
||||
|
||||
$head = import_prepare_head($param, 6);
|
||||
|
||||
|
||||
@ -155,10 +155,11 @@ if ($action == 'add' && $permissiontoadd) {
|
||||
* View
|
||||
*/
|
||||
|
||||
$title = $langs->trans("IntracommReportTitle");
|
||||
llxHeader("", $title);
|
||||
|
||||
// Creation mode
|
||||
if ($action == 'create') {
|
||||
$title = $langs->trans("IntracommReportTitle");
|
||||
llxHeader("", $title);
|
||||
print load_fiche_titre($langs->trans("IntracommReportTitle"));
|
||||
|
||||
print '<form name="charge" method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
||||
@ -294,8 +295,6 @@ if ($id > 0 && $action != 'edit') {
|
||||
{
|
||||
global $langs, $formother, $year, $month, $type_declaration;
|
||||
|
||||
$title = $langs->trans("IntracommReportDESTitle");
|
||||
llxHeader("", $title);
|
||||
print load_fiche_titre($langs->trans("IntracommReportDESTitle"));
|
||||
|
||||
print dol_get_fiche_head();
|
||||
|
||||
@ -85,7 +85,8 @@ if (empty($action)) {
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>';
|
||||
$arrayofcss = array('/takepos/css/phone.css');
|
||||
top_htmlhead($head, $title, 0, 0, '', '');
|
||||
|
||||
top_htmlhead($head, $title, 0, 0, '', $arrayofcss);
|
||||
} else {
|
||||
top_httphead('text/html', 1);
|
||||
}
|
||||
|
||||
@ -716,9 +716,9 @@ if (!empty($conf->project->enabled)) {
|
||||
|
||||
$help_url = 'EN:Module_Ticket|FR:DocumentationModuleTicket';
|
||||
|
||||
$page_title = $actionobject->getTitle($action);
|
||||
$title = $actionobject->getTitle($action);
|
||||
|
||||
llxHeader('', $page_title, $help_url);
|
||||
llxHeader('', $title, $help_url);
|
||||
|
||||
if ($action == 'create' || $action == 'presend') {
|
||||
$formticket = new FormTicket($db);
|
||||
|
||||
@ -730,12 +730,18 @@ if (!empty($conf->stock->enabled)) {
|
||||
$formproduct = new FormProduct($db);
|
||||
}
|
||||
|
||||
if ($object->id > 0) {
|
||||
$person_name = !empty($object->firstname) ? $object->lastname.", ".$object->firstname : $object->lastname;
|
||||
$title = $person_name." - ".$langs->trans('Card');
|
||||
} else {
|
||||
$title = $langs->trans("NewUser");
|
||||
}
|
||||
$help_url = '';
|
||||
|
||||
if ($action == 'create' || $action == 'adduserldap') {
|
||||
$title = $langs->trans("NewUser");
|
||||
llxHeader('', $title, $help_url);
|
||||
llxHeader('', $title, $help_url);
|
||||
|
||||
|
||||
if ($action == 'create' || $action == 'adduserldap') {
|
||||
print load_fiche_titre($langs->trans("NewUser"), '', 'user');
|
||||
|
||||
print '<span class="opacitymedium">'.$langs->trans("CreateInternalUserDesc")."</span><br>\n";
|
||||
@ -1353,10 +1359,6 @@ if ($action == 'create' || $action == 'adduserldap') {
|
||||
}
|
||||
}
|
||||
|
||||
$person_name = !empty($object->firstname) ? $object->lastname.", ".$object->firstname : $object->lastname;
|
||||
$title = $person_name." - ".$langs->trans('Card');
|
||||
llxHeader('', $title, $help_url);
|
||||
|
||||
// Show tabs
|
||||
if ($mode == 'employee') { // For HRM module development
|
||||
$title = $langs->trans("Employee");
|
||||
|
||||
@ -370,9 +370,12 @@ if ($action === 'confirm_deletecombination') {
|
||||
|
||||
$form = new Form($db);
|
||||
|
||||
if (!empty($id) || !empty($ref)) {
|
||||
llxHeader("", "", $langs->trans("CardProduct".$object->type));
|
||||
$title = $langs->trans("Variant");
|
||||
|
||||
llxHeader("", $title);
|
||||
|
||||
|
||||
if (!empty($id) || !empty($ref)) {
|
||||
$showbarcode = empty($conf->barcode->enabled) ? 0 : 1;
|
||||
if (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->barcode->lire_advance)) {
|
||||
$showbarcode = 0;
|
||||
@ -932,9 +935,6 @@ if (!empty($id) || !empty($ref)) {
|
||||
print '</div>';
|
||||
print '</form>';
|
||||
}
|
||||
} else {
|
||||
llxHeader();
|
||||
// not found
|
||||
}
|
||||
|
||||
// End of page
|
||||
|
||||
Loading…
Reference in New Issue
Block a user