id]['category']=$r->category; $agecategories[$r->id]['mingrade']=$r->mingrade; $agecategories[$r->id]['maxgrade']=$r->maxgrade; if($gradeinfo->maxgrade >= $r->mingrade && $gradeinfo->maxgrade <= $r->maxgrade) { $projectcategories_id=$r->id; } } //now select their project info $q=mysql_query("SELECT * FROM projects WHERE registrations_id='".$_SESSION['registration_id']."' AND year='".$config['FAIRYEAR']."'"); //check if it exists, if we didnt find any record, lets insert one if(mysql_num_rows($q)==0) { mysql_query("INSERT INTO projects (registrations_id,projectcategories_id,year) VALUES ('".$_SESSION['registration_id']."','$projectcategories_id','".$config['FAIRYEAR']."')"); //now query the one we just inserted $q=mysql_query("SELECT * FROM projects WHERE registrations_id='".$_SESSION['registration_id']."' AND year='".$config['FAIRYEAR']."'"); } $projectinfo=mysql_fetch_object($q); //make sure that if they changed their grade on the student page, we update their projectcategories_id accordingly if($projectinfo->projectcategories_id!=$projectcategories_id) { echo notice(i18n("Age category changed, updating to %1",array($agecategories[$projectcategories_id]['category']))); mysql_query("UPDATE projects SET projectcategories_id='$projectcategories_id' WHERE id='$projectinfo->id'"); } echo "<< ".i18n("Back to Participant Registration Summary")."
"; echo "
"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
".i18n("Project Title").": title\" />
".i18n("Age Category").": "; echo i18n($agecategories[$projectcategories_id]['category']); echo " (".i18n("Grades %1-%2",array($agecategories[$projectcategories_id]['mingrade'],$agecategories[$projectcategories_id]['maxgrade'])).")"; echo "
".i18n("Division").": "; $q=mysql_query("SELECT * FROM projectdivisions ORDER BY division"); echo ""; echo "
".i18n("Language").": "; echo ""; echo "
".i18n("Requirements").": "; echo ""; echo ""; echo " "; if($projectinfo->req_table=="yes") $check="checked=\"checked\""; else $check=""; echo " "; echo " "; if($projectinfo->req_table=="no") $check="checked=\"checked\""; else $check=""; echo " "; echo ""; echo ""; echo " "; if($projectinfo->req_electricity=="yes") $check="checked=\"checked\""; else $check=""; echo " "; echo " "; if($projectinfo->req_electricity=="no") $check="checked=\"checked\""; else $check=""; echo " "; echo ""; echo ""; echo " "; echo " "; echo ""; echo "
".i18n("Table")."Yes No
".i18n("Electricity")."Yes No
".i18n("Special")."req_special\" />
"; echo "
".i18n("Summary").":
"; echo i18n("100 words maximum"); echo "
"; echo "
"; send_footer(); ?>