[evolvis-commits] r14587: Gantt minor changes.
mirabilos at evolvis.org
mirabilos at evolvis.org
Mon Feb 28 04:36:50 CET 2011
Author: mirabilos
Date: 2011-02-28 04:36:49 +0100 (Mon, 28 Feb 2011)
New Revision: 14587
Modified:
trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/gantt.php
Log:
Gantt minor changes.
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/gantt.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/gantt.php 2011-02-28 03:36:44 UTC (rev 14586)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/pm/gantt.php 2011-02-28 03:36:49 UTC (rev 14587)
@@ -18,12 +18,12 @@
$offset = getIntFromRequest('offset');
$_assigned_to = getIntFromRequest('_assigned_to');
-$_status = getStringFromRequest('_status');
+$_status = getIntFromRequest('_status');
$_order = getStringFromRequest('_order');
$_resolution = getStringFromRequest('_resolution');
$_category_id = getIntFromRequest('_category_id');
$_size = getIntFromRequest('_size');
-$max_rows = getIntFromRequest('max_rows');
+$max_rows = getIntFromRequest('max_rows',50);
$ptf->setup($offset,$_order,$max_rows,'custom',$_assigned_to,$_status,$_category_id);
if ($ptf->isError()) {
@@ -63,8 +63,10 @@
$graph->ShowHeaders( GANTT_HDAY | GANTT_HWEEK | GANTT_HMONTH);
} elseif ($_resolution == 'Weeks') {
$graph->ShowHeaders( GANTT_HWEEK | GANTT_HMONTH);
+} elseif ($_resolution == 'Months') {
+ $graph->ShowHeaders( GANTT_HMONTH | GANTT_HYEAR);
} else {
- $graph->ShowHeaders( GANTT_HMONTH);
+ $graph->ShowHeaders( GANTT_HYEAR);
}
// Instead of week number show the date for the first day in the week
@@ -79,7 +81,7 @@
// Use the short name of the month together with a 2 digit year
// on the month scale
-$graph->scale->month->SetStyle( MONTHSTYLE_SHORTNAMEYEAR2);
+$graph->scale->month->SetStyle( MONTHSTYLE_SHORTNAME);
$rows=count($pt_arr);
More information about the evolvis-commits
mailing list