2004-11-30 23:18:35 +00:00
< ?
require ( " common.inc.php " );
2004-12-02 19:40:43 +00:00
include " register_participants.inc.php " ;
2004-11-30 23:18:35 +00:00
//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.name 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' ]);
2004-11-30 23:38:13 +00:00
echo mysql_error ();
2004-11-30 23:18:35 +00:00
if ( mysql_num_rows ( $q ) == 0 )
{
2004-11-30 23:38:13 +00:00
echo " error " ;
// header("Location: register_participants.php");
2004-11-30 23:18:35 +00:00
exit ;
}
$r = mysql_fetch_object ( $q );
2004-12-02 19:40:43 +00:00
send_header ( " Participant Registration - Summary " );
2004-12-02 19:03:53 +00:00
echo i18n ( " Hello <b>%1</b> " , array ( $r -> name ));
echo " <br /> " ;
echo " <br /> " ;
echo i18n ( " Please use the checklist below to complete your registration. Click on an item in the table to edit that information. When you have entered all information, the <b>Status</b> field will change to <b>Complete</b> " );
echo " <br /> " ;
echo " <br /> " ;
echo " <table class= \" summarytable \" > " ;
echo " <tr><th> " . i18n ( " Registration Item " ) . " </th><th> " . i18n ( " Status " ) . " </th></tr> " ;
//participant information
2004-12-02 19:40:43 +00:00
echo " <tr><td> " ;
echo " <a href= \" register_participants_students.php \" > " ;
echo i18n ( " Student Information " );
echo " </a> " ;
echo " </td><td> " ;
$status = studentStatus ();
switch ( $status )
{
case 'incomplete' :
echo " <div class= \" incomplete \" > " ;
echo i18n ( " Incomplete " );
echo " </div> " ;
break ;
case 'complete' :
echo " <div class= \" complete \" > " ;
echo i18n ( " Complete " );
echo " </div> " ;
break ;
default :
break ;
}
2004-12-02 19:03:53 +00:00
//check to see if its complete
echo " </td></tr> " ;
//project information
echo " <tr><td> " . i18n ( " Project Information " ) . " </td><td> " ;
//check to see if its complete
echo " </td></tr> " ;
//safety information
echo " <tr><td> " . i18n ( " Safety Information " ) . " </td><td> " ;
//check to see if its complete
echo " </td></tr> " ;
//signature page
echo " <tr><td> " . i18n ( " Signature Page " ) . " </td><td> " ;
//check to see if its complete
echo " </td></tr> " ;
//received information
echo " <tr><td> " . i18n ( " Signature Page Received " ) . " </td><td> " ;
//check to see if its complete
echo " </td></tr> " ;
echo " </table> " ;
echo " <br /><br /> " ;
2004-11-30 23:18:35 +00:00
send_footer ();
?>