[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] %s
From: |
Christian Bayle,,, |
Subject: |
[Gforge-commits] %s |
Date: |
Thu, 20 Jan 2005 00:33:39 +0000 |
Update of /cvsroot/gforge/gforge/www/pm
In directory db.perdue.net:/tmp/cvs-serv18912/www/pm
Modified Files:
browse_task.php
Log Message:
added 'Nice' Patch to add Detail view to Task Manager [#1025]
proposed by Steel City Phantom,
Index: browse_task.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/pm/browse_task.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** browse_task.php 23 Nov 2004 16:19:03 -0000 1.20
--- browse_task.php 20 Jan 2005 00:33:37 -0000 1.21
***************
*** 31,40 ****
}
!
$ptf->setup($offset,$_order,$max_rows,$set,$_assigned_to,$_status,$_category_id);
if ($ptf->isError()) {
exit_error('Error',$ptf->getErrorMessage());
}
!
! $pt_arr =& $ptf->getTasks();
if ($ptf->isError()) {
exit_error('Error',$ptf->getErrorMessage());
--- 31,39 ----
}
!
$ptf->setup($offset,$_order,$max_rows,$set,$_assigned_to,$_status,$_category_id,$_view);
if ($ptf->isError()) {
exit_error('Error',$ptf->getErrorMessage());
}
! $pt_arr =& $ptf->getTasks(true);
if ($ptf->isError()) {
exit_error('Error',$ptf->getErrorMessage());
***************
*** 45,48 ****
--- 44,48 ----
$_order=$ptf->order;
$_category_id=$ptf->category;
+ $_view=$ptf->view_type;
pm_header(array('title'=>$Language->getText('pm_browsetask','title'),'pagename'=>$pagename,'group_project_id'=>$group_project_id,'sectionvals'=>$g->getPublicName()));
***************
*** 89,92 ****
--- 89,103 ----
/*
+ Creating View array
+ */
+ $view_arr=array();
+ $view_arr[]=$Language->getText('pm','view_type_summary');
+ $view_arr[]=$Language->getText('pm','view_type_detail');
+
+ $order_col_arr=array();
+ $view_col_arr[]='summary';
+ $view_col_arr[]='detail';
+ $view_box=html_build_select_box_from_arrays
($view_col_arr,$view_arr,'_view',$_view,false);
+ /*
Show the new pop-up boxes to select assigned to and/or status
*/
***************
*** 99,102 ****
--- 110,114 ----
<td><font size="-1">'.$Language->getText('pm','category').'<br
/>'. $cat_box .'</font></td>
<td><font
size="-1">'.$Language->getText('pm_modtask','sort_on').'<br />'. $order_box
.'</font></td>
+ <td><font size="-1">'.$Language->getText('pm','view_type').'<br
/>'. $view_box .'</font></td>
<td><font size="-1"><input type="submit" name="submit"
value="'.$Language->getText('pm_browsetask','browse').'" /></font></td>
</tr></table></form><p />';
***************
*** 135,149 ****
for ($i=0; $i < $rows; $i++) {
$url =
"/pm/task.php?func=detailtask&project_task_id=".$pt_arr[$i]->getID()."&group_id=".$group_id."&group_project_id=".$group_project_id;
! echo '
! <tr bgcolor="'.html_get_priority_color(
$pt_arr[$i]->getPriority() ).'">'.
! '<td>'.
! ($IS_ADMIN?'<input type="CHECKBOX"
name="project_task_id_list[]" value="'.
! $pt_arr[$i]->getID() .'"> ':'').
! $pt_arr[$i]->getID() .'</td>'.
! '<td><a href="'.$url.'">'.$pt_arr[$i]->getSummary()
.'</a></td>'.
! '<td>'.date($sys_datefmt, $pt_arr[$i]->getStartDate()
).'</td>'.
! '<td>'. (($now>$pt_arr[$i]->getEndDate() )?'<strong>*
':' ') .
! date($sys_datefmt, $pt_arr[$i]->getEndDate()
).'</strong></td>'.
! '<td>'. $pt_arr[$i]->getPercentComplete()
.'%</td></tr>';
}
--- 147,186 ----
for ($i=0; $i < $rows; $i++) {
$url =
"/pm/task.php?func=detailtask&project_task_id=".$pt_arr[$i]->getID()."&group_id=".$group_id."&group_project_id=".$group_project_id;
!
! if (($_view == "summary")||($_view == "")) //show the summary
view
! {
! echo '
! <tr bgcolor="'.html_get_priority_color(
$pt_arr[$i]->getPriority() ).'">'.
! '<td>'.
! ($IS_ADMIN?'<input type="CHECKBOX"
name="project_task_id_list[]" value="'.
! $pt_arr[$i]->getID() .'"> ':'').
! $pt_arr[$i]->getID() .'</td>'.
! '<td><a
href="'.$url.'">'.$pt_arr[$i]->getSummary() .'</a></td>'.
! '<td>'.date($sys_datefmt,
$pt_arr[$i]->getStartDate() ).'</td>'.
! '<td>'. (($now>$pt_arr[$i]->getEndDate()
)?'<strong>* ':' ') .
! date($sys_datefmt,
$pt_arr[$i]->getEndDate() ).'</strong></td>'.
! '<td>'. $pt_arr[$i]->getPercentComplete()
.'%</td></tr>';
! }
! else if ($_view == "detail") //show the Detail view
! {
! echo '
! <tr bgcolor="'.html_get_priority_color(
$pt_arr[$i]->getPriority() ).'">'.
! '<td>'.
! ($IS_ADMIN?'<input type="CHECKBOX"
name="project_task_id_list[]" value="'.
! $pt_arr[$i]->getID() .'"> ':'').
! $pt_arr[$i]->getID() .'</td>'.
! '<td><a
href="'.$url.'">'.$pt_arr[$i]->getSummary() .'</a></td>'.
! '<td>'.date($sys_datefmt,
$pt_arr[$i]->getStartDate() ).'</td>'.
! '<td>'. (($now>$pt_arr[$i]->getEndDate()
)?'<strong>* ':' ') .
! date($sys_datefmt,
$pt_arr[$i]->getEndDate() ).'</strong></td>'.
! '<td>'. $pt_arr[$i]->getPercentComplete()
.'%</td></tr>';
! echo '
! <tr>'.
! '<td> </td>'.
! '<td colspan="4">';
! echo nl2br( $pt_arr[$i]->getDetails() );
! $pt_arr[$i]->showMessages();
! echo '</td></tr>';
! }
}
- [Gforge-commits] %s, (continued)
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s,
Christian Bayle,,, <=
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19
- [Gforge-commits] %s, Christian Bayle,,,, 2005/01/19