diff --git a/admin/registration.php b/admin/registration.php
index c605b29..3cd66dc 100644
--- a/admin/registration.php
+++ b/admin/registration.php
@@ -2,6 +2,9 @@
require("../common.inc.php");
send_header("Administration - Participant Registration");
echo "<< ".i18n("Back to Administration")."
";
+ echo "
";
+ echo "View/Input Received Forms
";
+
send_footer();
diff --git a/admin/registration_receivedforms.php b/admin/registration_receivedforms.php
new file mode 100644
index 0000000..875bad1
--- /dev/null
+++ b/admin/registration_receivedforms.php
@@ -0,0 +1,147 @@
+
+ require("../common.inc.php");
+ require("../register_participants.inc.php");
+
+ send_header("Participant Registration - Received Forms");
+ echo "<< ".i18n("Back to Administration")."";
+ echo " ";
+ echo "<< ".i18n("Back to Registration")."";
+ echo "
";
+ echo "
";
+
+ if($_POST['action']=="received" && $_POST['registration_number'])
+ {
+ $q=mysql_query("SELECT * FROM registrations WHERE num='".$_POST['registration_number']."' AND year='".$config['FAIRYEAR']."'");
+ if(mysql_num_rows($q)==1)
+ {
+ $r=mysql_fetch_object($q);
+ $reg_id=$r->id;
+ $reg_num=$r->num;
+
+ if($r->status=='new')
+ {
+ echo error(i18n("Invalid Registration Status (%1 is New). Cannot receive an empty form.",array($_POST['registration_number'])));
+ }
+ else if($r->status=='closed')
+ {
+ echo error(i18n("Registration number (%1) has already been received.",array($_POST['registration_number'],$r->status)));
+
+ }
+ else
+ {
+ //make sure all of the statuses are correct
+ $statusstudent=studentStatus($reg_id);
+ $statusemergencycontact=emergencycontactStatus($reg_id);
+ $statusproject=projectStatus($reg_id);
+ $statusmentor=mentorStatus($reg_id);
+ $statussafety=safetyStatus($reg_id);
+
+ if(
+ $statusstudent == "complete" &&
+ $statusemergencycontact == "complete" &&
+ $statusproject == "complete" &&
+ $statusmentor == "complete" &&
+ $statussafety == "complete"
+ ) {
+ echo "