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>";
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
>
74 <?php
if (!empty($finish)) {
75 echo $finish . xlt("with import");
80 $
(document
).ready(function(){
81 $
("#addtolistid_state").hide();