|
|
|
@ -191,12 +191,29 @@ if (!empty($VARS['id']) && $database->has('people', ['personid' => $VARS['id']])
|
|
|
|
|
"value" => $data["phone1"],
|
|
|
|
|
"pattern" => "[0-9]{10}",
|
|
|
|
|
"error" => "Enter a 10-digit phone number (numbers only)."
|
|
|
|
|
],
|
|
|
|
|
]
|
|
|
|
|
]);
|
|
|
|
|
if ($type == "camper") {
|
|
|
|
|
$textboxes = array_merge($textboxes, [
|
|
|
|
|
[
|
|
|
|
|
"label" => "Alt. Phone Number",
|
|
|
|
|
"name" => "phone2",
|
|
|
|
|
"type" => "tel",
|
|
|
|
|
"maxlength" => 20,
|
|
|
|
|
"width" => 3,
|
|
|
|
|
"value" => $data["phone2"],
|
|
|
|
|
"optional" => true,
|
|
|
|
|
"pattern" => "[0-9]{10}",
|
|
|
|
|
"error" => "Enter a 10-digit phone number (numbers only)."
|
|
|
|
|
]
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
$textboxes = array_merge($textboxes, [
|
|
|
|
|
[
|
|
|
|
|
"label" => "Email",
|
|
|
|
|
"name" => "email",
|
|
|
|
|
"maxlength" => 255,
|
|
|
|
|
"width" => 5,
|
|
|
|
|
"width" => 4,
|
|
|
|
|
"type" => "email",
|
|
|
|
|
"value" => $data["email"],
|
|
|
|
|
"error" => "Enter your email address."
|
|
|
|
@ -236,7 +253,7 @@ if (!empty($VARS['id']) && $database->has('people', ['personid' => $VARS['id']])
|
|
|
|
|
[
|
|
|
|
|
"label" => "Parent Name",
|
|
|
|
|
"name" => "parentname",
|
|
|
|
|
"width" => 4,
|
|
|
|
|
"width" => 5,
|
|
|
|
|
"maxlength" => 255,
|
|
|
|
|
"value" => $data["parentname"],
|
|
|
|
|
"error" => "Enter the parent or guardian's full name."
|
|
|
|
@ -303,6 +320,7 @@ if (!empty($VARS['id']) && $database->has('people', ['personid' => $VARS['id']])
|
|
|
|
|
"name" => "shirt",
|
|
|
|
|
"type" => "select",
|
|
|
|
|
"value" => $data["shirt"],
|
|
|
|
|
"width" => 3,
|
|
|
|
|
"options" => [
|
|
|
|
|
"" => "Choose...",
|
|
|
|
|
"NO" => "No Shirt",
|
|
|
|
@ -336,7 +354,7 @@ if (!empty($VARS['id']) && $database->has('people', ['personid' => $VARS['id']])
|
|
|
|
|
[
|
|
|
|
|
"label" => "Den",
|
|
|
|
|
"name" => "den",
|
|
|
|
|
"width" => 5,
|
|
|
|
|
"width" => 3,
|
|
|
|
|
"maxlength" => 255,
|
|
|
|
|
"value" => $data["den"],
|
|
|
|
|
"optional" => true,
|
|
|
|
|