blob: 83c62a2deae0be40078428db03347088dc736b5a [file] [log] [blame]
<?php
/*******************************************************************************
* Copyright (c) 2010 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:
* Wayne Beaton (Eclipse Foundation)- initial API and implementation
*******************************************************************************/
/*
* This script assumes that it is being included by another script. We
* assume that the $App variable has already been defined.
*/
require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/classes/Activity.class.php");
$smallIconDir = "http://dev.eclipse.org/small_icons";
$activities = getNewProjectProposals();
?>
<h3>New Project Proposals</h3>
<? if (!$activities) { ?>
<p>There are no new project proposals at this time.</p>
<? } else {?>
<table><tbody>
<?
foreach($activities as $activity) {
$name = htmlentities($activity->getName());
if ($activity->isWithdrawn()) continue;
$link = $activity->getLink();
$date = $App->getFormattedDate($activity->getDate(), 'short');
$date = str_replace(' ', '&nbsp;', $date);
echo "<tr><td>$date</td><td><a href=\"$link\">$name</a></td><td></td></tr>\n";
}
?>
</tbody></table>
<? } ?>