From eff30a5adb086358b2e6e6427579260ad9fb1fb7 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 3 Apr 2007 20:10:00 +0000 Subject: [PATCH] Add an option on the winners selection page, to show all ELIGIBLE projects for a special award, not just the nomiated ones. Helps in teh case that an award was added last minute that nominations didnt happen for, or in a caase that the judges decided to choose a winner that didnt nominate to begin with. Update the winners page to not duplicate students names :p --- admin/winners.php | 4 +++- winners.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/winners.php b/admin/winners.php index 6e00ae7..faa8d06 100644 --- a/admin/winners.php +++ b/admin/winners.php @@ -107,7 +107,7 @@ if($action=="edit" && $edit) echo "
"; //get the projets that are eligible for the award, given the award ID ($r->id) - if($r->type=="Special") + if($r->type=="Special" && !$_GET['eligible']) { $projects=getProjectsNominatedForSpecialAward($r->id); } @@ -210,6 +210,8 @@ if($action=="edit" && $edit) echo ""; echo ""; echo ""; + echo "Show All Eligible"; + echo "
"; } else echo "
"; diff --git a/winners.php b/winners.php index bc74074..edbf408 100644 --- a/winners.php +++ b/winners.php @@ -155,7 +155,7 @@ if($_GET['year'] && $_GET['type']) else $prev=false; - $students.="$studentinfo->firstname $studentinfo->lastname"; +// $students.="$studentinfo->firstname $studentinfo->lastname"; $studnum++; //we will assume that they are coming from the same school, so lets just grab the last students school