From c7e1ec708c8eda4da52d44ee560bfc0e485d545f Mon Sep 17 00:00:00 2001 From: james Date: Fri, 6 May 2005 20:26:15 +0000 Subject: [PATCH] Only show projects that are eligible for an award that the team is judging for --- admin/judges_teams_projects.php | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/admin/judges_teams_projects.php b/admin/judges_teams_projects.php index e1b097f9..10a39863 100644 --- a/admin/judges_teams_projects.php +++ b/admin/judges_teams_projects.php @@ -238,15 +238,28 @@ if( ($action=="edit" || $action=="assign" ) && $edit) echo mysql_error(); $eligibleprojects=getProjectsEligibleForAwards($award_ids); - echo nl2br(print_r($eligibleprojects,true)); - - $numprojects=mysql_num_rows($pq); + //the keys are the project numbers, so lets get an array of those too so we can use in_array below + $eligibleprojectsnumbers=array_keys($eligibleprojects); +// echo nl2br(print_r($eligibleprojects,true)); + $numprojects=0; echo ""; echo "";