forked from science-ation/science-ation
use the function to check complete status, and only after it has saved whatever was posted so the display is correct.
This commit is contained in:
parent
d61fa75b0d
commit
d017f6ff3c
@ -47,14 +47,6 @@
|
|||||||
exit;
|
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 the header
|
||||||
send_header("Participant Registration - Check Your Name");
|
send_header("Participant Registration - Check Your Name");
|
||||||
|
|
||||||
@ -84,12 +76,10 @@
|
|||||||
|
|
||||||
//output the current status
|
//output the current status
|
||||||
$newstatus=namecheckStatus($_SESSION['registration_id']);
|
$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"));
|
||||||
}
|
}
|
||||||
else if($newstatus=="complete")
|
else if($newstatus=="complete") {
|
||||||
{
|
|
||||||
echo happy(i18n("Name Check Complete"));
|
echo happy(i18n("Name Check Complete"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,7 +110,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 = ($namecheck_complete == 'yes') ? 'checked="checked"' : '';
|
$ch = ($newstatus == 'complete') ? '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