forked from science-ation/science-ation
Properly do the namecheck for multiple student
This commit is contained in:
parent
300e76c3c0
commit
cebe0d2ea7
@ -47,8 +47,13 @@
|
|||||||
exit;
|
exit;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
$namecheck_complete="yes";
|
||||||
while($s=mysql_fetch_object($q))
|
while($s=mysql_fetch_object($q))
|
||||||
|
{
|
||||||
$student_display_name[] = "{$s->firstname} {$s->lastname}";
|
$student_display_name[] = "{$s->firstname} {$s->lastname}";
|
||||||
|
if($s->namecheck_complete=="no")
|
||||||
|
$namecheck_complete="no";
|
||||||
|
}
|
||||||
|
|
||||||
//send the header
|
//send the header
|
||||||
send_header("Participant Registration - Check Your Name");
|
send_header("Participant Registration - Check Your Name");
|
||||||
@ -78,7 +83,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//output the current status
|
//output the current status
|
||||||
$newstatus=namecheckStatus();
|
$newstatus=namecheckStatus($_SESSION['registration_id']);
|
||||||
if($newstatus!="complete")
|
if($newstatus!="complete")
|
||||||
{
|
{
|
||||||
echo error(i18n("Name Check Incomplete. Please check your name and check all the boxes below"));
|
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(
|
the %1Student Information%2 page and correct it. ', array(
|
||||||
'<a href="register_participants_students.php">', '</a>'));
|
'<a href="register_participants_students.php">', '</a>'));
|
||||||
echo '<br /><br />';
|
echo '<br /><br />';
|
||||||
|
echo "<table class=\"summarytable\">";
|
||||||
foreach($student_display_name AS $sn)
|
foreach($student_display_name AS $sn)
|
||||||
echo "<table class=\"summarytable\"><tr><td><span style=\"font-size: 4.0em; font-weight: bold\"> $sn </span></td></tr></table>";
|
echo "<tr><td><span style=\"font-size: 4.0em; font-weight: bold\"> $sn </span></td></tr>";
|
||||||
|
echo "</table>";
|
||||||
echo '<br /><br />';
|
echo '<br /><br />';
|
||||||
echo i18n('Please confirm that:');
|
echo i18n('Please confirm that:');
|
||||||
echo '<br />';
|
echo '<br />';
|
||||||
@ -113,7 +120,7 @@ else if($newstatus=="complete")
|
|||||||
echo "<form method=\"post\" action=\"register_participants_namecheck.php\">\n";
|
echo "<form method=\"post\" action=\"register_participants_namecheck.php\">\n";
|
||||||
echo "<input type=\"hidden\" name=\"action\" value=\"save\">\n";
|
echo "<input type=\"hidden\" name=\"action\" value=\"save\">\n";
|
||||||
|
|
||||||
$ch = ($s->namecheck_complete == 'yes') ? 'checked="checked"' : '';
|
$ch = ($namecheck_complete == 'yes') ? 'checked="checked"' : '';
|
||||||
|
|
||||||
echo "<input type=\"checkbox\" name=\"spelling\" value=\"yes\" $ch /> ".i18n('My name is correctly spelled');
|
echo "<input type=\"checkbox\" name=\"spelling\" value=\"yes\" $ch /> ".i18n('My name is correctly spelled');
|
||||||
echo '<br />';
|
echo '<br />';
|
||||||
|
Loading…
Reference in New Issue
Block a user