diff --git a/admin/judges_teams_projects.php b/admin/judges_teams_projects.php
index 988e74c..e1b097f 100644
--- a/admin/judges_teams_projects.php
+++ b/admin/judges_teams_projects.php
@@ -25,6 +25,7 @@
require("../common.inc.php");
auth_required('admin');
require("judges.inc.php");
+ require("projects.inc.php");
send_header("Judging Teams Projects");
?>
@@ -127,6 +128,8 @@ if( ($action=="edit" || $action=="assign" ) && $edit)
echo "
";
echo "
";
+ //we need award_ids for use below to get the eligible projects, so lets build the array here while we're displaying the awards
+ $award_ids=array();
if(count($team['awards']))
{
$awardlist=" ";
@@ -134,6 +137,7 @@ if( ($action=="edit" || $action=="assign" ) && $edit)
{
$awardlist.=$award['name'];
$awardlist.=", ";
+ $award_ids[]=$award['id'];
}
echo "".i18n("Judging Team Awards").": ";
$awardlist=substr($awardlist,0,-2);
@@ -173,7 +177,7 @@ if( ($action=="edit" || $action=="assign" ) && $edit)
else
$ch="";
- echo " Show only projects eligible for awards assigned to this team";
+ echo " ".i18n("Only show projects eligible for awards assigned to this team");
echo "
";
echo "";
@@ -232,6 +236,10 @@ if( ($action=="edit" || $action=="assign" ) && $edit)
}
$pq=mysql_query($querystr);
echo mysql_error();
+
+ $eligibleprojects=getProjectsEligibleForAwards($award_ids);
+ echo nl2br(print_r($eligibleprojects,true));
+
$numprojects=mysql_num_rows($pq);
echo "