Work on gantt view.
This commit is contained in:
parent
ba908ed743
commit
8044300ef7
@ -78,6 +78,7 @@ DoNotShowMyTasksOnly=See also tasks i am not affected to
|
|||||||
ShowMyTasksOnly=View only tasks i am affected to
|
ShowMyTasksOnly=View only tasks i am affected to
|
||||||
TaskRessourceLinks=Ressources
|
TaskRessourceLinks=Ressources
|
||||||
ProjectsDedicatedToThisThirdParty=Projects dedicated to this third party
|
ProjectsDedicatedToThisThirdParty=Projects dedicated to this third party
|
||||||
|
NoTasks=No tasks for this project
|
||||||
##### Types de contacts #####
|
##### Types de contacts #####
|
||||||
TypeContact_project_internal_PROJECTLEADER=Project leader
|
TypeContact_project_internal_PROJECTLEADER=Project leader
|
||||||
TypeContact_project_external_PROJECTLEADER=Project leader
|
TypeContact_project_external_PROJECTLEADER=Project leader
|
||||||
|
|||||||
@ -78,6 +78,7 @@ DoNotShowMyTasksOnly=Voir aussi les taches qui ne me sont pas affectées
|
|||||||
ShowMyTasksOnly=Ne voir que les taches qui me sont affectées
|
ShowMyTasksOnly=Ne voir que les taches qui me sont affectées
|
||||||
TaskRessourceLinks=Affectation ressources
|
TaskRessourceLinks=Affectation ressources
|
||||||
ProjectsDedicatedToThisThirdParty=Projets dédiés à ce tiers
|
ProjectsDedicatedToThisThirdParty=Projets dédiés à ce tiers
|
||||||
|
NoTasks=Aucune tache pour ce projet
|
||||||
##### Types de contacts #####
|
##### Types de contacts #####
|
||||||
TypeContact_project_internal_PROJECTLEADER=Chef de projet
|
TypeContact_project_internal_PROJECTLEADER=Chef de projet
|
||||||
TypeContact_project_external_PROJECTLEADER=Chef de projet
|
TypeContact_project_external_PROJECTLEADER=Chef de projet
|
||||||
|
|||||||
@ -157,7 +157,8 @@ if ($_GET["action"] == 'deleteline' && $user->rights->projet->creer)
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
llxHeader('', $langs->trans("Project"), "Project");
|
$help_url="EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos";
|
||||||
|
llxHeader('', $langs->trans("Project"), $help_url);
|
||||||
|
|
||||||
$html = new Form($db);
|
$html = new Form($db);
|
||||||
$formcompany= new FormCompany($db);
|
$formcompany= new FormCompany($db);
|
||||||
|
|||||||
@ -73,7 +73,8 @@ $result = restrictedArea($user, 'projet', $projectid);
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
llxHeader("",$langs->trans("Referers"),"EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos");
|
$help_url="EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos";
|
||||||
|
llxHeader("",$langs->trans("Referers"),$help_url);
|
||||||
|
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
|
|
||||||
|
|||||||
@ -179,6 +179,9 @@ $tasksrole=($_REQUEST["mode"]=='mine' ? $task->getUserRolesForProjectsOrTasks(0,
|
|||||||
//var_dump($tasksrole);
|
//var_dump($tasksrole);
|
||||||
|
|
||||||
|
|
||||||
|
if (sizeof($tasksarray)>0)
|
||||||
|
{
|
||||||
|
|
||||||
// Show Gant diagram from $taskarray using JSGantt
|
// Show Gant diagram from $taskarray using JSGantt
|
||||||
|
|
||||||
$dateformat=$langs->trans("FormatDateShort");
|
$dateformat=$langs->trans("FormatDateShort");
|
||||||
@ -206,10 +209,14 @@ foreach($tasksarray as $key => $val)
|
|||||||
//var_dump($tasks);
|
//var_dump($tasks);
|
||||||
|
|
||||||
print "\n";
|
print "\n";
|
||||||
print '<div id="tabs">'."\n";
|
print '<div id="tabs" style="border: 1px solid #ACACAC;">'."\n";
|
||||||
include_once(DOL_DOCUMENT_ROOT.'/projet/ganttchart.php');
|
include_once(DOL_DOCUMENT_ROOT.'/projet/ganttchart.php');
|
||||||
print '</div>'."\n";
|
print '</div>'."\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $langs->trans("NoTasks");
|
||||||
|
}
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
|
|||||||
@ -309,9 +309,16 @@ else
|
|||||||
print '<td align="right">'.$langs->trans("Progress").'</td>';
|
print '<td align="right">'.$langs->trans("Progress").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("TimeSpent").'</td>';
|
print '<td align="right">'.$langs->trans("TimeSpent").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
if (sizeof($tasksarray) > 0)
|
||||||
|
{
|
||||||
// Show all lines in taskarray (recursive function to go down on tree)
|
// Show all lines in taskarray (recursive function to go down on tree)
|
||||||
$j=0;
|
$j=0;
|
||||||
$nboftaskshown=PLines($j, 0, $tasksarray, $level, true, 0, $tasksrole);
|
$nboftaskshown=PLines($j, 0, $tasksarray, $level, true, 0, $tasksrole);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<tr><td colspan="'.($projectstatic->id?"5":"4").'">'.$langs->trans("NoTasks").'</td></tr>';
|
||||||
|
}
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user