quick minor path updates (#1968)
[openemr.git] / interface / weno / RxLog.php
blobf84f4aad31627f892707549e23019bd8de3c5b3e
1 <?php
2 /**
3 * weno rxlog.
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
13 require_once("../globals.php");
14 use OpenEMR\Core\Header;
18 <html>
19 <head>
20 <title><?php echo xlt("Rx Log"); ?></title>
21 <?php Header::setupHeader(); ?>
23 </head>
24 <body class="body_top">
25 <h1><?php print xlt("Rx Log"); ?></h1>
26 <?php
28 $log = sqlStatement("SELECT * FROM erx_rx_log ORDER BY id DESC");
30 print "<table width='100%'>";
31 print "<tr align='left'>
33 <th>". xlt("Rx ID") ."</th>
34 <th>". xlt("Date") ."</th>
35 <th>". xlt("Time") ."</th>
36 <th>". xlt("Code") ."</th>
37 <th>". xlt("Status") ."</th>
38 <th>". xlt("Message") ."</th>
39 </tr>";
40 while ($row = sqlFetchArray($log)) {
41 print "<tr><td>" .text($row['prescription_id'])."</td><td>".text(oeFormatShortDate($row['date'])).
42 "</td><td>".text($row['time'])."</td><td>".text($row['code'])."</td><td>".text($row['status']).
43 "</td><td>".text($row['message_id'])."</td></tr>";
45 print "</table>";
47 </body>
48 </html>