forked from science-ation/science-ation
fix names list to use new judging team code
This commit is contained in:
parent
37ae79c363
commit
876899d17f
@ -25,6 +25,10 @@
|
|||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
require_once("../user.inc.php");
|
require_once("../user.inc.php");
|
||||||
require_once("judges.inc.php");
|
require_once("judges.inc.php");
|
||||||
|
function teamMemberToName($member)
|
||||||
|
{
|
||||||
|
return $member["firstname"] . " " . $member["lastname"];
|
||||||
|
}
|
||||||
user_auth_required('committee', 'admin');
|
user_auth_required('committee', 'admin');
|
||||||
send_header("Judging Score Entry - Update",
|
send_header("Judging Score Entry - Update",
|
||||||
array('Committee Main' => 'committee_main.php',
|
array('Committee Main' => 'committee_main.php',
|
||||||
@ -84,19 +88,16 @@ $q=mysql_query("SELECT * FROM projectdivisions WHERE year='$year' ORDER BY id");
|
|||||||
|
|
||||||
$i = 1;
|
$i = 1;
|
||||||
while($r=mysql_fetch_object($q)) {
|
while($r=mysql_fetch_object($q)) {
|
||||||
$s = mysql_query("SELECT CONCAT(judges.firstname, ' ', judges.lastname) as name
|
$team=getJudgingTeam($r->judges_teams_id);
|
||||||
FROM judges,
|
$teamMembers=$team['members'];
|
||||||
judges_teams_link
|
$teamNames=array_map("teamMemberToName", $teamMembers);
|
||||||
WHERE judges_teams_link.judges_id = judges.id
|
|
||||||
AND judges_teams_link.judges_teams_id = " . $r->judges_teams_id
|
|
||||||
);
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td style=\"vertical-align: middle\">\n";
|
echo "<td style=\"vertical-align: middle\">\n";
|
||||||
echo $r->num;
|
echo $r->num;
|
||||||
echo "<input type=\"hidden\" name=\"team_" . $i. "_id\" value=\"$r->judges_teams_id\"/>\n";
|
echo "<input type=\"hidden\" name=\"team_" . $i. "_id\" value=\"$r->judges_teams_id\"/>\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td style=\"vertical-align: middle\">";
|
echo "<td style=\"vertical-align: middle\">";
|
||||||
echo mysql_fetch_object($s)->name;
|
echo implode(", ", $teamNames);
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td style=\"vertical-align: middle; text-align: center\">\n";
|
echo "<td style=\"vertical-align: middle; text-align: center\">\n";
|
||||||
if($r->score) {
|
if($r->score) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user