6 * @link http://www.open-emr.org
7 * @author Sherwin Gaddis <sherwingaddis@gmail.com>
8 * @copyright Copyright (c) 2016-2017 Sherwin Gaddis <sherwingaddis@gmail.com>
9 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
12 require_once('../globals.php');
13 require_once("$srcdir/options.inc.php");
14 use OpenEMR\Core\Header
;
15 use OpenEMR\Rx\Weno\AdminProperties
;
17 $tables = new AdminProperties();
21 <html xmlns
="http://www.w3.org/1999/html">
23 <title
><?php
print xlt("Weno Admin"); ?
></title
>
24 <?php Header
::setupHeader(); ?
>
28 .row
.text
-center
> div
{
29 display
: inline
-block
;
33 <body
class="body_top text-center">
34 <div
class="container center-block">
37 // check to make sure only administrators access this page.
38 if (!acl_check('admin', 'super')) {
39 die(xlt("You are not authorized!"));
42 if ($GLOBALS['weno_rx_enable'] != 1) {
43 print xlt("You must activate Weno first! Go to Administration, Globals, Connectors");
46 print xlt("Weno Service is Enabled")."<br><br>";
49 $drugData = $tables->drugTableInfo();
50 if (!$drugData['ndc']) {
51 echo "<a href='drugPaidInsert.php' class='btn btn-default'>".xlt("Import Formularies")."</a> <br>".xlt("Be patient, this can take a while.");
53 print xlt("Formularies inserted into table")."<br>";
60 <?php
if (!empty($finish)) {
61 echo $finish . xlt("with import");
66 $
(document
).ready(function(){
67 $
("#addtolistid_state").hide();