diff --git a/database.mwb b/database.mwb index 11189fc..5cc3a11 100644 Binary files a/database.mwb and b/database.mwb differ diff --git a/public/parts/template_person.php b/public/parts/template_person.php index 38fdcae..d359d59 100644 --- a/public/parts/template_person.php +++ b/public/parts/template_person.php @@ -15,7 +15,7 @@ if (!empty($_GET["type"]) && preg_match("/^(camper|adult|youth)$/", $_GET["type" $type = $persontype; } -$personinfo = ["firstname" => "", "lastname" => "", "address" => "", "zip" => "", "phone1" => "", "phone2" => "", "email" => "", "unit" => "", "shirt" => ""]; +$personinfo = ["firstname" => "", "lastname" => "", "address" => "", "zip" => "", "phone1" => "", "phone2" => "", "email" => "", "unit" => "", "shirt" => "", "sex" => ""]; switch ($type) { case "camper": @@ -234,7 +234,20 @@ if (isset($personid) && $database->has('people', ['personid' => $personid])) { "A2" => "Adult 2X Large" ], "error" => "Choose a shirt size." - ] + ], + [ + "label" => "Gender", + "name" => "sex", + "type" => "select", + "width" => 3, + "value" => $personinfo["sex"], + "options" => [ + "" => "Choose...", + "M" => "Male", + "F" => "Female" + ], + "error" => "Choose a gender." + ], ]); foreach ($textboxes as $item) {