<th><?php echo $lang['common_project']; ?> </th> <th><?php echo $projectInst->name; ?> </th> </tr><tr> <th><?php echo $lang['tasks_depends']; ?> </th> <th>/<?php if ($taskInst->mountId != "0") { echo "<a href=\"" . $toolInst->encodeUrl("index.php?content=taskdetails.php&view=details&taskid=" . $taskInst->mountId) . "\" title=\"" . $lang['tasks_parentTask'] . "\">" . implode("/", $taskInst->treeName($taskInst->mountId)) . "</a>\n"; } ?> </th> </tr> <?php $childs = $taskInst->childs(); if (count($childs) > 0) { echo "<tr><th valign=\"top\" rowspan=\"" . count($childs) . "\">child tasks</th><th>\n"; $childTask = new task(current($childs)); echo "<a href=\"" . $toolInst->encodeUrl("index.php?content=taskdetails.php&view=details&taskid=" . $childTask->id) . "\" title=\"" . $lang['tasks_childTask'] . " 1\">" . substr($childTask->subject, 0, 40) . "</a></th></tr>\n"; next($childs); $i = 2; while ($element = current($childs)) { $childTask = new task(current($childs)); echo "<tr><th><a href=\"" . $toolInst->encodeUrl("index.php?content=taskdetails.php&view=details&taskid=" . $childTask->id) . "\" title=\"" . $lang['tasks_childTask'] . " " . $i . "\">" . substr($childTask->subject, 0, 40) . "</a></th></tr>\n";
echo "<option value=\"" . $element . "\">/ " . implode(" / ", $taskInst->treeName($element)) . "\n"; } } next($list); } if (!in_array("0", $seen)) { echo "<option value=\"0\"> /\n"; } } else { ?> <option value="0">/<?php $taskInst2 = new task(); $taskInst2->filterProjectId = $projectMount; $list = $taskInst2->getList(); while ($element = current($list)) { echo "<option value=\"" . $element . "\">/ " . implode(" / ", $taskInst2->treeName($element)) . "\n"; next($list); } } ?> </select> </td> </tr><tr> <td><?php echo $lang['common_subject']; ?> : </td> <td><input type="text" name="subject" value="<?php echo $taskInst->subject; ?> " size="<?php