From c1270ac2f5a5a79e0e4e937de949a2fa6fd33183 Mon Sep 17 00:00:00 2001 From: Anthony Damhet <73399671+EchoLoGeek@users.noreply.github.com> Date: Sat, 13 Jul 2024 18:10:40 +0200 Subject: [PATCH] Add llxHeader to projects (#30357) * Add llxHeader to projects * Correction llxHeader for compta/prelevement * Add space after comma * Add missing space --------- Co-authored-by: Laurent Destailleur --- htdocs/compta/prelevement/list.php | 2 +- htdocs/compta/prelevement/orders_list.php | 2 +- htdocs/projet/activity/index.php | 2 +- htdocs/projet/activity/perday.php | 2 +- htdocs/projet/activity/permonth.php | 2 +- htdocs/projet/activity/perweek.php | 2 +- htdocs/projet/admin/project.php | 2 +- htdocs/projet/admin/project_extrafields.php | 2 +- htdocs/projet/admin/project_task_extrafields.php | 2 +- htdocs/projet/admin/website.php | 2 +- htdocs/projet/agenda.php | 2 +- htdocs/projet/card.php | 2 +- htdocs/projet/comment.php | 2 +- htdocs/projet/contact.php | 2 +- htdocs/projet/document.php | 2 +- htdocs/projet/element.php | 2 +- htdocs/projet/ganttview.php | 2 +- htdocs/projet/index.php | 2 +- htdocs/projet/list.php | 2 +- htdocs/projet/messaging.php | 2 +- htdocs/projet/note.php | 2 +- htdocs/projet/stats/index.php | 3 +-- htdocs/projet/tasks.php | 2 +- htdocs/projet/tasks/comment.php | 2 +- htdocs/projet/tasks/contact.php | 2 +- htdocs/projet/tasks/document.php | 2 +- htdocs/projet/tasks/list.php | 2 +- htdocs/projet/tasks/note.php | 2 +- htdocs/projet/tasks/stats/index.php | 2 +- htdocs/projet/tasks/task.php | 2 +- htdocs/projet/tasks/time.php | 2 +- 31 files changed, 31 insertions(+), 32 deletions(-) diff --git a/htdocs/compta/prelevement/list.php b/htdocs/compta/prelevement/list.php index 72ce59256d5..0719f474195 100644 --- a/htdocs/compta/prelevement/list.php +++ b/htdocs/compta/prelevement/list.php @@ -247,7 +247,7 @@ $num = $db->num_rows($resql); // Output page // -------------------------------------------------------------------- -llxHeader('', $title, $help_url, 0, 0, '', '', '', 'bodyforlist'); +llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'bodyforlist'); $arrayofselected = is_array($toselect) ? $toselect : array(); diff --git a/htdocs/compta/prelevement/orders_list.php b/htdocs/compta/prelevement/orders_list.php index c8da5cfdd48..52660b4308c 100644 --- a/htdocs/compta/prelevement/orders_list.php +++ b/htdocs/compta/prelevement/orders_list.php @@ -232,7 +232,7 @@ $num = $db->num_rows($resql); // Output page // -------------------------------------------------------------------- -llxHeader('', $title, $help_url, 0, 0, '', '', '', 'bodyforlist'); +llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'bodyforlist'); $arrayofselected = is_array($toselect) ? $toselect : array(); $param = ''; diff --git a/htdocs/projet/activity/index.php b/htdocs/projet/activity/index.php index 4516991232b..853b4b9ad35 100644 --- a/htdocs/projet/activity/index.php +++ b/htdocs/projet/activity/index.php @@ -99,7 +99,7 @@ $tasktmp = new Task($db); $title = $langs->trans("Activities"); //if ($mine) $title=$langs->trans("MyActivities"); -llxHeader("", $title); +llxHeader("", $title, '', '', 0, 0, '', '', '', 'mod-project project-activity page-dashboard'); // Title for combo list see all projects diff --git a/htdocs/projet/activity/perday.php b/htdocs/projet/activity/perday.php index 15201157ea6..69ac9e71473 100644 --- a/htdocs/projet/activity/perday.php +++ b/htdocs/projet/activity/perday.php @@ -405,7 +405,7 @@ if ($morewherefilter) { // Get all task without any filter, so we can show total $projectsrole = $taskstatic->getUserRolesForProjectsOrTasks($usertoprocess, null, ($project->id ? $project->id : 0), 0, $onlyopenedproject); $tasksrole = $taskstatic->getUserRolesForProjectsOrTasks(null, $usertoprocess, ($project->id ? $project->id : 0), 0, $onlyopenedproject); -llxHeader('', $title, '', '', 0, 0, array('/core/js/timesheet.js')); +llxHeader('', $title, '', '', 0, 0, array('/core/js/timesheet.js'), '', '', 'mod-project project-activity page-activity_perday'); //print_barre_liste($title, $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, "", $num, '', 'project'); diff --git a/htdocs/projet/activity/permonth.php b/htdocs/projet/activity/permonth.php index cc866386fe9..d969cf07938 100644 --- a/htdocs/projet/activity/permonth.php +++ b/htdocs/projet/activity/permonth.php @@ -423,7 +423,7 @@ $tasksrole = $taskstatic->getUserRolesForProjectsOrTasks(null, $usertoprocess, ( //var_dump($taskrole); -llxHeader('', $title, '', '', 0, 0, array('/core/js/timesheet.js')); +llxHeader('', $title, '', '', 0, 0, array('/core/js/timesheet.js'), '', '', 'mod-project project-activity page-activity_permonth'); //print_barre_liste($title, $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, "", $num, '', 'project'); diff --git a/htdocs/projet/activity/perweek.php b/htdocs/projet/activity/perweek.php index a9e98b0f3c3..a721e703f66 100644 --- a/htdocs/projet/activity/perweek.php +++ b/htdocs/projet/activity/perweek.php @@ -424,7 +424,7 @@ $tasksrole = $taskstatic->getUserRolesForProjectsOrTasks(null, $usertoprocess, ( //var_dump($taskrole); -llxHeader("", $title, "", '', 0, 0, array('/core/js/timesheet.js')); +llxHeader("", $title, "", '', 0, 0, array('/core/js/timesheet.js'), '', '', 'mod-project project-activity page-activity_perweek'); //print_barre_liste($title, $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, "", $num, '', 'project'); diff --git a/htdocs/projet/admin/project.php b/htdocs/projet/admin/project.php index f5fee2ef5a3..9b1d670d96b 100644 --- a/htdocs/projet/admin/project.php +++ b/htdocs/projet/admin/project.php @@ -241,7 +241,7 @@ if ($action == 'updateMaskTask') { $dirmodels = array_merge(array('/'), (array) $conf->modules_parts['models']); -llxHeader("", $langs->trans("ProjectsSetup")); +llxHeader("", $langs->trans("ProjectsSetup"), '', '', 0, 0, '', '', '', 'mod-project page-admin'); $form = new Form($db); diff --git a/htdocs/projet/admin/project_extrafields.php b/htdocs/projet/admin/project_extrafields.php index 41659dc7c99..c7922ecc39c 100644 --- a/htdocs/projet/admin/project_extrafields.php +++ b/htdocs/projet/admin/project_extrafields.php @@ -62,7 +62,7 @@ require DOL_DOCUMENT_ROOT.'/core/actions_extrafields.inc.php'; $textobject = $langs->transnoentitiesnoconv("Project"); -llxHeader("", $langs->trans("ProjectsSetup")); +llxHeader("", $langs->trans("ProjectsSetup"), '', '', 0, 0, '', '', '', 'mod-project page-admin_extrafields'); $linkback = ''.$langs->trans("BackToModuleList").''; print load_fiche_titre($langs->trans("ProjectsSetup"), $linkback, 'title_setup'); diff --git a/htdocs/projet/admin/project_task_extrafields.php b/htdocs/projet/admin/project_task_extrafields.php index 329df6dd761..f39354e366e 100644 --- a/htdocs/projet/admin/project_task_extrafields.php +++ b/htdocs/projet/admin/project_task_extrafields.php @@ -63,7 +63,7 @@ require DOL_DOCUMENT_ROOT.'/core/actions_extrafields.inc.php'; $textobject = $langs->transnoentitiesnoconv("Project"); -llxHeader("", $langs->trans("ProjectsSetup")); +llxHeader("", $langs->trans("ProjectsSetup"), '', '', 0, 0, '', '', '', 'mod-project project-tasks page-admin_extrafields'); $linkback = ''.$langs->trans("BackToModuleList").''; print load_fiche_titre($langs->trans("ProjectsSetup"), $linkback, 'title_setup'); diff --git a/htdocs/projet/admin/website.php b/htdocs/projet/admin/website.php index d79d55da84f..44d3c1cb92d 100644 --- a/htdocs/projet/admin/website.php +++ b/htdocs/projet/admin/website.php @@ -89,7 +89,7 @@ $formproject = new FormProjets($db); $title = $langs->trans("ProjectsSetup"); $help_url = ''; -llxHeader('', $title, $help_url); +llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-admin_website'); $linkback = ''.$langs->trans("BackToModuleList").''; diff --git a/htdocs/projet/agenda.php b/htdocs/projet/agenda.php index d33906eae65..97e87e0ca30 100644 --- a/htdocs/projet/agenda.php +++ b/htdocs/projet/agenda.php @@ -119,7 +119,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', get $title = $object->ref.' '.$object->name.' - '.$langs->trans("Info"); } $help_url = "EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos"; -llxHeader("", $title, $help_url); +llxHeader("", $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-card_agenda'); $head = project_prepare_head($object); diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php index ced98e6e122..98f91d85ce4 100644 --- a/htdocs/projet/card.php +++ b/htdocs/projet/card.php @@ -579,7 +579,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', get $help_url = "EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos|DE:Modul_Projekte"; -llxHeader("", $title, $help_url); +llxHeader("", $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-card'); $titleboth = $langs->trans("LeadsOrProjects"); $titlenew = $langs->trans("NewLeadOrProject"); // Leads and opportunities by default diff --git a/htdocs/projet/comment.php b/htdocs/projet/comment.php index c4e98fb0ebf..16ddeabf062 100644 --- a/htdocs/projet/comment.php +++ b/htdocs/projet/comment.php @@ -84,7 +84,7 @@ include DOL_DOCUMENT_ROOT.'/core/actions_comments.inc.php'; $title = $langs->trans('CommentPage'); -llxHeader('', $title, ''); +llxHeader('', $title, '', '', 0, 0, '', '', '', 'mod-project page-card_comment'); $form = new Form($db); $formother = new FormOther($db); diff --git a/htdocs/projet/contact.php b/htdocs/projet/contact.php index 51c0113904b..1a1c14ac052 100644 --- a/htdocs/projet/contact.php +++ b/htdocs/projet/contact.php @@ -310,7 +310,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', get $help_url = 'EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos|DE:Modul_Projekte'; -llxHeader('', $title, $help_url); +llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-card_contact'); diff --git a/htdocs/projet/document.php b/htdocs/projet/document.php index 577999144ac..1a1375663e3 100644 --- a/htdocs/projet/document.php +++ b/htdocs/projet/document.php @@ -106,7 +106,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', get $help_url = 'EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos|DE:Modul_Projekte'; -llxHeader('', $title, $help_url); +llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-card_document'); $form = new Form($db); diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php index 0692464dcf7..3d8aba9c159 100644 --- a/htdocs/projet/element.php +++ b/htdocs/projet/element.php @@ -204,7 +204,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', get $help_url = 'EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos|DE:Modul_Projekte'; -llxHeader('', $title, $help_url); +llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-card_element'); $form = new Form($db); $formproject = new FormProjets($db); diff --git a/htdocs/projet/ganttview.php b/htdocs/projet/ganttview.php index 64db1dd61a6..09c6db42f3b 100644 --- a/htdocs/projet/ganttview.php +++ b/htdocs/projet/ganttview.php @@ -91,7 +91,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', get } $help_url = "EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos"; -llxHeader("", $title, $help_url, '', 0, 0, $arrayofjs, $arrayofcss); +llxHeader("", $title, $help_url, '', 0, 0, $arrayofjs, $arrayofcss, '', 'mod-project page-card_ganttview'); if (($id > 0 && is_numeric($id)) || !empty($ref)) { // To verify role of users diff --git a/htdocs/projet/index.php b/htdocs/projet/index.php index e4549594382..7d4f4e7d873 100644 --- a/htdocs/projet/index.php +++ b/htdocs/projet/index.php @@ -101,7 +101,7 @@ $title = $langs->trans('ProjectsArea'); $help_url = 'EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos|DE:Modul_Projekte'; -llxHeader('', $title, $help_url); +llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-dashboard'); //if ($mine) $title=$langs->trans("MyProjectsArea"); diff --git a/htdocs/projet/list.php b/htdocs/projet/list.php index 4fb4e078e7a..da3b983b332 100644 --- a/htdocs/projet/list.php +++ b/htdocs/projet/list.php @@ -845,7 +845,7 @@ if ($num == 1 && getDolGlobalString('MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && $s // Output page // -------------------------------------------------------------------- -llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'bodyforlist'); +llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'bodyforlist mod-project page-list'); $arrayofselected = is_array($toselect) ? $toselect : array(); diff --git a/htdocs/projet/messaging.php b/htdocs/projet/messaging.php index 5fc11a551e8..50c42c927c2 100644 --- a/htdocs/projet/messaging.php +++ b/htdocs/projet/messaging.php @@ -119,7 +119,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', get $title = $object->ref.' '.$object->name.' - '.$langs->trans("Info"); } $help_url = "EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos"; -llxHeader("", $title, $help_url); +llxHeader("", $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-card_messaging'); $head = project_prepare_head($object); diff --git a/htdocs/projet/note.php b/htdocs/projet/note.php index 83f259d1287..8926c3d3cbf 100644 --- a/htdocs/projet/note.php +++ b/htdocs/projet/note.php @@ -77,7 +77,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', get $title = $object->ref.' '.$object->name.' - '.$langs->trans("Note"); } $help_url = "EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos"; -llxHeader("", $title, $help_url); +llxHeader("", $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-card_note'); $form = new Form($db); $userstatic = new User($db); diff --git a/htdocs/projet/stats/index.php b/htdocs/projet/stats/index.php index 639614429cd..eb99b0d35d1 100644 --- a/htdocs/projet/stats/index.php +++ b/htdocs/projet/stats/index.php @@ -64,8 +64,7 @@ $formproject = new FormProjets($db); $includeuserlist = array(); - -llxHeader('', $langs->trans('Projects')); +llxHeader('', $langs->trans('Projects'), '', '', 0, 0, '', '', '', 'mod-project page-stats'); $title = $langs->trans("ProjectsStatistics"); $dir = $conf->project->dir_output.'/temp'; diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php index f1502d8ee9b..226a08d8c21 100644 --- a/htdocs/projet/tasks.php +++ b/htdocs/projet/tasks.php @@ -437,7 +437,7 @@ if ($action == 'create') { } $help_url = "EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos"; -llxHeader("", $title, $help_url); +llxHeader("", $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-card_tasks'); $arrayofselected = is_array($toselect) ? $toselect : array(); diff --git a/htdocs/projet/tasks/comment.php b/htdocs/projet/tasks/comment.php index 6251418aef5..0dcf592b3a6 100644 --- a/htdocs/projet/tasks/comment.php +++ b/htdocs/projet/tasks/comment.php @@ -89,7 +89,7 @@ restrictedArea($user, 'projet', $object->fk_project, 'projet&project'); * View */ -llxHeader('', $langs->trans("CommentPage")); +llxHeader('', $langs->trans("CommentPage"), '', '', 0, 0, '', '', '', 'mod-project project-tasks page-task_comment'); $form = new Form($db); $formother = new FormOther($db); diff --git a/htdocs/projet/tasks/contact.php b/htdocs/projet/tasks/contact.php index fb4d8d769f7..7358dc453ea 100644 --- a/htdocs/projet/tasks/contact.php +++ b/htdocs/projet/tasks/contact.php @@ -153,7 +153,7 @@ if (!empty($withproject)) { } $help_url = ''; -llxHeader('', $title, $help_url); +llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-project project-tasks page-task_contact'); /* *************************************************************************** */ diff --git a/htdocs/projet/tasks/document.php b/htdocs/projet/tasks/document.php index 7507cafa4b3..9e54b0c1f97 100644 --- a/htdocs/projet/tasks/document.php +++ b/htdocs/projet/tasks/document.php @@ -128,7 +128,7 @@ if (!empty($withproject)) { } $help_url = ''; -llxHeader('', $title, $help_url); +llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-project project-tasks page-task_document'); if ($object->id > 0) { $projectstatic->fetch_thirdparty(); diff --git a/htdocs/projet/tasks/list.php b/htdocs/projet/tasks/list.php index e13ba57f2e5..e12bce3385c 100644 --- a/htdocs/projet/tasks/list.php +++ b/htdocs/projet/tasks/list.php @@ -596,7 +596,7 @@ if ($num == 1 && getDolGlobalString('MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && $s // Output page // -------------------------------------------------------------------- -llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll +llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist mod-project project-tasks page-list'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll $arrayofselected = is_array($toselect) ? $toselect : array(); diff --git a/htdocs/projet/tasks/note.php b/htdocs/projet/tasks/note.php index 92538636bc3..6b440e40a63 100644 --- a/htdocs/projet/tasks/note.php +++ b/htdocs/projet/tasks/note.php @@ -122,7 +122,7 @@ if (!empty($withproject)) { } $help_url = ''; -llxHeader('', $title, $help_url); +llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-project project-tasks page-task_note'); if ($object->id > 0) { $userWrite = $projectstatic->restrictedProjectArea($user, 'write'); diff --git a/htdocs/projet/tasks/stats/index.php b/htdocs/projet/tasks/stats/index.php index f771bb62326..fc6bdc33d97 100644 --- a/htdocs/projet/tasks/stats/index.php +++ b/htdocs/projet/tasks/stats/index.php @@ -62,7 +62,7 @@ $form = new Form($db); $includeuserlist = array(); -llxHeader('', $langs->trans('Tasks')); +llxHeader('', $langs->trans('Tasks'), '', '', 0, 0, '', '', '', 'mod-project project-tasks page-stats'); $title = $langs->trans("TasksStatistics"); $dir = $conf->project->dir_output.'/temp'; diff --git a/htdocs/projet/tasks/task.php b/htdocs/projet/tasks/task.php index 42baa45edc0..617c6c263a0 100644 --- a/htdocs/projet/tasks/task.php +++ b/htdocs/projet/tasks/task.php @@ -264,7 +264,7 @@ if (!empty($withproject)) { } $help_url = ''; -llxHeader('', $title, $help_url); +llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-project project-tasks page-task'); if ($id > 0 || !empty($ref)) { diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index e4c7ae9f1c4..6d4190a85a2 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -885,7 +885,7 @@ if (!empty($withproject)) { } $help_url = ''; -llxHeader('', $title, $help_url); +llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-project project-tasks page-task_time'); if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser > 0) { /*