require("../common.inc.php");
require("../register_participants.inc.php");
send_header("Participant Registration - List");
echo "<< ".i18n("Back to Administration")."";
echo " ";
echo "<< ".i18n("Back to Registration")."";
echo "
";
echo "
";
echo i18n("Choose Status").":";
echo "
".i18n("Status")." | "; echo "".i18n("Reg Num")." | "; echo "".i18n("Project Title")." | "; echo "".i18n("Age Category")." | "; echo "".i18n("Division")." | "; echo "".i18n("School(s)")." | "; echo "".i18n("Student(s)")." | "; echo "
---|---|---|---|---|---|---|
$status_text | "; echo "$r->reg_num | "; echo "$r->title | "; //now get thh category and division $catq=mysql_query("SELECT category FROM projectcategories WHERE year='".$config['FAIRYEAR']."' AND id='".$r->projectcategories_id."'"); $catr=mysql_fetch_object($catq); $divq=mysql_query("SELECT division FROM projectdivisions WHERE year='".$config['FAIRYEAR']."' AND id='".$r->projectdivisions_id."'"); $divr=mysql_fetch_object($divq); echo "".i18n("$catr->category")." | "; echo "".i18n("$divr->division")." | "; $sq=mysql_query("SELECT students.firstname, students.lastname, schools.school FROM students,schools WHERE students.registrations_id='$r->reg_id' AND students.schools_id=schools.id "); echo mysql_error(); $studnum=1; $schools=""; $students=""; while($studentinfo=mysql_fetch_object($sq)) { $students.="$studentinfo->firstname $studentinfo->lastname$schools | "; echo "$students | "; echo "