<< ".i18n("Back to Administration").""; echo "   "; echo "<< ".i18n("Back to Registration").""; echo "
"; echo "
"; echo i18n("Choose Status").":"; echo "
"; echo ""; echo "
"; if($_GET['showstatus']) $wherestatus="AND status='".$_GET['showstatus']."' "; else $wherestatus=""; $q=mysql_query("SELECT registrations.id AS reg_id, registrations.num AS reg_num, registrations.status, projects.title, projects.projectcategories_id, projects.projectdivisions_id FROM registrations left outer join projects on projects.registrations_id=registrations.id WHERE 1 $wherestatus ORDER BY registrations.status DESC, projects.title "); echo mysql_error(); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; while($r=mysql_fetch_object($q)) { switch($r->status) { case "new": $status_text="New"; break; case "open": $status_text="Open"; break; case "paymentpending": $status_text="Payment Pending"; break; case "complete": $status_text="Complete"; break; } $status_text=i18n($status_text); echo ""; echo ""; echo ""; echo ""; //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 ""; echo ""; $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.="$studentinfo->school
"; } echo ""; echo ""; echo ""; } echo "
".i18n("Status")."".i18n("Reg Num")."".i18n("Project Title")."".i18n("Age Category")."".i18n("Division")."".i18n("School(s)")."".i18n("Student(s)")."
$status_text$r->reg_num$r->title".i18n("$catr->category")."".i18n("$divr->division")."$schools$students
\n"; echo "
"; send_footer(); ?>