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');
33 session_require( array('group'=>$sys_stats_group) );
38 if ($report->isError()) {
39 exit_error($report->getErrorMessage());
42 $sw = getStringFromRequest('sw');
43 $dev_id = getStringFromRequest('dev_id');
44 $area = getStringFromRequest('area');
45 $SPAN = getStringFromRequest('SPAN');
46 $start = getStringFromRequest('start');
47 $end = getStringFromRequest('end');
50 $z =& $report->getMonthStartArr();
51 $start = $z[count($z)-1];
54 echo report_header(_('User Activity'));
56 $abc_array = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
57 echo _('Choose the <strong>First Letter</strong> of the name of the person you wish to report on.<p>');
58 for ($i=0; $i<count($abc_array); $i++) {
59 if ($sw == $abc_array[$i]) {
60 echo '<strong>'.$abc_array[$i].'</strong> ';
62 echo '<a href="useract.php?sw='.$abc_array[$i].'">'.$abc_array[$i].'</A> ';
68 <h3><?php echo _('User Activity'); ?></h3>
70 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="get">
71 <input type="hidden" name="sw" value="<?php echo $sw; ?>">
73 <td><strong><?php echo _('User'); ?>:</strong><br /><?php echo report_useract_box('dev_id',$dev_id,$sw); ?></td>
74 <td><strong><?php echo _('Areas'); ?>:</strong><br /><?php echo report_area_box('area',$area); ?></td>
75 <td><strong><?php echo _('Type'); ?>:</strong><br /><?php echo report_span_box('SPAN',$SPAN); ?></td>
76 <td><strong><?php echo _('Start'); ?>:</strong><br /><?php echo report_months_box($report, 'start', $start); ?></td>
77 <td><strong><?php echo _('End'); ?>:</strong><br /><?php echo report_months_box($report, 'end', $end); ?></td>
78 <td><input type="submit" name="submit" value="<?php echo _('Refresh'); ?>"></td>
82 <?php if ($dev_id) { ?>
83 <img src="useract_graph.php?<?php echo "SPAN=$SPAN&start=$start&end=$end&dev_id=$dev_id&area=$area"; ?>" width="640" height="480">