bug fix (#7559)
[openemr.git] / interface / patient_file / reminder / active_reminder_popup.php
blob8c81bd8a1d26e7e4145cd178d1e74dcc5a230bff
1 <?php
3 /**
4 * active reminder popup gui
6 * @package OpenEMR
7 * @link http://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2011-2018 Brady Miller <brady.g.miller@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 require_once("../../globals.php");
14 require_once("$srcdir/clinical_rules.php");
16 use OpenEMR\Core\Header;
19 <html>
20 <head>
21 <?php Header::setupHeader('opener'); ?>
22 </head>
24 <body class="body_top">
26 <table class="table border-0">
27 <tr>
29 <?php
30 $all_allergy_alerts = array();
31 if ($GLOBALS['enable_allergy_check']) {
32 // Will show allergy and medication/prescription conflicts here
33 $all_allergy_alerts = allergy_conflict($pid, 'all', $_SESSION['authUser']);
36 $active_alerts = active_alert_summary($pid, "reminders-due", '', 'default', $_SESSION['authUser']);
39 <td><span class="title">
40 <?php
41 if (!empty($active_alerts) && empty($all_allergy_alerts)) {
42 echo xlt("Alerts/Reminders");
43 } elseif (!empty($active_alerts) && !empty($all_allergy_alerts)) {
44 echo xlt("WARNINGS and Alerts/Reminders");
45 } else { // empty($active_alerts) && !empty($all_allergy_alerts)
46 echo xlt("WARNINGS");
50 </span>&nbsp;&nbsp;&nbsp;</td>
51 <td>
52 <a href="#" id="close" class="btn btn-secondary btn-lg" onclick="dlgclose(); return false;"><?php echo xlt('Close');?></a>
53 </td>
54 </tr>
55 </table>
56 <br />
57 <?php
58 if (!empty($all_allergy_alerts)) {
59 foreach ($all_allergy_alerts as $allergy) {
60 echo xlt("ALLERGY WARNING") . ":" . text($allergy) . "<br />";
62 echo "<br />";
65 echo $active_alerts;
67 </body>
68 </html>