Fix: Wrong order

This commit is contained in:
Laurent Destailleur 2009-08-10 17:02:47 +00:00
parent f3bd93b425
commit 17048fbc32

View File

@ -291,6 +291,7 @@ function PLines(&$inc, $parent, &$lines, &$level, $var, $showproject=1, &$taskro
{ {
print "<tr ".$bc[$var].">\n"; print "<tr ".$bc[$var].">\n";
// Ref of task
print '<td>'; print '<td>';
if ($showlineingray) if ($showlineingray)
{ {
@ -304,18 +305,20 @@ function PLines(&$inc, $parent, &$lines, &$level, $var, $showproject=1, &$taskro
} }
print '</td>'; print '</td>';
// Title of task
print "<td>"; print "<td>";
if ($showlineingray) print '<i>'; if ($showlineingray) print '<i>';
else print '<a href="task.php?id='.$lines[$i]->id.'">'; else print '<a href="task.php?id='.$lines[$i]->id.'">';
for ($k = 0 ; $k < $level ; $k++) for ($k = 0 ; $k < $level ; $k++)
{ {
print "&nbsp;&nbsp;&nbsp;"; print "&nbsp; &nbsp; &nbsp;";
} }
print $lines[$i]->title; print $lines[$i]->title;
if ($showlineingray) print '</i>'; if ($showlineingray) print '</i>';
else print '</a>'; else print '</a>';
print "</td>\n"; print "</td>\n";
// Project
if ($showproject) if ($showproject)
{ {
print "<td>"; print "<td>";