3 * Project Statistics Page
4 * Copyright 2003 GForge, LLC
10 require_once('../../env.inc.php');
11 require_once('pre.php');
12 require_once('common/reporting/report_utils.php');
13 require_once('common/reporting/Report.class.php');
15 $group_id = getIntFromRequest('group_id');
20 $group =& group_get_object($group_id);
21 if (!$group || !is_object($group)) {
22 exit_error('Error','Could Not Get Group');
23 } elseif ($group->isError()) {
24 exit_error('Error',$group->getErrorMessage());
28 if ($report->isError()) {
29 exit_error($report->getErrorMessage());
32 $area = getStringFromRequest('area');
33 $SPAN = getStringFromRequest('SPAN');
34 $start = getStringFromRequest('start');
35 $end = getStringFromRequest('end');
38 $z =& $report->getMonthStartArr();
39 $start = $z[count($z)-1];
42 site_project_header(array('title'=>_('Project Activity').' '.$group->getPublicName(),'group'=>$group_id,'toptab'=>'home'));
44 if ($area && !is_numeric($area)) { $area = 1; }
45 if ($SPAN && !is_numeric($SPAN)) { $SPAN = 1; }
46 if ($start && !is_numeric($start)) { $start = false; }
47 if ($end && !is_numeric($end)) { $end = false; }
50 // BEGIN PAGE CONTENT CODE
53 <h3><?php echo _('Project Activity'); ?></h3>
55 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="get">
56 <input type="hidden" name="group_id" value="<?php echo $group_id; ?>">
58 <td><strong><?php echo _('Areas'); ?>:</strong><br /><?php echo report_area_box('area',$area); ?></td>
59 <td><strong><?php echo _('Type'); ?>:</strong><br /><?php echo report_span_box('SPAN',$SPAN); ?></td>
60 <td><strong><?php echo _('Start'); ?>:</strong><br /><?php echo report_months_box($report, 'start', $start); ?></td>
61 <td><strong><?php echo _('End'); ?>:</strong><br /><?php echo report_months_box($report, 'end', $end); ?></td>
62 <td><input type="submit" name="submit" value="<?php echo _('Refresh'); ?>"></td>
66 <img src="/reporting/projectact_graph.php?<?php echo "SPAN=$SPAN&start=$start&end=$end&g_id=$group_id&area=$area"; ?>" width="640" height="480">
69 site_project_footer( array() );