bug fixins (#2475)
[openemr.git] / modules / sms_email_reminder / batch_reminders.php
blob21e921edb1012428000825f1d17a0a47c12c62dc
1 <?php
2 // Copyright (C) 2010 OpenEMR Support LLC
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License
5 // as published by the Free Software Foundation; either version 2
6 // of the License, or (at your option) any later version.
8 // comment below exit if plan to use this script
9 exit;
11 $backpic = "";
12 $ignoreAuth=1;
14 require_once(dirname(__FILE__)."/../../interface/globals.php");
15 require_once($GLOBALS['srcdir'] . "/maviq_phone_api.php");
16 require_once($GLOBALS['srcdir'] . "/reminders.php");
19 <html>
20 <head>
21 <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
22 <link rel="stylesheet" href="batchcom.css" type="text/css">
23 </head>
24 <body class="body_top">
25 <span class="title"><?php echo xlt('Patient Reminder Batch Job'); ?></span>
27 <?php
28 // Collect the sender information
29 // TODO
30 // $sender_name
31 // $email_address
35 <table>
36 <tr>
37 <td class='text' align='left' colspan="3"><br>
39 <?php $update_rem_log = update_reminders(); ?>
41 <span class="text"><?php echo xlt('The patient reminders have been updated') . ":"?></span><br>
42 <span class="text"><?php echo xlt('Total active actions') . ": " . text($update_rem_log['total_active_actions']); ?></span><br>
43 <span class="text"><?php echo xlt('Total active reminders before update') . ": " . text($update_rem_log['total_pre_active_reminders']); ?></span><br>
44 <span class="text"><?php echo xlt('Total unsent reminders before update') . ": " . text($update_rem_log['total_pre_unsent_reminders']); ?></span><br>
45 <span class="text"><?php echo xlt('Total active reminders after update') . ": " . text($update_rem_log['total_post_active_reminders']); ?></span><br>
46 <span class="text"><?php echo xlt('Total unsent reminders after update') . ": " . text($update_rem_log['total_post_unsent_reminders']); ?></span><br>
47 <span class="text"><?php echo xlt('Total new reminders') . ": " . text($update_rem_log['number_new_reminders']); ?></span><br>
48 <span class="text"><?php echo xlt('Total updated reminders') . ": " . text($update_rem_log['number_updated_reminders']); ?></span><br>
49 <span class="text"><?php echo xlt('Total inactivated reminders') . ": " . text($update_rem_log['number_inactivated_reminders']); ?></span><br>
50 <span class="text"><?php echo xlt('Total unchanged reminders') . ": " . text($update_rem_log['number_unchanged_reminders']) ;?></span><br>
52 <?php $send_rem_log = send_reminders(); ?>
54 <br><span class="text"><?php echo xlt('The patient reminders have been sent') . ":"?></span><br>
55 <span class="text"><?php echo xlt('Total unsent reminders before sending process') . ": " . text($send_rem_log['total_pre_unsent_reminders']); ?></span><br>
56 <span class="text"><?php echo xlt('Total unsent reminders after sending process') . ": " . text($send_rem_log['total_post_unsent_reminders']); ?></span><br>
57 <span class="text"><?php echo xlt('Total successful reminders sent via email') . ": " . text($send_rem_log['number_success_emails']); ?></span><br>
58 <span class="text"><?php echo xlt('Total failed reminders sent via email') . ": " . text($send_rem_log['number_failed_emails']); ?></span><br>
59 <span class="text"><?php echo xlt('Total successful reminders sent via phone') . ": " . text($send_rem_log['number_success_calls']); ?></span><br>
60 <span class="text"><?php echo xlt('Total failed reminders sent via phone') . ": " . text($send_rem_log['number_unchanged_reminders']); ?></span><br>
62 <br><span class="text"><?php echo xlt('(Email delivery is immediate, while automated VOIP is sent to the service provider for further processing.)'); ?></span><br><br>
63 </td>
64 </tr>
65 </table>
66 <br><br>
67 </body>
68 </html>