blob: 5a57627853292c81278be39c351371b7621b971f [file] [log] [blame]
<?php
/*******************************************************************************
* Copyright (c) 2005, 2011 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:
* Bjorn Freeman-Benson (Eclipse Foundation) - initial API and implementation
* Wayne Beaton (Eclipse Foundation) - Bug 357150
*******************************************************************************/
include_once($_SERVER['DOCUMENT_ROOT'] . "/projects/fragments/project-review-data.php");
function generate_header($the_name) {
$found = 0;
$all = new AllInfo();
$all->load();
foreach( $all->_proposals as $proposal) {
if( $proposal->get("ProposalName") == $the_name ) {
$found = 1;
if( $proposal->status() == "P1"
|| $proposal->status() == "P2" ) {
$age = $proposal->proposal_age();
$trans = array(" " => "&nbsp;");
$age = strtr( $age, $trans);
?>
<p align="center">Proposal posted <?= $age ?>&nbsp;ago</p>
<?php
}
if( $proposal->status() == "P3"
|| $proposal->status() == "P4" ) {
?>
<p align="center">A <font size="+1"><a href="/projects/">Creation Review</a> has been scheduled for this project; it will conclude on
<a href="<?= time_and_date_url($proposal->get("ReviewDate")) ?>"><?= date("D, j M Y", strtotime($proposal->get("ReviewDate"))); ?></a></font><br>
</p>
<?php
}
if( $proposal->status() == "P5"
|| $proposal->status() == "PW") {
?>
<p align="center"><font size="+2">The project has been approved and is awaiting provisioning.</font></p>
<?php
}
if( $proposal->status() == "PP" ) {
if( $proposal->get("ProjectTopLevel") == "" ) {
?>
<p align="center"><font size="+1">The project creation review has been completed and the project is waiting for a Board decision.</font></p>
<?php
} else {
?>
<p align="center"><font size="+1">The project creation review has been completed and the project is waiting for a PMC decision.</font></p>
<?php
}
}
if( $proposal->status() == "P7" ) {
// WTB Bug 357150 (bailing wire and duct-tape...)
$projecturl = $proposal->get("ProjectURL");
$message = "The project has been created.";
if ($projecturl) $message = "$message <a href=\"$projecturl\" target=\"_top\">Please visit the project page.</a>";
?>
<p align="center"><font size="+2"><?php echo $message; ?></font></p>
<?php
}
if( $proposal->status() == "P8" ) {
?>
<p align="center"><font size="+1">This proposal has been withdrawn.</font></p>
<?php
}
if( $proposal->status() == "P9" ) {
?>
<p align="center"><a href="/technology/archived.php"><font size="+1">This project has been archived.</font></a></p>
<?php
}
if( ($proposal->status() == "P4"
|| $proposal->status() == "P5"
|| $proposal->status() == "PW"
|| $proposal->status() == "PP"
|| $proposal->status() == "P6"
|| $proposal->status() == "P7"
|| $proposal->status() == "P8"
|| $proposal->status() == "P9" )
&& ($proposal->get("Slides URL") != "") ) {
?>
<p align="center"><font size="+1"><a href="<?= $proposal->get("SlidesURL") ?>">Download the creation review
docuware<img src="/projects/images/pdf.gif" border="0"/></a></font><?php
if( $proposal->get("BugNumber") != "" ) {
?><br><font size="+1"><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=<?= $proposal->get("BugNumber") ?>"><?php
if( $proposal->status() == "P4" ) {
?>Comment on the creation review<?php
} else {
?>Read the creation review comments<?php
}
?></a></font><?php
}
?></p>
<?php
}
}
}
if( !$found ) {
?>
<p align="center"><font color="red" size="+1">
This is a draft of a proposal. This is not an official Eclipse proposal.
This draft is not for publication or linking at this time.
</font></p>
<?php
}
}
?>