5 * Copyright 2003-2004 (c) GForge LLC
6 * http://fusionforge.org
8 * This file is part of FusionForge. FusionForge is free software;
9 * you can redistribute it and/or modify it under the terms of the
10 * GNU General Public License as published by the Free Software
11 * Foundation; either version 2 of the Licence, or (at your option)
14 * FusionForge is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 require_once('../env.inc.php');
25 require_once $gfcommon.'include/pre.php';
26 require_once $gfcommon.'reporting/report_utils.php';
27 require_once $gfcommon.'reporting/Report.class.php';
29 session_require_global_perm ('forge_stats', 'read') ;
32 if ($report->isError()) {
33 exit_error($report->getErrorMessage());
36 $SPAN = getIntFromRequest('SPAN');
37 $start = getIntFromRequest('start');
38 $end = getIntFromRequest('end');
40 if (!$start || !$end) $z =& $report->getMonthStartArr();
46 $end = $z[count($z)-1];
48 if ($end < $start) list($start, $end) = array($end, $start);
51 $error_msg .= _('Start and end dates must be different');
54 report_header(_('Projects Added'));
58 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="get">
60 <td><strong><?php echo _('Type'); ?>:</strong><br /><?php echo report_span_box('SPAN',$SPAN); ?></td>
61 <td><strong><?php echo _('Start'); ?>:</strong><br /><?php echo report_months_box($report, 'start', $start); ?></td>
62 <td><strong><?php echo _('End'); ?>:</strong><br /><?php echo report_months_box($report, 'end', $end); ?></td>
63 <td><input type="submit" name="submit" value="<?php echo _('Refresh'); ?>" /></td>
66 <?php if ($start != $end) { ?>
67 <p><img src="groupadded_graph.php?<?php echo "SPAN=$SPAN&start=$start&end=$end"; ?>" width="640" height="480" alt="" /></p>
74 // c-file-style: "bsd"