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');
36 if ($report->isError()) {
37 exit_error($report->getErrorMessage());
40 $SPAN = getStringFromRequest('SPAN');
41 $start = getStringFromRequest('start');
42 $end = getStringFromRequest('end');
45 $z =& $report->getMonthStartArr();
46 $start = $z[count($z)-1];
49 session_require( array('group'=>$sys_stats_group) );
51 echo report_header(_('Cumulative Projects'));
54 <h3><?php echo _('Cumulative Projects'); ?></h3>
56 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="get">
58 <td><strong><?php echo _('Type'); ?>:</strong><br /><?php echo report_span_box('SPAN',$SPAN); ?></td>
59 <td><strong><?php echo _('Start'); ?>:</strong><br /><?php echo report_months_box($report, 'start', $start); ?></td>
60 <td><strong><?php echo _('End'); ?>:</strong><br /><?php echo report_months_box($report, 'end', $end); ?></td>
61 <td><input type="submit" name="submit" value="<?php echo _('Refresh'); ?>"></td>
65 <img src="groupcum_graph.php?<?php echo "SPAN=$SPAN&start=$start&end=$end"; ?>" width="640" height="480">