5 * Copyright 2004 (c) GForge LLC
8 * @author Tim Perdue tim@gforge.org
11 * This file is part of GForge.
13 * GForge is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * GForge is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with GForge; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 require_once('../env.inc.php');
29 require_once('pre.php');
30 require_once('common/reporting/report_utils.php');
31 require_once('common/reporting/Report.class.php');
33 session_require( array('group'=>$sys_stats_group) );
36 if ($report->isError()) {
37 exit_error($report->getErrorMessage());
40 $g_id = getStringFromRequest('g_id');
41 $area = getStringFromRequest('area');
42 $SPAN = getStringFromRequest('SPAN');
43 $start = getStringFromRequest('start');
44 $end = getStringFromRequest('end');
47 $z =& $report->getMonthStartArr();
48 $start = $z[count($z)-1];
52 echo report_header(_('Project Activity'));
55 <h3><?php echo _('Project Activity'); ?></h3>
57 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="get">
58 <input type="hidden" name="sw" value="<?php echo $sw; ?>">
60 <td><strong><?php echo _('Project'); ?>:</strong><br /><?php echo report_group_box('g_id',$g_id); ?></td>
61 <td><strong><?php echo _('Areas'); ?>:</strong><br /><?php echo report_area_box('area',$area); ?></td>
62 <td><strong><?php echo _('Type'); ?>:</strong><br /><?php echo report_span_box('SPAN',$SPAN); ?></td>
63 <td><strong><?php echo _('Start'); ?>:</strong><br /><?php echo report_months_box($report, 'start', $start); ?></td>
64 <td><strong><?php echo _('End'); ?>:</strong><br /><?php echo report_months_box($report, 'end', $end); ?></td>
65 <td><input type="submit" name="submit" value="<?php echo _('Refresh'); ?>"></td>
70 <img src="projectact_graph.php?<?php echo "SPAN=$SPAN&start=$start&end=$end&g_id=$g_id&area=$area"; ?>" width="640" height="480">
80 // c-file-style: "bsd"