translation constant fixes (#1514)
[openemr.git] / interface / weno / admin.php
blob57d0ed72b4d7125abe06a75d08e033fef2f3b0c3
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 <h3><?php echo xlt("Select State and City to Import for Pharmacy"); ?></h3>
60 <form method="post" action="import_pharmacies.php" class="form-inline text-center">
62 <div class="row text-center">
63 <div class="form-group well col-lg-5 text-center">
64 <?php echo generate_form_field(array('data_type' => $GLOBALS['state_data_type'], 'list_id' => $GLOBALS['state_list'], 'field_id' => 'state'), ''); ?>
65 <input type="text" class="form-control" id="form_city" name="form_city" placeholder="<?php echo xla('Enter City')?>"><br/><br/>
66 <button type="submit" class="btn btn-default n-save" value=><?php echo xlt("Import Pharmacies"); ?></button>
67 <h4><?php echo xlt("Be patient, this can take a while."); ?></h4>
68 </div>
69 </div>
71 </form>
72 <br><br>
74 <?php if (!empty($finish)) {
75 echo $finish . xlt("with import");
76 } ?>
78 </div>
79 <script>
80 $(document).ready(function(){
81 $("#addtolistid_state").hide();
82 });
83 </script>
84 </body>
85 </html>