[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/www/reporting groupadded.php, NONE, 1.1 groupadd
From: |
cbayle |
Subject: |
[Gforge-commits] gforge/www/reporting groupadded.php, NONE, 1.1 groupadded_graph.php, NONE, 1.1 groupcum.php, NONE, 1.1 groupcum_graph.php, NONE, 1.1 index.php, 1.4, 1.5 |
Date: |
Fri, 15 Oct 2004 14:53:20 -0500 |
Update of /cvsroot/gforge/gforge/www/reporting
In directory db.perdue.net:/tmp/cvs-serv26588/www/reporting
Modified Files:
index.php
Added Files:
groupadded.php groupadded_graph.php groupcum.php
groupcum_graph.php
Log Message:
Add Projects (Groups) reporting
--- NEW FILE: groupadded.php ---
<?php
/**
* Reporting System
*
* Copyright 2004 (c) GForge LLC
*
* @version $Id: groupadded.php,v 1.1 2004/10/15 19:53:17 cbayle Exp $
* @author Tim Perdue address@hidden
* @date 2003-03-16
*
* This file is part of GForge.
*
* GForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GForge is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once('pre.php');
require_once('common/reporting/report_utils.php');
require_once('common/reporting/Report.class');
global $Language;
$report=new Report();
if ($report->isError()) {
exit_error('Error',$report->getErrorMessage());
}
if (!$start) {
$z =& $report->getMonthStartArr();
$start = $z[count($z)-1];
}
session_require( array('group'=>$sys_stats_group) );
echo report_header($Language->getText('reporting','groups_added_title'));
?>
<h3><?php echo $Language->getText('reporting','groups_added_title'); ?></h3>
<p>
<form action="<?php echo $PHP_SELF; ?>" method="get">
<table><tr>
<td><strong><?php echo $Language->getText('reporting','type'); ?>:</strong><br
/><?php echo report_span_box('SPAN',$SPAN); ?></td>
<td><strong><?php echo $Language->getText('reporting','start'); ?>:</strong><br
/><?php echo report_months_box($report, 'start', $start); ?></td>
<td><strong><?php echo $Language->getText('reporting','end'); ?>:</strong><br
/><?php echo report_months_box($report, 'end', $end); ?></td>
<td><input type="submit" name="submit" value="<?php echo
$Language->getText('reporting','refresh'); ?>"></td>
</tr></table>
</form>
<p>
<img src="groupadded_graph.php?<?php echo "SPAN=$SPAN&start=$start&end=$end";
?>" width="640" height="480">
<p>
<?php
echo report_footer();
?>
--- NEW FILE: groupadded_graph.php ---
<?php
/**
* Reporting System
*
* Copyright 2004 (c) GForge LLC
*
* @version $Id: groupadded_graph.php,v 1.1 2004/10/15 19:53:17 cbayle Exp $
* @author Tim Perdue address@hidden
* @date 2003-03-16
*
* This file is part of GForge.
*
* GForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GForge is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once('pre.php');
require_once($sys_path_to_jpgraph.'jpgraph.php');
require_once($sys_path_to_jpgraph.'jpgraph_line.php');
require_once('common/reporting/ReportGroupAdded.class');
session_require( array('group'=>$sys_stats_group) );
//
// Create Report
//
$report=new ReportGroupAdded($SPAN,$start,$end);
//
// Check for error, such as license key problem
//
if ($report->isError()) {
echo $report->getErrorMessage();
exit;
}
// Some data
$ydata = $report->getData();
// Create the graph. These two calls are always required
$graph = new Graph(640, 480,"auto");
$graph->SetMargin(50,10,35,50);
$graph->SetScale( "textlin");
// Create the linear plot
$lineplot =new LinePlot($ydata);
$lineplot ->SetColor("black");
$lineplot->SetFillColor("orange");
// Add the plot to the graph
$graph->Add( $lineplot);
//$graph->SetMargin(10,10,25,10);
$graph->title->Set("Projects Added ".$report->getSpanName()
." (".date('m/d/Y',$report->getStartDate()) ."-".
date('m/d/Y',$report->getEndDate()) .")");
$graph->subtitle->Set($sys_name);
//$graph->xaxis-> title->Set("Date" );
//$graph->yaxis-> title->Set("Number" );
$a=$report->getDates();
$graph->xaxis->SetTickLabels($a);
$graph->xaxis->SetLabelAngle(90);
$graph->xaxis->SetTextLabelInterval($report->getGraphInterval());
// Display the graph
$graph->Stroke();
?>
--- NEW FILE: groupcum.php ---
<?php
/**
* Reporting System
*
* Copyright 2004 (c) GForge LLC
*
* @version $Id: groupcum.php,v 1.1 2004/10/15 19:53:17 cbayle Exp $
* @author Tim Perdue address@hidden
* @date 2003-03-16
*
* This file is part of GForge.
*
* GForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GForge is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once('pre.php');
require_once('common/reporting/report_utils.php');
require_once('common/reporting/Report.class');
global $Language;
$report=new Report();
if ($report->isError()) {
exit_error($report->getErrorMessage());
}
if (!$start) {
$z =& $report->getMonthStartArr();
$start = $z[count($z)-1];
}
session_require( array('group'=>$sys_stats_group) );
echo report_header($Language->getText('reporting','cumulative_groups_title'));
?>
<h3><?php echo $Language->getText('reporting','cumulative_groups_title');
?></h3>
<p>
<form action="<?php echo $PHP_SELF; ?>" method="get">
<table><tr>
<td><strong><?php echo $Language->getText('reporting','type'); ?>:</strong><br
/><?php echo report_span_box('SPAN',$SPAN); ?></td>
<td><strong><?php echo $Language->getText('reporting','start'); ?>:</strong><br
/><?php echo report_months_box($report, 'start', $start); ?></td>
<td><strong><?php echo $Language->getText('reporting','end'); ?>:</strong><br
/><?php echo report_months_box($report, 'end', $end); ?></td>
<td><input type="submit" name="submit" value="<?php echo
$Language->getText('reporting','refresh'); ?>"></td>
</tr></table>
</form>
<p>
<img src="groupcum_graph.php?<?php echo "SPAN=$SPAN&start=$start&end=$end"; ?>"
width="640" height="480">
<p>
<?php
echo report_footer();
?>
--- NEW FILE: groupcum_graph.php ---
<?php
/**
* Reporting System
*
* Copyright 2004 (c) GForge LLC
*
* @version $Id: groupcum_graph.php,v 1.1 2004/10/15 19:53:17 cbayle Exp $
* @author Tim Perdue address@hidden
* @date 2003-03-16
*
* This file is part of GForge.
*
* GForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GForge is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once('pre.php');
require_once($sys_path_to_jpgraph.'jpgraph.php');
require_once($sys_path_to_jpgraph.'jpgraph_line.php');
require_once('common/reporting/ReportGroupCum.class');
session_require( array('group'=>$sys_stats_group) );
//
// Create Report
//
$report=new ReportGroupCum($SPAN,$start,$end);
//
// Check for error, such as license key problem
//
if ($report->isError()) {
echo $report->getErrorMessage();
exit;
}
// Some data
$ydata = $report->getData();
// Create the graph. These two calls are always required
$graph = new Graph(640, 480,"auto");
$graph->SetMargin(50,10,35,50);
$graph->SetScale( "textlin");
// Create the linear plot
$lineplot =new LinePlot($ydata);
$lineplot ->SetColor("black");
$lineplot->SetFillColor("orange");
// Add the plot to the graph
$graph->Add( $lineplot);
//$graph->SetMargin(10,10,25,10);
$graph->title->Set("Cumulative Projects ".$report->getSpanName()
." (".date('m/d/Y',$report->getStartDate()) ."-".
date('m/d/Y',$report->getEndDate()) .")");
$graph->subtitle->Set($sys_name);
//$graph->xaxis-> title->Set("Date" );
//$graph->yaxis-> title->Set("Number" );
$a=$report->getDates();
$graph->xaxis->SetTickLabels($a);
$graph->xaxis->SetLabelAngle(90);
$graph->xaxis->SetTextLabelInterval($report->getGraphInterval());
// Display the graph
$graph->Stroke();
?>
Index: index.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/reporting/index.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- index.php 4 Aug 2004 16:50:45 -0000 1.4
+++ index.php 15 Oct 2004 19:53:17 -0000 1.5
@@ -43,6 +43,8 @@
<p>
<h3><?php echo $Language->getText('reporting','projects'); ?></h3>
<p>
+<a href="groupadded.php?SPAN=1"><?php echo
$Language->getText('reporting','groups_added_weekly'); ?></a><br />
+<a href="groupcum.php?SPAN=1"><?php echo
$Language->getText('reporting','cumulative_groups'); ?></a><br />
<?php echo $Language->getText('reporting','project_specific'); ?><br />
<a href="projectact.php"><?php echo
$Language->getText('reporting','project_activity'); ?></a><br />
<p>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/www/reporting groupadded.php, NONE, 1.1 groupadded_graph.php, NONE, 1.1 groupcum.php, NONE, 1.1 groupcum_graph.php, NONE, 1.1 index.php, 1.4, 1.5,
cbayle <=
- Prev by Date:
[Gforge-commits] gforge/common/forum ForumMessage.class,1.10,1.11
- Next by Date:
[Gforge-commits] gforge/www/include/languages Base.tab, 1.188, 1.189 French.tab, 1.119, 1.120
- Previous by thread:
[Gforge-commits] gforge/common/forum ForumMessage.class,1.10,1.11
- Next by thread:
[Gforge-commits] gforge/www/include/languages Base.tab, 1.188, 1.189 French.tab, 1.119, 1.120
- Index(es):