diff --git a/admin/award_upload.php b/admin/award_upload.php index 670fb9d8..f1fb593d 100644 --- a/admin/award_upload.php +++ b/admin/award_upload.php @@ -53,7 +53,6 @@ function get_winners($awardid, $fairs_id) $student_fields = array('firstname' => 'firstname', 'lastname' => 'lastname', 'email' => 'email', - 'gender' => 'sex', 'grade' => 'grade', 'language' => 'lang', 'birthdate' => 'dateofbirth', diff --git a/admin/cwsfregister.php b/admin/cwsfregister.php index f03f44a2..e1adc6ef 100644 --- a/admin/cwsfregister.php +++ b/admin/cwsfregister.php @@ -83,7 +83,6 @@ function get_cwsf_award_winners() 'firstname' => $s->firstname, 'lastname' => $s->lastname, 'email' => $s->email, - 'gender' => $s->sex, 'grade' => $s->grade, 'language' => $s->lang, 'birthdate' => $s->dateofbirth, diff --git a/admin/reports_students.inc.php b/admin/reports_students.inc.php index 6bfe34e7..823ed646 100644 --- a/admin/reports_students.inc.php +++ b/admin/reports_students.inc.php @@ -349,13 +349,6 @@ $report_students_fields = array( 'table_sort' => 'students.grade', 'table' => "CONCAT('Grade ', students.grade)" ), - 'gender' => array( - 'name' => 'Student -- Gender', - 'header' => 'Gender', - 'width' => 0.5, - 'table' => 'students.sex', - 'value_map' => array('male' => 'Male', 'female' => 'Female') - ), 'birthdate' => array( 'name' => 'Student -- Birthdate', 'header' => 'Birthdate', diff --git a/register_participants.inc.php b/register_participants.inc.php index 1e7722c1..23695ccd 100644 --- a/register_participants.inc.php +++ b/register_participants.inc.php @@ -55,7 +55,7 @@ function studentStatus($reg_id = '') { global $config, $pdo; if ($config['participant_student_personal'] == 'yes') - $required_fields = array('firstname', 'lastname', 'address', 'city', 'postalcode', 'phone', 'email', 'grade', 'dateofbirth', 'schools_id', 'sex'); + $required_fields = array('firstname', 'lastname', 'address', 'city', 'postalcode', 'phone', 'email', 'grade', 'dateofbirth', 'schools_id'); else $required_fields = array('firstname', 'lastname', 'email', 'grade', 'schools_id'); diff --git a/register_participants_students.php b/register_participants_students.php index 8299d796..dfb28448 100644 --- a/register_participants_students.php +++ b/register_participants_students.php @@ -104,12 +104,11 @@ if (get_value_from_array($_POST, 'action') == 'save') { } // INSERT new record $dob = $_POST['year'][$x] . '-' . $_POST['month'][$x] . '-' . $_POST['day'][$x]; - $stmt = $pdo->prepare('INSERT INTO students (registrations_id,firstname,lastname,pronunciation,sex,email,address,city,county,province,postalcode,phone,dateofbirth,grade,schools_id,tshirt,medicalalert,foodreq,teachername,teacheremail,year) VALUES (' + $stmt = $pdo->prepare('INSERT INTO students (registrations_id,firstname,lastname,pronunciation,email,address,city,county,province,postalcode,phone,dateofbirth,grade,schools_id,tshirt,medicalalert,foodreq,teachername,teacheremail,year) VALUES (' . "'" . $_SESSION['registration_id'] . "', " . "'" . stripslashes($_POST['firstname'][$x]) . "', " . "'" . stripslashes($_POST['lastname'][$x]) . "', " . "'" . stripslashes($_POST['pronunciation'][$x]) . "', " - . "'" . stripslashes($_POST['sex'][$x]) . "', " . "'" . stripslashes($_POST['email'][$x]) . "', " . "'" . stripslashes($_POST['address'][$x]) . "', " . "'" . stripslashes($_POST['city'][$x]) . "', " @@ -144,7 +143,6 @@ if (get_value_from_array($_POST, 'action') == 'save') { . "firstname='" . stripslashes($_POST['firstname'][$x]) . "', " . "lastname='" . stripslashes($_POST['lastname'][$x]) . "', " . "pronunciation='" . stripslashes($_POST['pronunciation'][$x]) . "', " - . "sex='" . stripslashes($_POST['sex'][$x]) . "', " . "email='" . stripslashes($_POST['email'][$x]) . "', " . "address='" . stripslashes($_POST['address'][$x]) . "', " . "city='" . stripslashes($_POST['city'][$x]) . "', " @@ -289,29 +287,12 @@ for ($x = 1; $x <= $numtoshow; $x++) { echo "\n"; } - if ($config['participant_student_personal'] == 'yes') { - echo "