| <?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"); |
| |
| $activities = getRecentActivity(30,7, false); |
| |
| ?> |
| <h3><a href="/projects/reviews-rss.php"><img src="images/rss.gif" align="right" border="0" alt="[rss]"/></a>Recent Activity</h3> |
| <table><tbody> |
| <?php |
| foreach($activities as $activity) { |
| $title = htmlentities($activity->getTitle()); |
| $link = $activity->getLink(); |
| $date = $App->getFormattedDate($activity->getDate(), 'short'); |
| $date = str_replace(' ', ' ', $date); |
| $status = $activity->getStatus(); |
| |
| echo "<tr><td>$date</td><td><a href=\"$link\">$title</a></td></tr>\n"; |
| } |
| ?> |
| </tbody></table> |