/[dolibarr]/dolibarr/htdocs/projet/tasks/mytasks.php
ViewVC logotype

Diff of /dolibarr/htdocs/projet/tasks/mytasks.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by rodolphe, Mon Aug 22 09:16:43 2005 UTC revision 1.3 by rodolphe, Mon Aug 22 09:35:31 2005 UTC
# Line 46  Function PLines(&$inc, $parent, $lines, Line 46  Function PLines(&$inc, $parent, $lines,
46        if ($lines[$i][1] == $parent)        if ($lines[$i][1] == $parent)
47          {          {
48            print "<tr $bc[$var]>\n<td>";            print "<tr $bc[$var]>\n<td>";
49            print $lines[$i][4].'</td><td>';            print '<a href="fiche.php?id='.$lines[$i][5].'">'.$lines[$i][4]."</a></td><td>\n";
50    
51            for ($k = 0 ; $k < $level ; $k++)            for ($k = 0 ; $k < $level ; $k++)
52              {              {
# Line 60  Function PLines(&$inc, $parent, $lines, Line 60  Function PLines(&$inc, $parent, $lines,
60            $minutes = substr("00"."$minutes", -2);            $minutes = substr("00"."$minutes", -2);
61    
62            print '<td align="right">'.$heure."&nbsp;h&nbsp;".$minutes."</td>\n";            print '<td align="right">'.$heure."&nbsp;h&nbsp;".$minutes."</td>\n";
           print '<td><input size="4" type="text" class="flat" name="task'.$lines[$i][2].'" value="">';  
           print '&nbsp;<input type="submit" class="flat" value="'.$langs->trans("Save").'"></td>';  
63            print "</tr>\n";            print "</tr>\n";
64            $inc++;            $inc++;
65            $level++;            $level++;
# Line 84  llxHeader("",$langs->trans("Mytasks"),"P Line 82  llxHeader("",$langs->trans("Mytasks"),"P
82    
83  $h=0;  $h=0;
84  $head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;  $head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
85  $head[$h][1] = $langs->trans("Myprojects");  $head[$h][1] = $langs->trans("Mytasks");
86  $h++;  $h++;
87    
88  dolibarr_fiche_head($head,  $hselected, $langs->trans("Mytasks"));  dolibarr_fiche_head($head,  $hselected, $langs->trans("Mytasks"));
89    
90  /* Liste des tāches */  /* Liste des tāches */
91    
92  $sql = "SELECT t.rowid, t.title, t.fk_task_parent, t.duration_effective, p.title as ptitle";  $sql = "SELECT t.rowid, t.title, t.fk_task_parent, t.duration_effective";
93    $sql .= " , p.rowid as prowid, p.title as ptitle";
94  $sql .= " FROM ".MAIN_DB_PREFIX."projet_task as t";  $sql .= " FROM ".MAIN_DB_PREFIX."projet_task as t";
95  $sql .= " , ".MAIN_DB_PREFIX."projet_task_actors as a";  $sql .= " , ".MAIN_DB_PREFIX."projet_task_actors as a";
96  $sql .= " , ".MAIN_DB_PREFIX."projet as p";  $sql .= " , ".MAIN_DB_PREFIX."projet as p";
# Line 114  if ($resql) Line 113  if ($resql)
113        $tasks[$i][2] = $obj->rowid;        $tasks[$i][2] = $obj->rowid;
114        $tasks[$i][3] = $obj->duration_effective;        $tasks[$i][3] = $obj->duration_effective;
115        $tasks[$i][4] = $obj->ptitle;        $tasks[$i][4] = $obj->ptitle;
116          $tasks[$i][5] = $obj->prowid;
117        $i++;        $i++;
118      }      }
119    $db->free();    $db->free();
# Line 123  else Line 123  else
123    dolibarr_print_error($db);    dolibarr_print_error($db);
124  }  }
125    
 print '<form method="POST" action="fiche.php?id='.$projet->id.'">';  
 print '<input type="hidden" name="action" value="addtime">';  
126  print '<table class="noborder" width="100%">';  print '<table class="noborder" width="100%">';
127  print '<tr class="liste_titre">';  print '<tr class="liste_titre">';
128  print '<td>'.$langs->trans("Project").'</td>';  print '<td>'.$langs->trans("Project").'</td>';
# Line 135  print "</tr>\n"; Line 133  print "</tr>\n";
133  $var=true;  $var=true;
134    
135  PLines($j, 0, $tasks, $level, $var);  PLines($j, 0, $tasks, $level, $var);
 print '</form>';  
136    
137  print "</table>";      print "</table>";    
138  print '</div>';  print '</div>';

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26