mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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:
parent
d138a2c4db
commit
c1270ac2f5
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = '';
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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>';
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
|
||||
/* *************************************************************************** */
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user