blob: cab9b253d4c68ac0d455792cb345796cb7010c6c [file]
<?php
include_once("fragments/project-review-data.php");
$all = new AllInfo();
$all->load();
$reviews = array();
foreach( $all->_reviews as $review) {
if( $review->status() == "J5"
|| $review->status() == "J6"
|| $review->status() == "J7" ) {
array_push( $reviews, $review );
}
}
usort( $reviews, "most_recent_first_reviews");
$theday = "";
$theresult = "";
$thedot = "";
foreach( $reviews as $review ) {
if( $review->status() == "J5" ) {
$theresult = "successful";
$thedot = "greendot.gif";
$theday = $review->get("Review Successful");
}
if( $review->status() == "J6" ) {
$theresult = "unsuccessful";
$thedot = "reddot.gif";
$theday = $review->get("Review Unsuccessful");
}
if( $review->status() == "J7" ) {
$theresult = "withdrawn";
$thedot = "yellowdot.gif";
$theday = $review->get("Review Withdrawn");
}
$theday = substr($theday,0,16);
?>
<li><img src="/projects/images/<?= $thedot ?>"> <a href="<?= $review->get("ProjectURL") ?>" target="_top"><?= $review->get("ProjectName") ?></a>
<?= $review->get("ReviewName") ?> release
(<a href="<?= $review->get("SlidesURL") ?>">slides</a><?php
if( $review->get("IPLogPosted") != "" ) {
?>
, <a href="<?= $review->get("IPLogURL") ?>">project log</a><?php
}
?>) -- <?= $theresult ?> -- <?= $theday ?>
</li>
<?php
}
function most_recent_first_reviews($a, $b) {
if( $a == $b ) return 0;
$aa = strtotime($a->get("ReviewDate"));
$bb = strtotime($b->get("ReviewDate"));
if( $aa == $bb ) return 0;
if( $aa > $bb ) return -1;
return 1;
}
?>