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 @@ +<< ".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 "
\n"; + echo "\n"; + echo "\n"; + + $q=mysql_query("SELECT * FROM safetyquestions ORDER BY ord"); + $num=1; + while($r=mysql_fetch_object($q)) + { + + echo ""; + echo ""; + echo ""; + $num++; + } + echo "
$num. ".i18n($r->question).""; + if($r->type=="check") + { + echo "id]\" value=\"checked\" />"; + } + echo "
"; + echo "\n"; + 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;