|
|
@ -26,8 +26,8 @@ if (isset($_SESSION['familyid']) && $database->has('families', ['familyid' => $_
|
|
|
|
$familyinfo = $database->get("families", ['familyname', 'phone', 'email', 'address', 'city', 'state', 'zip', 'father_name (fathername)', 'mother_name (mothername)', 'newsletter_method'], ['familyid' => $_SESSION['familyid']]);
|
|
|
|
$familyinfo = $database->get("families", ['familyname', 'phone', 'email', 'address', 'city', 'state', 'zip', 'father_name (fathername)', 'mother_name (mothername)', 'newsletter_method'], ['familyid' => $_SESSION['familyid']]);
|
|
|
|
$children = $database->select("people", 'personid', ['familyid' => $_SESSION['familyid']]);
|
|
|
|
$children = $database->select("people", 'personid', ['familyid' => $_SESSION['familyid']]);
|
|
|
|
$familyname = $familyinfo['familyname'];
|
|
|
|
$familyname = $familyinfo['familyname'];
|
|
|
|
$fathername = $familyinfo['fathername'];
|
|
|
|
$fathername = $familyinfo['fathername'] ?? "";
|
|
|
|
$mothername = $familyinfo['mothername'];
|
|
|
|
$mothername = $familyinfo['mothername'] ?? "";
|
|
|
|
$streetaddress = $familyinfo['address'];
|
|
|
|
$streetaddress = $familyinfo['address'];
|
|
|
|
$city = $familyinfo['city'];
|
|
|
|
$city = $familyinfo['city'];
|
|
|
|
$state = $familyinfo['state'];
|
|
|
|
$state = $familyinfo['state'];
|
|
|
@ -102,7 +102,8 @@ if (isset($_SESSION['familyid']) && $database->has('families', ['familyid' => $_
|
|
|
|
"name" => "fathername",
|
|
|
|
"name" => "fathername",
|
|
|
|
"maxlength" => 255,
|
|
|
|
"maxlength" => 255,
|
|
|
|
"value" => $fathername,
|
|
|
|
"value" => $fathername,
|
|
|
|
"error" => "Enter the father's name."
|
|
|
|
"error" => "Enter the father's name.",
|
|
|
|
|
|
|
|
"optional" => true
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
[
|
|
|
|
"label" => "Mother's Name",
|
|
|
|
"label" => "Mother's Name",
|
|
|
@ -110,7 +111,8 @@ if (isset($_SESSION['familyid']) && $database->has('families', ['familyid' => $_
|
|
|
|
"name" => "mothername",
|
|
|
|
"name" => "mothername",
|
|
|
|
"maxlength" => 255,
|
|
|
|
"maxlength" => 255,
|
|
|
|
"value" => $mothername,
|
|
|
|
"value" => $mothername,
|
|
|
|
"error" => "Enter the mother's name."
|
|
|
|
"error" => "Enter the mother's name.",
|
|
|
|
|
|
|
|
"optional" => true
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
|
|
|
[
|
|
|
|
"label" => "Street Address",
|
|
|
|
"label" => "Street Address",
|
|
|
@ -266,7 +268,10 @@ if (isset($_SESSION['familyid']) && $database->has('families', ['familyid' => $_
|
|
|
|
value="<?php echo htmlspecialchars($item['value']); ?>"
|
|
|
|
value="<?php echo htmlspecialchars($item['value']); ?>"
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>required />
|
|
|
|
if (empty($item['optional'])) {
|
|
|
|
|
|
|
|
echo " required ";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?> />
|
|
|
|
<?php } else if ($item['type'] == "select") { ?>
|
|
|
|
<?php } else if ($item['type'] == "select") { ?>
|
|
|
|
<select class="form-control"
|
|
|
|
<select class="form-control"
|
|
|
|
name="<?php echo $item['name']; ?>"
|
|
|
|
name="<?php echo $item['name']; ?>"
|
|
|
|