quick minor path updates (#1968)
[openemr.git] / interface / weno / admin.php
blobfa47895d5ac76354d6561bff5d2eab593ba11886
1 <?php
2 /**
3 * weno admin.
5 * @package OpenEMR
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();
20 <!DOCTYPE html>
21 <html xmlns="http://www.w3.org/1999/html">
22 <head>
23 <title><?php print xlt("Weno Admin"); ?></title>
24 <?php Header::setupHeader(); ?>
26 </head>
27 <style>
28 .row.text-center > div {
29 display: inline-block;
30 float: none;
32 </style>
33 <body class="body_top text-center">
34 <div class="container center-block">
35 <?php
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");
44 exit;
45 } else {
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.");
52 } else {
53 print xlt("Formularies inserted into table")."<br>";
58 <br><br>
60 <?php if (!empty($finish)) {
61 echo $finish . xlt("with import");
62 } ?>
64 </div>
65 <script>
66 $(document).ready(function(){
67 $("#addtolistid_state").hide();
68 });
69 </script>
70 </body>
71 </html>