Copyright (C) 2005 James Grant Copyright (C) 2007 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. */ ?> "{$type}_main.php") ); if($_POST['action']=="save") { /* Set values */ foreach($fields as $f) { $u[$f] = mysql_escape_string(stripslashes($_POST[$f])); } user_save($u); echo notice(i18n("%1 %2 successfully updated",array($_POST['firstname'],$_POST['lastname']))); } // updateJudgeCompleteStatus($judgeinfo); //output the current status $newstatus=user_personal_info_status($u); if($newstatus!='complete') { echo error(i18n("Personal Information Incomplete")); } else { echo happy(i18n("Personal Information Complete")); } function item($user, $text, $fname) { global $fields, $required; if(in_array($fname, $fields)) { echo ''.i18n($text).''; echo ""; if(in_array($fname, $required)) echo REQUIREDFIELD; echo ''; } else { echo ''; } } echo "
\n"; echo "\n"; echo "\n"; echo "\n"; item($u, "First Name", 'firstname'); item($u, "Last Name", 'lastname'); echo "\n"; echo "\n"; item($u, "Email Address", 'email'); echo ""; echo "\n"; echo "\n"; item($u, "Address 1", 'address'); item($u, "Address 2", 'address2'); echo "\n"; echo "\n"; item($u, "City", 'city'); if(in_array('province', $fields)) { echo ''; echo ''; } else { echo ''; } echo "\n"; echo "\n"; item($u, "Postal Code", 'postalcode'); echo ""; echo "\n"; echo ""; item($u, "Phone (Home)", 'phonehome'); item($u, "Phone (Cell)", 'phonecell'); echo "\n"; echo "\n"; item($u, "Organization", 'organization'); item($u, "Phone (Work)", 'phonework'); echo ""; echo "\n"; item($u, "Fax", 'fax'); echo ''; echo ""; echo ""; echo "
'.i18n('Province').''; emit_province_selector("province",$judgeinfo->province,"onchange=\"fieldChanged()\""); if(in_array('province', $required)) echo REQUIREDFIELD; echo '

"; echo "\n"; echo "
"; echo "
"; send_footer(); ?>