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 <eldy@destailleur.fr>
This commit is contained in:
Anthony Damhet 2024-07-13 18:10:40 +02:00 committed by GitHub
parent d138a2c4db
commit c1270ac2f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
31 changed files with 31 additions and 32 deletions

View File

@ -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();

View File

@ -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 = '';

View File

@ -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

View File

@ -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');

View File

@ -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');

View File

@ -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');

View File

@ -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);

View File

@ -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 = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
print load_fiche_titre($langs->trans("ProjectsSetup"), $linkback, 'title_setup');

View File

@ -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 = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
print load_fiche_titre($langs->trans("ProjectsSetup"), $linkback, 'title_setup');

View File

@ -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 = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';

View File

@ -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&oacute;dulo_Proyectos";
llxHeader("", $title, $help_url);
llxHeader("", $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-card_agenda');
$head = project_prepare_head($object);

View File

@ -579,7 +579,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', get
$help_url = "EN:Module_Projects|FR:Module_Projets|ES:M&oacute;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

View File

@ -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);

View File

@ -310,7 +310,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', get
$help_url = 'EN:Module_Projects|FR:Module_Projets|ES:M&oacute;dulo_Proyectos|DE:Modul_Projekte';
llxHeader('', $title, $help_url);
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-card_contact');

View File

@ -106,7 +106,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', get
$help_url = 'EN:Module_Projects|FR:Module_Projets|ES:M&oacute;dulo_Proyectos|DE:Modul_Projekte';
llxHeader('', $title, $help_url);
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-card_document');
$form = new Form($db);

View File

@ -204,7 +204,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', get
$help_url = 'EN:Module_Projects|FR:Module_Projets|ES:M&oacute;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);

View File

@ -91,7 +91,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', get
}
$help_url = "EN:Module_Projects|FR:Module_Projets|ES:M&oacute;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

View File

@ -101,7 +101,7 @@ $title = $langs->trans('ProjectsArea');
$help_url = 'EN:Module_Projects|FR:Module_Projets|ES:M&oacute;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");

View File

@ -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();

View File

@ -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&oacute;dulo_Proyectos";
llxHeader("", $title, $help_url);
llxHeader("", $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-card_messaging');
$head = project_prepare_head($object);

View File

@ -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&oacute;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);

View File

@ -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';

View File

@ -437,7 +437,7 @@ if ($action == 'create') {
}
$help_url = "EN:Module_Projects|FR:Module_Projets|ES:M&oacute;dulo_Proyectos";
llxHeader("", $title, $help_url);
llxHeader("", $title, $help_url, '', 0, 0, '', '', '', 'mod-project page-card_tasks');
$arrayofselected = is_array($toselect) ? $toselect : array();

View File

@ -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);

View File

@ -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');
/* *************************************************************************** */

View File

@ -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();

View File

@ -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();

View File

@ -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');

View File

@ -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';

View File

@ -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)) {

View File

@ -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) {
/*