blob: 1b39bec5220fa45b50a4812d3056e1bd89aade24 [file] [log] [blame]
<?php
include_once($_SERVER['DOCUMENT_ROOT'] . "/projects/fragments/parse-projects-file.php");
function generate_header($the_name) {
$found = 0;
$all = new AllInfo();
$all->load();
foreach( $all->_proposals as $proposal) {
if( $proposal->get("Proposal Name") == $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"><font size="+1"><a href="/projects/">Creation Review</a> is scheduled for
<a href="<?= time_and_date_url( $proposal->get("Review Date"), $proposal->get("Review Time") ) ?>"><?= $proposal->get("Review Date") ?>
at <?= $proposal->get("Review Time") ?> UTC</a></font><br>
See the <a href="http://portal.eclipse.org/">portal</a> for call-in information.</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("Project Top-Level") == "" ) {
?>
<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" ) {
?>
<p align="center"><font size="+2"><a href="<?= $proposal->get("Project URL") ?>" target="_top">The project has been created.
Please visit the project page.</a></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("Slides URL") ?>">Download the creation review
slides<img src="/projects/images/pdf.gif" border="0"/></a></font><?php
if( $proposal->get("Bug Number") != "" ) {
?><br><font size="+1"><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=<?= $proposal->get("Bug Number") ?>"><?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
}
}
?>