blob: 401ad43f15261af42d1891395bc93231adac87de [file] [log] [blame]
<?php
/*******************************************************************************
* Copyright (c) 2005 Eclipse Foundation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Denis Roy (Eclipse Foundation)- initial API and implementation
* Bjorn Freeman-Benson (Eclipse Foundation)- Various updates
* Wayne Beaton (Eclipse Foundation) - Leverage new "Activity" infrastructure.
*******************************************************************************/
/*
* This script produces a listing of the reviews of the past. Note that you can
* tune the output to include a summary (number of reviews each month) by including
* a 'summarize' parameter in the URL (the value is irrelevant).
*/
require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php");
$App = new App();
$Nav = new Nav();
$Menu = new Menu();
include($App->getProjectCommon());
/* 221934 - this page to remain on eclipse.org */
ini_set('memory_limit', '16M');
$pageTitle = "Past Reviews";
include( '_commonLeftNav.php' );
require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/classes/Activity.class.php");
$reviews = getAllCompleteReviewActivity();
ob_start();
?>
<div id="maincontent">
<div id="midcolumn">
<h1>Past Reviews</h1>
<p>The life-cycle of an Eclipse Project goes through a <a href="dev_process/development_process.php#6_2_Project_Lifecycle">number of phases</a>.
At the end of each phase, the community meets to review the project.
The following is an archive of past Reviews:</p>
<ul class="midlist">
<?php
$counts = array();
foreach($reviews as $review) {
if (!$review->isWithdrawn()) {
$period = date('F Y', $review->getReviewDate());
$counts[$period]++;
}
echo '<li>' . $review->toHtmlString() . '</li>';
}
?>
</ul>
<?php
if (isset($_GET['summarize'])) {
echo '<h3>Summaries</h3>';
echo '<ul>';
foreach($counts as $period => $count) {
echo "<li>$period - $count</li>";
}
echo '</ul>';
}
?>
<?php include( '_commonFooter.php' ); ?>
</div></div>
<?php
# Paste your HTML content between the EOHTML markers!
$html = ob_get_contents();
ob_end_clean();
# Generate the web page
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>