';
- print '| '.$langs->trans("NewTask").' | ';
- print '';
+ print ' |
| '.$langs->trans("Label").' | ';
+ print '';
print ' |
';
print '| '.$langs->trans("ChildOfTask").' | ';
- print $htmlother->selectProjectTasks($projet->id, 'task_parent', $user->admin?0:1, 0, 1);
+ print $htmlother->selectProjectTasks($project->id, 'task_parent', $user->admin?0:1, 0, 1);
print ' |
';
print '| '.$langs->trans("AffectedTo").' | ';
print $form->select_users($user->id,'userid',1);
print ' |
';
+
+ // Date start
+ print '| '.$langs->trans("DateStart").' | ';
+ print $form->select_date('','dateo');
+ print ' |
';
+
+ // Date end
+ print '| '.$langs->trans("DateEnd").' | ';
+ print $form->select_date(-1,'datee');
+ print ' |
';
+
+ // Description
+ print '| '.$langs->trans("Description").' | ';
+ print '';
+ print '';
+ print ' |
';
+
+ $tasksarray=$task->getTasksArray(0, $user, 1);
- $project=new Project($db);
- $tasksarray=$project->getTasksArray(0, $user, 1);
print '| ';
if (sizeof($tasksarray))
{
@@ -187,12 +209,12 @@ else
$tab='tasks';
if ($_REQUEST["mode"]=='mine') $tab='mytasks';
- $head=project_prepare_head($projet);
+ $head=project_prepare_head($project);
dol_fiche_head($head, $tab, $langs->trans("Project"),0,'project');
$param=($_REQUEST["mode"]=='mine'?'&mode=mine':'');
- print ' |
';
// Label
- print '| '.$langs->trans("Label").' | '.$task->title.' |
';
+ print '| '.$langs->trans("Label").' | '.$task->label.' |
';
- print '| '.$langs->trans("Project").' | ';
+ print ' |
| '.$langs->trans("Project").' | ';
print $projet->getNomUrl(1);
print ' |
';
- print ''.$langs->trans("Company").' | ';
+ print ' | '.$langs->trans("Company").' | ';
if ($projet->societe->id) print $projet->societe->getNomUrl(1);
else print ' ';
print ' | ';
+
+ // Description
+ print ''.$langs->trans("Description").' | ';
+ print nl2br($task->description);
+ print ' | ';
/* List of time spent */
diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php
index e5d138f818b..e62e824f784 100644
--- a/htdocs/projet/tasks/time.php
+++ b/htdocs/projet/tasks/time.php
@@ -81,7 +81,7 @@ if ($_GET["id"] > 0)
print '';
// Label
- print '| '.$langs->trans("Label").' | '.$task->title.' |
';
+ print '| '.$langs->trans("Label").' | '.$task->label.' |
';
print '| '.$langs->trans("Project").' | ';
print $projet->getNomUrl(1);
diff --git a/htdocs/projet/tasks/who.php b/htdocs/projet/tasks/who.php
index 36d20f02e4b..51489ff55c8 100644
--- a/htdocs/projet/tasks/who.php
+++ b/htdocs/projet/tasks/who.php
@@ -1,6 +1,7 @@
* Copyright (C) 2006-2009 Laurent Destailleur
+ * Copyright (C) 2010 Regis Houssin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,9 +19,9 @@
*/
/**
- * \file htdocs/projet/tasks/task.php
- * \ingroup projet
- * \brief Fiche t�ches d'un projet
+ * \file htdocs/projet/tasks/who.php
+ * \ingroup project
+ * \brief Fiche taches d'un projet
* \version $Id$
*/
@@ -79,7 +80,7 @@ if ($_GET["id"] > 0)
print ' |
';
// Label
- print '| '.$langs->trans("Label").' | '.$task->title.' |
';
+ print '| '.$langs->trans("Label").' | '.$task->label.' |
';
print '| '.$langs->trans("Project").' | ';
print $projet->getNomUrl(1);
@@ -93,13 +94,14 @@ if ($_GET["id"] > 0)
/* Liste des affectations */
- $sql = "SELECT t.title, t.duration_effective, t.fk_task_parent, t.statut,";
+ $sql = "SELECT t.label, t.duration_effective, t.fk_task_parent, t.fk_statut,";
$sql.= " u.login, u.rowid";
$sql.= " FROM ".MAIN_DB_PREFIX."projet_task as t,";
$sql.= " ".MAIN_DB_PREFIX."projet_task_actors as ta,";
$sql.= " ".MAIN_DB_PREFIX."user as u";
$sql.= " WHERE t.rowid =".$task->id;
- $sql.= " AND t.rowid = ta.fk_projet_task AND ta.fk_user = u.rowid";
+ $sql.= " AND t.rowid = ta.fk_projet_task";
+ $sql.= " AND ta.fk_user = u.rowid";
$lines=array();
$var=true;
|