* Project Statistics Page
* Copyright 2003 GForge, LLC
*
- * @version $Id$
*/
require_once('../../env.inc.php');
-require_once('pre.php');
-require_once('common/reporting/report_utils.php');
-require_once('common/reporting/Report.class.php');
+require_once $gfwww.'include/pre.php';
+require_once $gfcommon.'reporting/report_utils.php';
+require_once $gfcommon.'reporting/Report.class.php';
$group_id = getIntFromRequest('group_id');
if ( !$group_id ) {
exit_no_group();
}
+$group =& group_get_object($group_id);
+if (!$group || !is_object($group)) {
+ exit_error('Error','Could Not Get Group');
+} elseif ($group->isError()) {
+ exit_error('Error',$group->getErrorMessage());
+}
+
$report=new Report();
if ($report->isError()) {
exit_error($report->getErrorMessage());
$start = $z[count($z)-1];
}
-site_project_header(array('title'=>_('Project Activity').' '.$groupname,'group'=>$group_id,'toptab'=>'home'));
+site_project_header(array('title'=>_('Project Activity').' '.$group->getPublicName(),'group'=>$group_id,'toptab'=>'home'));
-if ($area && !is_numeric($area)) { $area = 1; }
if ($SPAN && !is_numeric($SPAN)) { $SPAN = 1; }
if ($start && !is_numeric($start)) { $start = false; }
if ($end && !is_numeric($end)) { $end = false; }
<form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="get">
<input type="hidden" name="group_id" value="<?php echo $group_id; ?>">
<table><tr>
-<td><strong><?php echo _('Areas'); ?>:</strong><br /><?php echo report_area_box('area',$area); ?></td>
+<td><strong><?php echo _('Areas'); ?>:</strong><br /><?php echo report_area_box('area',$area,$group); ?></td>
<td><strong><?php echo _('Type'); ?>:</strong><br /><?php echo report_span_box('SPAN',$SPAN); ?></td>
<td><strong><?php echo _('Start'); ?>:</strong><br /><?php echo report_months_box($report, 'start', $start); ?></td>
<td><strong><?php echo _('End'); ?>:</strong><br /><?php echo report_months_box($report, 'end', $end); ?></td>