* @copyright Copyright (c) 2020 Tyler Wrenn * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 **/ require_once("../../globals.php"); use OpenEMR\Common\Csrf\CsrfUtils; use OpenEMR\Core\Header; if (!$encounter) { die(xlt("Internal Error: We do not seem to be in an encounter!")); } if ($_POST) { if (!empty($_POST['docid'])) { $setdocid = "UPDATE `form_handwritten` SET `value` = ? WHERE `name` = 'doc_category'"; sqlStatement($setdocid, [$_POST['docid']]); echo xlt("Your data has been saved."); } } function getDocCats() { $output = ""; // Get document categories $sql = "SELECT `id`, `name` FROM `categories`"; $categories = sqlStatement($sql); while ($cat = sqlFetchArray($categories)) { $output .= '\n'; } return $output; } ?> <?php echo xlt("Handwritten Notes"); ?>