diff --git a/register_participants.inc.php b/register_participants.inc.php
index 9ce2281..a41ddfd 100644
--- a/register_participants.inc.php
+++ b/register_participants.inc.php
@@ -114,6 +114,11 @@ function mentorStatus()
}
+function safetyStatus()
+{
+ return "incomplete";
+
+}
?>
diff --git a/register_participants_main.php b/register_participants_main.php
index 3350df4..e6348a8 100644
--- a/register_participants_main.php
+++ b/register_participants_main.php
@@ -84,8 +84,16 @@ echo outputStatus($status);
echo "";
//safety information
-echo "
".i18n("Safety Information")." | ";
+echo " |
";
+if($status=="complete")
+ echo "";
+echo i18n("Safety Information");
+if($status=="complete")
+ echo "";
+echo " | ";
//check to see if its complete
+$status=safetyStatus();
+echo outputStatus($status);
echo " |
";
//signature page
diff --git a/register_participants_safety.php b/register_participants_safety.php
new file mode 100644
index 0000000..13ecae8
--- /dev/null
+++ b/register_participants_safety.php
@@ -0,0 +1,105 @@
+
+ require("common.inc.php");
+ include "register_participants.inc.php";
+
+ //authenticate based on email address and registration number from the SESSION
+ if(!$_SESSION['email'])
+ {
+ header("Location: register_participants.php");
+ exit;
+ }
+ if(!$_SESSION['registration_number'])
+ {
+ header("Location: register_participants.php");
+ exit;
+ }
+
+ $q=mysql_query("SELECT registrations.id AS regid, students.id AS studentid, students.firstname FROM registrations,students ".
+ "WHERE students.email='".$_SESSION['email']."' ".
+ "AND registrations.num='".$_SESSION['registration_number']."' ".
+ "AND registrations.id='".$_SESSION['registration_id']."' ".
+ "AND students.registrations_id=registrations.id ".
+ "AND registrations.year=".$config['FAIRYEAR']." ".
+ "AND students.year=".$config['FAIRYEAR']);
+echo mysql_error();
+
+ if(mysql_num_rows($q)==0)
+ {
+ header("Location: register_participants.php");
+ exit;
+
+ }
+ $authinfo=mysql_fetch_object($q);
+
+ //send the header
+ send_header("Participant Registration - Safety Information");
+
+ echo "<< ".i18n("Back to Participant Registration Summary")."
";
+ echo "
";
+
+ if($_POST['action']=="save")
+ {
+ /*
+ do nothing yet
+ //first, lets make sure this project really does belong to them
+ $q=mysql_query("SELECT * FROM projects WHERE id='".$_POST['id']."' AND registrations_id='".$_SESSION['registration_id']."' AND year='".$config['FAIRYEAR']."'");
+ if(mysql_num_rows($q)==1)
+ {
+ mysql_query("UPDATE projects SET ".
+ "title='".mysql_escape_string(stripslashes($_POST['title']))."', ".
+ "projectdivisions_id='".$_POST['projectdivisions_id']."', ".
+ "language='".mysql_escape_string(stripslashes($_POST['language']))."', ".
+ "req_table='".mysql_escape_string(stripslashes($_POST['req_table']))."', ".
+ "req_electricity='".mysql_escape_string(stripslashes($_POST['req_electricity']))."', ".
+ "req_special='".mysql_escape_string(stripslashes($_POST['req_special']))."', ".
+ "summary='".mysql_escape_string(stripslashes($_POST['summary']))."' ".
+ "WHERE id='".$_POST['id']."'");
+ echo mysql_error();
+ echo notice(i18n("Safety information successfully updated"));
+ }
+ else
+ {
+ echo error(i18n("Invalid project to update"));
+ }
+*/
+ }
+
+
+//output the current status
+$newstatus=safetyStatus();
+if($newstatus!="complete")
+{
+ echo error(i18n("Safety Information Incomplete"));
+}
+else if($newstatus=="complete")
+{
+ echo happy(i18n("Safety Information Complete"));
+
+}
+
+ echo "";
+
+
+ send_footer();
+?>
diff --git a/sfiab.css b/sfiab.css
index 5b862ac..11b2744 100644
--- a/sfiab.css
+++ b/sfiab.css
@@ -7,6 +7,10 @@ body
background: #E0E0FF;
}
+td {
+ vertical-align: top;
+
+}
#header {
height: 50px;
text-align: center;