gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/www/pm gantt.php, 1.10, 1.11 ganttpage.php, 1.5,


From: tom
Subject: [Gforge-commits] gforge/www/pm gantt.php, 1.10, 1.11 ganttpage.php, 1.5, 1.6
Date: Tue, 03 Feb 2004 11:23:39 -0600

Update of /cvsroot/gforge/gforge/www/pm
In directory db.perdue.net:/tmp/cvs-serv25167/www/pm

Modified Files:
        gantt.php ganttpage.php 
Log Message:
Applied patch [ #669 ] Made the Gantt chart assignee and status comboxes working

Index: gantt.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/pm/gantt.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- gantt.php   25 Oct 2003 22:34:35 -0000      1.10
+++ gantt.php   3 Feb 2004 17:23:37 -0000       1.11
@@ -38,7 +38,7 @@
        exit_error('Error',$ptf->getErrorMessage());
 }
 
-$ptf->setup($offset,$_order,$max_rows,$set,$_assigned_to,$_status,$_category_id);
+$ptf->setup($offset,$_order,$max_rows,'custom',$_assigned_to,$_status,$_category_id);
 if ($ptf->isError()) {
        exit_error('Error',$ptf->getErrorMessage());
 }
@@ -110,7 +110,6 @@
 $todayline ->SetDayOffset (0.5);
 $graph->Add( $todayline);
 
-
 // Display the Gantt chart
 $graph->Stroke();
 

Index: ganttpage.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/pm/ganttpage.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ganttpage.php       6 Apr 2003 21:24:03 -0000       1.5
+++ ganttpage.php       3 Feb 2004 17:23:37 -0000       1.6
@@ -46,6 +46,9 @@
 $tech_name_arr=util_result_column_to_array($res_tech,1);
 $tech_name_arr[]=$Language->getText('pm','tech_any');
 
+if ( empty($_assigned_to) ) {
+       $_assigned_to='0';
+}
 $tech_box=html_build_select_box_from_arrays 
($tech_id_arr,$tech_name_arr,'_assigned_to',$_assigned_to,true,$Language->getText('pm','unassigned'));
 
 /*
@@ -85,7 +88,7 @@
 $dispres_title_arr[]=$Language->getText('pm_ganttpage','weeks');
 $dispres_title_arr[]=$Language->getText('pm_ganttpage','days');
 if (!$_resolution) {
-       $_resolution='Weeks';
+       $_resolution=$Language->getText('pm_ganttpage','months');
 }
 $dispres_box=html_build_select_box_from_arrays 
($dispres_title_arr,$dispres_title_arr,'_resolution',$_resolution,false);
 
@@ -104,14 +107,18 @@
 $size_title_arr[]='1024 x 768';
 $size_title_arr[]='1600 x 1200';
 if (!$_size) {
-       $_size='800';
+       $_size='1600';
 }
 $size_box=html_build_select_box_from_arrays 
($size_col_arr,$size_title_arr,'_size',$_size,false);
+
+if (!$_status) {
+       $_status='100';
+}
+
 /*
        Show the new pop-up boxes to select assigned to and/or status
 */
 echo ' <form action="'. $PHP_SELF 
.'?group_id='.$group_id.'&amp;group_project_id='.$group_project_id.'&amp;func=ganttpage"
 method="post">
-       <input type="hidden" name="set" value="custom" />
        <table width="10%" border="0">
        <tr>
                <td><font 
size="-1">'.$Language->getText('pm_ganttpage','assignee').':<br />'. $tech_box 
.'</font></td>
@@ -127,6 +134,7 @@
                '?func=ganttchart&amp;group_id='.$group_id.
                '&amp;group_project_id='.$group_project_id.
                '&amp;_assigned_to='.$_assigned_to.
+               '&amp;_status='.$_status.
                '&amp;_order='.$_order.
                '&amp;_resolution='.$_resolution.
                '&amp;_category_id='.$_category_id.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]