3 * Project Management Facility
5 * Copyright 1999/2000, Sourceforge.net Tim Perdue
6 * Copyright 2002 GForge, LLC, Tim Perdue
7 * Copyright 2010, FusionForge Team
8 * http://fusionforge.org
10 * This file is part of FusionForge. FusionForge is free software;
11 * you can redistribute it and/or modify it under the terms of the
12 * GNU General Public License as published by the Free Software
13 * Foundation; either version 2 of the Licence, or (at your option)
16 * FusionForge is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License along
22 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 if (getStringFromRequest('commentsort') == 'anti') {
27 $sort_comments_chronologically = false;
29 $sort_comments_chronologically = true;
32 pm_header(array('title'=>_('Task Detail'),'group_project_id'=>$group_project_id));
36 <table border="0" width="100%">
39 <td><strong><?php echo _('Submitted by') ?>:</strong><br /><?php echo $pt->getSubmittedRealName(); ?> (<?php echo $pt->getSubmittedUnixName(); ?>)</td>
42 <strong><a href="<?php echo util_make_url("/pm/t_follow.php/" . $project_task_id); ?>">Permalink</a>:</strong><br />
43 <?php echo util_make_url("/pm/t_follow.php/" . $project_task_id); ?>
49 <strong><?php echo _('Category') ?></strong><br />
50 <?php echo $pt->getCategoryName(); ?>
54 <strong>Task Detail Information (JSON):</strong><br />
55 <a href="<?php echo util_make_url("/pm/t_lookup.php?tid=" . $project_task_id); ?>">application/json</a>
57 <a href="<?php echo util_make_url("/pm/t_lookup.php?text=1&tid=" . $project_task_id); ?>">text/plain</a>
63 <strong><?php echo _('Percent Complete') ?>:</strong><br />
64 <?php echo $pt->getPercentComplete(); ?>%
68 <strong><?php echo _('Priority') ?>:</strong><br />
69 <?php echo $pt->getPriority(); ?>
73 <?php echo util_make_link("/export/rssAboTask.php?tid=" .
74 $project_task_id, html_image('ic/rss.png',
75 16, 16, array('border' => '0')) . " " .
76 _('Subscribe to task'));
83 <strong><?php echo _('Start Date') ?>:</strong><br />
84 <?php echo date(_('Y-m-d'), $pt->getStartDate() ); ?>
87 <strong><?php echo _('End Date') ?>:</strong><br />
88 <?php echo date(_('Y-m-d'), $pt->getEndDate() ); ?>
94 <strong><?php echo _('Task Summary') ?>:</strong><br />
95 <?php echo $pt->getSummary(); ?>
101 <strong><?php echo _('Original Comment') ?>:</strong><br />
103 $sanitizer = new TextSanitizer();
104 $body = $sanitizer->SanitizeHtml($pt->getDetails());
105 if (strpos($body,'<') === false) {
106 echo nl2br($pt->getDetails());
118 Get the list of ids this is assigned to and convert to array
119 to pass into multiple select box
122 $result2=db_query_params ('SELECT users.user_name AS User_Name FROM users,project_assigned_to
123 WHERE users.user_id=project_assigned_to.assigned_to_id AND project_task_id=$1',
124 array($project_task_id));
125 ShowResultSet($result2,_('Assigned to'), false, false);
131 Get the list of ids this is dependent on and convert to array
132 to pass into multiple select box
134 $result2=db_query_params ('SELECT project_task.summary FROM project_dependencies,project_task
135 WHERE is_dependent_on_task_id=project_task.project_task_id
136 AND project_dependencies.project_task_id=$1',
137 array($project_task_id));
138 ShowResultSet($result2,_('Dependent on task'), false, false);
145 <strong><?php echo _('Hours') ?></strong><br />
146 <?php echo $pt->getHours(); ?>
150 <strong><?php echo _('Status') ?></strong><br />
152 echo $pt->getStatusName();
159 <?php echo $pt->showDependentTasks(); ?>
165 <?php echo $pt->showRelatedArtifacts(); ?>
171 <?php echo $pt->showMessages($sort_comments_chronologically, "/pm/task.php?func=detailtask&project_task_id=$project_task_id&group_id=$group_id&group_project_id=$group_project_id"); ?>
175 $hookParams['task_id']=$project_task_id;
176 plugin_hook("task_extra_detail",$hookParams);
180 <?php echo $pt->showHistory(); ?>
191 // c-file-style: "bsd"