From 6c9f46c73eb80464c93da6c14c4c76ae6bf9b97c Mon Sep 17 00:00:00 2001 From: Christian Foellmann Date: Fri, 8 Jul 2022 09:09:50 +0200 Subject: [PATCH] some more fixes to titles --- htdocs/contact/card.php | 8 +++++--- htdocs/contact/list.php | 2 +- htdocs/contrat/index.php | 5 ++++- htdocs/user/list.php | 1 + 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/htdocs/contact/card.php b/htdocs/contact/card.php index 67b144ffd89..5cdc0d0c6e4 100644 --- a/htdocs/contact/card.php +++ b/htdocs/contact/card.php @@ -572,7 +572,6 @@ if (!empty($conf->global->MAIN_HTML_TITLE) && preg_match('/contactnameonly/', $c $title = $object->lastname; } $help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas'; -llxHeader('', $title, $help_url); $countrynotdefined = $langs->trans("ErrorSetACountryFirst").' ('.$langs->trans("SeeAbove").')'; @@ -623,7 +622,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { // Show tabs $head = contact_prepare_head($object); - $title = (!empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("Contacts") : $langs->trans("ContactsAddresses")); + llxHeader('', $title, $help_url); } if ($user->rights->societe->contact->creer) { @@ -643,8 +642,11 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { $object->country = $tmparray['label']; } - $title = (!empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("NewContact") : $langs->trans("NewContactAddress")); $linkback = ''; + $title = (!empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("NewContact") : $langs->trans("NewContactAddress")); + + llxHeader('', $title, $help_url); + print load_fiche_titre($title, $linkback, 'address'); // Show errors diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php index 32d258d7133..801c859924e 100644 --- a/htdocs/contact/list.php +++ b/htdocs/contact/list.php @@ -582,7 +582,7 @@ if ($num == 1 && !empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && ( } $help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Módulo_Empresas'; -llxHeader('', $title, $help_url); +llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); $param = ''; if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) { diff --git a/htdocs/contrat/index.php b/htdocs/contrat/index.php index 1b9ab289774..62b60d9a091 100644 --- a/htdocs/contrat/index.php +++ b/htdocs/contrat/index.php @@ -70,7 +70,10 @@ $productstatic = new Product($db); $now = dol_now(); -llxHeader(); +$title = $langs->trans("ContractsArea"); +$help_url = ''; + +llxHeader('', $title, $help_url); print load_fiche_titre($langs->trans("ContractsArea"), '', 'contract'); diff --git a/htdocs/user/list.php b/htdocs/user/list.php index 53eed056695..a47fa7a51c2 100644 --- a/htdocs/user/list.php +++ b/htdocs/user/list.php @@ -508,6 +508,7 @@ if ($num == 1 && !empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && $ // Output page // -------------------------------------------------------------------- +$title = $langs->trans("ListOfUsers"); llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist');