EXAMPLE code block below (can be deleted if not using form) --> <form name ="approvefamilyprofile" method="post"> <?php echo generateTokenField(); ?> <h1> Approve Family Profile Form </h1> <br><br> <?php '<title>$title</title>'; //gets the family profileID and retrieves the fields into an array to validate the input changes //and to display in the html form if (isset($_GET['family'])) { $familyID = sanitize($_GET['family']); $Profile = array(); $familyProfile = retrieve_dbFamilyProfile($familyID); $Profile['parentfname'] = $familyProfile->get_parentfname(); $Profile['parentlname'] = $familyProfile->get_parentlname(); $Profile['parentemail'] = $familyProfile->get_parentemail(); $Profile['parentphone1'] = $familyProfile->get_parentphone1(); $Profile['parentphone2'] = $familyProfile->get_parentphone2(); $Profile['parentcity'] = $familyProfile->get_parentcity(); $Profile['parentstate'] = $familyProfile->get_parentstate(); $Profile['parentzip'] = $familyProfile->get_parentzip(); $Profile['parentcountry'] = $familyProfile->get_parentcountry(); $Profile['patientfname'] = $familyProfile->get_patientfname(); $Profile['patientlname'] = $familyProfile->get_patientlname(); $Profile['patientrelation'] = $familyProfile->get_patientrelation(); $Profile['patientdob'] = $familyProfile->get_patientdob(); $Profile['patientformpdf'] = $familyProfile->get_patientformpdf(); $Profile['patientnotes'] = $familyProfile->get_patientnotes();
EXAMPLE code block below (can be deleted if not using form) --> <form name ="approverequestmodify" method="post"> <?php echo generateTokenField(); ?> <h1> Approve Room Requested Modification Form </h1> <br><br> <?php '<title>$title</title>'; //gets the family profileID and retrieves the fields into an array to validate the input changes //and to display in the html form if (isset($_GET['family'])) { $familyID = sanitize($_GET['family']); $Request = array(); $modifyRequest = retrieve_dbFamilyProfile($familyID); $roomReservationActivityID = $roomReservationActivityID; $Request['RequestID'] = $reservation->get_roomReservationRequestID(); $Request['FProfileID'] = $reservation->get_familyProfileId(); $Request['SWProfileID'] = $reservation->get_socialWorkerProfileId(); $Request['DateSubmitted'] = $reservation->get_swDateStatusSubmitted(); $Request['activity'] = $reservation->get_activityType(); $Request['begindate'] = $reservation->get_beginDate(); $Request['enddate'] = $reservation->get_endDate(); $Request['diagnosis'] = $reservation->get_patientDiagnosis(); $Request['roomnote'] = $reservation->get_roomnote(); } 'Modify Existing Request</br> Request ID:' . $Request['RequestID'] . '</br> Family Profile ID: ' . $Request['FProfileID'] . '</br> Social Worker Profile ID: ' . $Request['SWProfileID'] . '</br>