| <?php |
| include_once($_SERVER['DOCUMENT_ROOT'] . "/projects/fragments/parse-projects-file.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("Status; Review Successful"); |
| } |
| if( $review->status() == "J6" ) { |
| $theresult = "unsuccessful"; |
| $thedot = "reddot.gif"; |
| $theday = $review->get("Status; Review Unsuccessful"); |
| } |
| if( $review->status() == "J7" ) { |
| $theresult = "withdrawn"; |
| $thedot = "yellowdot.gif"; |
| $theday = $review->get("Status; Review Withdrawn"); |
| } |
| $theday = substr($theday,0,16); |
| ?> |
| <li><img src="/projects/images/<?= $thedot ?>"> <a href="<?= $review->get("Project URL") ?>" target="_top"><?= $review->get("Project Name") ?></a> |
| <?= $review->get("Review Name") ?> release |
| (<a href="<?= $review->get("Slides URL") ?>">slides</a><?php |
| if( $review->get("Status; IP Log Posted") != "" ) { |
| ?> |
| , <a href="<?= $review->get("IP Log URL") ?>">project log</a><?php |
| } |
| ?>) -- <?= $theresult ?> -- <?= $theday ?> |
| </li> |
| <?php |
| } |
| function most_recent_first_reviews($a, $b) { |
| if( $a == $b ) return 0; |
| $am = $a->get("Review Time"); |
| $aa = numerical_date( $a->get("Review Date") . " " . substr($am,0,2) . ":" . substr($am,2,2) . ":00 PST" ); |
| $bm = $b->get("Review Time"); |
| $bb = numerical_date( $b->get("Review Date") . " " . substr($bm,0,2) . ":" . substr($bm,2,2) . ":00 PST" ); |
| if( $aa == $bb ) return 0; |
| if( $aa > $bb ) return -1; |
| return 1; |
| } |
| |
| ?> |