| <?php |
| /******************************************************************************* |
| * Copyright (c) 2010 Eclipse Foundation and others. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| *******************************************************************************/ |
| |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/classes/common.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/classes/debug.php"); |
| trace_file_info(__FILE__); |
| |
| 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()); |
| |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/classes/Review.class.php"); |
| |
| $smallIconDir = "http://dev.eclipse.org/small_icons"; |
| $reviews = get_reviews(); |
| |
| ob_start(); |
| |
| $pageKeywords = ""; |
| $pageTitle = "Reviews"; |
| $pageAuthor = "Wayne Beaton"; |
| ?> |
| |
| <div id="midcolumn"> |
| <div class="homeitem"> |
| <h1><?= $pageTitle ?></h1> |
| |
| <?php |
| |
| $nested = array(); |
| foreach($reviews as $review) { |
| $reviewDate = $review->getReviewDate(); |
| |
| if ($reviewDate) { |
| // Format the date. |
| $reviewDate = date('Y-m-d', $reviewDate); |
| $nested[$reviewDate][] = $review; |
| } else { |
| $reviewDate = 'unscheduled'; |
| } |
| } |
| |
| foreach($nested as $date => $reviews) { |
| $reviewDate = $App->getFormattedDate(strtotime($date), 'long'); |
| |
| echo "<h3>$reviewDate</h3>"; |
| echo "<table width=\"100%\"><tbody>"; |
| foreach($reviews as $review) { |
| $project = $review->getProjectName(); |
| if ($url = $review->getProjectUrl()) |
| $project = "<a href=\"$url\">$project</a>"; |
| |
| $description = $review->getReviewName(); |
| if ($url = $review->getSlidesUrl()) |
| $description = "<a href=\"$url\">$description</a>"; |
| |
| if ($review->isSuccessful()) $state = 'Complete'; |
| else if ($review->isWithdrawn()) $state = 'Withdrawn'; |
| else $state = 'Ongoing'; |
| |
| echo "<tr><td width=\"60%\">$project</td><td width=\"25%\">$description</td><td width=\"15%\">$state</td></tr>"; |
| } |
| echo "</tbody></table>"; |
| } |
| |
| echo get_trace_html(); |
| ?> |
| |
| </div> |
| </div> |
| |
| <?php |
| |
| $html = ob_get_contents(); |
| ob_end_clean(); |
| $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); |
| ?> |