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
;
20 <title
><?php
echo xlt("Rx Log"); ?
></title
>
21 <?php Header
::setupHeader(); ?
>
24 <body
class="body_top">
25 <h1
><?php
print xlt("Rx Log"); ?
></h1
>
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>
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>";