* @copyright Copyright (c) 2020 Sherwin Gaddis * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ require_once("../globals.php"); use OpenEMR\Common\Acl\AclMain; use OpenEMR\Common\Csrf\CsrfUtils; use OpenEMR\Common\Twig\TwigContainer; use OpenEMR\Core\Header; use OpenEMR\Rx\Weno\FacilityProperties; //ensure user has proper access if (!AclMain::aclCheckCore('admin', 'super')) { echo (new TwigContainer(null, $GLOBALS['kernel']))->getTwig()->render('core/unauthorized.html.twig', ['pageTitle' => xl("Weno Admin")]); exit; } $data = new FacilityProperties(); if ($_POST) { if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token"])) { CsrfUtils::csrfNotVerified(); } $data->facilityupdates = $_POST; $data->updateFacilityNumber(); } $facilities = $data->getFacilities(); ?> <?php echo xlt('Weno Admin'); ?>


"; print ""; print ""; print ""; ++$i; } ?>
" . text($facility["name"]) . "" . text($facility['street']) . "" . text($facility['city']) . "