Copyright (C) 2005 James Grant Copyright (C) 2008 David Grant This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ ?> firstname} {$s->lastname}"; //send the header send_header("Participant Registration - Check Your Name"); echo "<< ".i18n("Back to Participant Registration Summary")."
"; echo "
"; if($_POST['action']=="save") { if(registrationDeadlinePassed()) { echo error(i18n("Cannot make changes after registration deadline.")); } else { $sp = ($_POST['spelling'] == 'yes') ? true : false; $ca = ($_POST['caps'] == 'yes') ? true : false; $pu = ($_POST['punc'] == 'yes') ? true : false; if($sp && $ca && $pu) { if($s->namecheck_complete!='yes') { $q=mysql_query("UPDATE students SET namecheck_complete='yes' WHERE id='{$_SESSION['students_id']}'"); $s->namecheck_complete = 'yes'; } } else if($s->namecheck_complete!='no') { $q=mysql_query("UPDATE students SET namecheck_complete='no' WHERE id='{$_SESSION['students_id']}'"); $s->namecheck_complete = 'no'; } } } //output the current status $newstatus=namecheckStatus(); if($newstatus!="complete") { echo error(i18n("Name Check Incomplete. Please check your name and check all the boxes below")); } else if($newstatus=="complete") { echo happy(i18n("Name Check Complete")); } echo i18n('Every year there is one participant who realizes that his/her name is spelt wrong after certificates are printed and plaques are engraved. This page has been created in an effort to ensure you are not that student. It is difficult to re-print certificates and even harder to re-engrave a plaque.'); echo '

'; echo i18n('Your name is in the box below. (If you have a partner, your partner can view his/her name by logging in to the participant registration using his/her email address and the same registration number). This is EXACTLY how your name will appear on any certificates, awards, or engraving.'); echo '

'; echo i18n('Just to clarify, EXACTLY means EXACTLY. We will not add upper-case letters if you typed your name in all lower-case. We will not change letters to lower-case if you typed your name in all capitals. And we will not fix any spelling if there is a typo. If your name appears incorrect, please visit the %1Student Information%2 page and correct it. ', array( '', '')); echo '

'; echo "
 $student_display_name 
"; echo '

'; echo i18n('Please confirm that:'); echo '
'; echo '
'; echo "
\n"; echo "\n"; $ch = ($s->namecheck_complete == 'yes') ? 'checked="checked"' : ''; echo " ".i18n('My name is spelt correctly'); echo '
'; echo " ".i18n('The correct letters are capitalized and in lower-case.'); echo '
'; echo " ".i18n('Any required punctuation and accents are present and correct.'); echo '
'; echo '
'; echo "\n"; echo "
"; send_footer(); ?>