From f0ccd63ed4cc16ae2f16705b0bf1c0977323a976 Mon Sep 17 00:00:00 2001 From: Anthony Damhet <73399671+EchoLoGeek@users.noreply.github.com> Date: Sat, 8 Jun 2024 18:53:19 +0200 Subject: [PATCH] Add llxHeader to reception (#29935) --- htdocs/reception/card.php | 2 +- htdocs/reception/contact.php | 3 ++- htdocs/reception/dispatch.php | 2 +- htdocs/reception/document.php | 2 +- htdocs/reception/index.php | 2 +- htdocs/reception/list.php | 2 +- htdocs/reception/note.php | 2 +- 7 files changed, 8 insertions(+), 7 deletions(-) diff --git a/htdocs/reception/card.php b/htdocs/reception/card.php index 683ac263362..1556dd5cef1 100644 --- a/htdocs/reception/card.php +++ b/htdocs/reception/card.php @@ -746,7 +746,7 @@ if (empty($reshook)) { $title = $object->ref.' - '.$langs->trans('Reception'); -llxHeader('', $title, 'Reception'); +llxHeader('', $title, 'Reception', '', 0, 0, '', '', '', 'mod-reception page-card'); $form = new Form($db); $formfile = new FormFile($db); diff --git a/htdocs/reception/contact.php b/htdocs/reception/contact.php index e67a1434cba..a8c5a6a21e3 100644 --- a/htdocs/reception/contact.php +++ b/htdocs/reception/contact.php @@ -139,7 +139,8 @@ if ($action == 'addcontact' && $user->hasRight('reception', 'creer')) { * View */ -llxHeader('', $langs->trans('Reception'), 'EN:Customers_Orders|FR:receptions_Clients|ES:Pedidos de clientes'); +$help_url = 'EN:Customers_Orders|FR:receptions_Clients|ES:Pedidos de clientes'; +llxHeader('', $langs->trans('Reception'), $help_url, '', 0, 0, '', '', '', 'mod-reception page-card_contact'); $form = new Form($db); $formcompany = new FormCompany($db); diff --git a/htdocs/reception/dispatch.php b/htdocs/reception/dispatch.php index 8e17afbc87b..0f0ff593864 100644 --- a/htdocs/reception/dispatch.php +++ b/htdocs/reception/dispatch.php @@ -307,7 +307,7 @@ $help_url = 'EN:Module_Suppliers_Orders|FR:CommandeFournisseur|ES:Módulo_Pedido $morejs = array('/fourn/js/lib_dispatch.js.php'); $numline = 0; -llxHeader('', $title, $help_url, '', 0, 0, $morejs); +llxHeader('', $title, $help_url, '', 0, 0, $morejs, '', '', 'mod-reception page-card_dispatch'); if ($id > 0 || !empty($ref)) { if (!empty($object->origin) && $object->origin_id > 0) { diff --git a/htdocs/reception/document.php b/htdocs/reception/document.php index f27cd7d6687..e9a0ffa6738 100644 --- a/htdocs/reception/document.php +++ b/htdocs/reception/document.php @@ -123,7 +123,7 @@ include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php'; * View */ -llxHeader('', $langs->trans('Reception'), ''); +llxHeader('', $langs->trans('Reception'), '', '', 0, 0, '', '', '', 'mod-reception page-card_documents'); $form = new Form($db); diff --git a/htdocs/reception/index.php b/htdocs/reception/index.php index d340d3420a8..3665ae8d27f 100644 --- a/htdocs/reception/index.php +++ b/htdocs/reception/index.php @@ -55,7 +55,7 @@ $orderstatic = new CommandeFournisseur($db); $companystatic = new Societe($db); $helpurl = 'EN:Module_Receptions|FR:Module_Receptions|ES:Módulo_Receptiones'; -llxHeader('', $langs->trans("Reception"), $helpurl); +llxHeader('', $langs->trans("Reception"), $helpurl, '', 0, 0, '', '', '', 'mod-reception page-dashboard'); print load_fiche_titre($langs->trans("ReceptionsArea"), '', 'dollyrevert'); diff --git a/htdocs/reception/list.php b/htdocs/reception/list.php index a5baa8a9a1b..f3d9058e9a3 100644 --- a/htdocs/reception/list.php +++ b/htdocs/reception/list.php @@ -596,7 +596,7 @@ $formfile = new FormFile($db); $helpurl = 'EN:Module_Receptions|FR:Module_Receptions|ES:Módulo_Receptiones'; -llxHeader('', $langs->trans('ListOfReceptions'), $helpurl); +llxHeader('', $langs->trans('ListOfReceptions'), $helpurl, '', 0, 0, '', '', '', 'mod-reception page-list'); $sql = "SELECT e.rowid, e.ref, e.ref_supplier, e.date_reception as date_reception, e.date_delivery as delivery_date, l.date_delivery as date_reception2, e.fk_statut as status, e.billed,"; $sql .= " s.rowid as socid, s.nom as name, s.town, s.zip, s.fk_pays, s.client, s.code_client,"; diff --git a/htdocs/reception/note.php b/htdocs/reception/note.php index b86e05c369f..d726fa6f813 100644 --- a/htdocs/reception/note.php +++ b/htdocs/reception/note.php @@ -114,7 +114,7 @@ if (empty($reshook)) { * View */ -llxHeader('', $langs->trans('Reception')); +llxHeader('', $langs->trans('Reception'), '', '', 0, 0, $morejs, '', '', 'mod-reception page-card_notes'); $form = new Form($db);