* @copyright Copyright (c) 2018 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ require_once("../../globals.php"); require_once("$srcdir/api.inc"); use OpenEMR\Common\Csrf\CsrfUtils; use OpenEMR\Core\Header; /** CHANGE THIS - name of the database table associated with this form **/ $table_name = "form_example"; /** CHANGE THIS name to the name of your form **/ $form_name = "My Example Form"; /** CHANGE THIS to match the folder you created for this form **/ $form_folder = "example"; formHeader("Form: ".$form_name); $returnurl = 'encounter_top.php'; /* load the saved record */ $record = formFetch($table_name, $_GET["id"]); /* remove the time-of-day from the date fields */ if ($record['form_date'] != "") { $dateparts = explode(" ", $record['form_date']); $record['form_date'] = $dateparts[0]; } if ($record['dob'] != "") { $dateparts = explode(" ", $record['dob']); $record['dob'] = $dateparts[0]; } if ($record['sig_date'] != "") { $dateparts = explode(" ", $record['sig_date']); $record['sig_date'] = $dateparts[0]; } ?>
" name="my_form">
     
Date: ' title='' />
Name: Date of Birth: ' title='' />
Phone:
Address:
Use this space to express notes


Signature? >Yes / >No    Date of signature: ' title='' />