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');
15 $group_id = getIntFromRequest('group_id');
21 if ($report->isError()) {
22 exit_error($report->getErrorMessage());
25 $area = getStringFromRequest('area');
26 $SPAN = getStringFromRequest('SPAN');
27 $start = getStringFromRequest('start');
28 $end = getStringFromRequest('end');
31 $z =& $report->getMonthStartArr();
32 $start = $z[count($z)-1];
35 site_project_header(array('title'=>$Language->getText('reporting','project_activity_title').' '.$groupname,'group'=>$group_id,'toptab'=>'home'));
37 if ($area && !is_numeric($area)) { $area = 1; }
38 if ($SPAN && !is_numeric($SPAN)) { $SPAN = 1; }
39 if ($start && !is_numeric($start)) { $start = false; }
40 if ($end && !is_numeric($end)) { $end = false; }
43 // BEGIN PAGE CONTENT CODE
46 <h3><?php echo $Language->getText('reporting','project_activity_title'); ?></h3>
48 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="get">
49 <input type="hidden" name="group_id" value="<?php echo $group_id; ?>">
51 <td><strong><?php echo $Language->getText('reporting','area'); ?>:</strong><br /><?php echo report_area_box('area',$area); ?></td>
52 <td><strong><?php echo $Language->getText('reporting','type'); ?>:</strong><br /><?php echo report_span_box('SPAN',$SPAN); ?></td>
53 <td><strong><?php echo $Language->getText('reporting','start'); ?>:</strong><br /><?php echo report_months_box($report, 'start', $start); ?></td>
54 <td><strong><?php echo $Language->getText('reporting','end'); ?>:</strong><br /><?php echo report_months_box($report, 'end', $end); ?></td>
55 <td><input type="submit" name="submit" value="<?php echo $Language->getText('reporting','refresh'); ?>"></td>
59 <img src="/reporting/projectact_graph.php?<?php echo "SPAN=$SPAN&start=$start&end=$end&g_id=$group_id&area=$area"; ?>" width="640" height="480">
62 site_project_footer( array() );