diff --git a/register_participants_namecheck.php b/register_participants_namecheck.php index 61beb16..4fe1a00 100644 --- a/register_participants_namecheck.php +++ b/register_participants_namecheck.php @@ -47,8 +47,13 @@ exit; } + $namecheck_complete="yes"; while($s=mysql_fetch_object($q)) + { $student_display_name[] = "{$s->firstname} {$s->lastname}"; + if($s->namecheck_complete=="no") + $namecheck_complete="no"; + } //send the header send_header("Participant Registration - Check Your Name"); @@ -78,7 +83,7 @@ } //output the current status -$newstatus=namecheckStatus(); +$newstatus=namecheckStatus($_SESSION['registration_id']); if($newstatus!="complete") { echo error(i18n("Name Check Incomplete. Please check your name and check all the boxes below")); @@ -104,8 +109,10 @@ else if($newstatus=="complete") the %1Student Information%2 page and correct it. ', array( '', '')); echo '

'; + echo ""; foreach($student_display_name AS $sn) - echo "
 $sn 
"; + echo " $sn "; + echo ""; echo '

'; echo i18n('Please confirm that:'); echo '
'; @@ -113,7 +120,7 @@ else if($newstatus=="complete") echo "
\n"; echo "\n"; - $ch = ($s->namecheck_complete == 'yes') ? 'checked="checked"' : ''; + $ch = ($namecheck_complete == 'yes') ? 'checked="checked"' : ''; echo " ".i18n('My name is correctly spelled'); echo '
';