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.
9 $sanitize_all_escapes=true;
11 //STOP FAKE REGISTER GLOBALS
12 $fake_register_globals=false;
14 require_once(dirname(__FILE__
)."/../../interface/globals.php");
15 require_once ($GLOBALS['srcdir'] . "/classes/postmaster.php");
16 require_once ($GLOBALS['srcdir'] . "/maviq_phone_api.php");
17 require_once($GLOBALS['srcdir'] . "/reminders.php");
22 <?php
html_header_show();?
>
23 <link rel
="stylesheet" href
="<?php echo $css_header;?>" type
="text/css">
24 <link rel
="stylesheet" href
="batchcom.css" type
="text/css">
26 <body
class="body_top">
27 <span
class="title"><?php
echo htmlspecialchars(xl('Patient Reminder Batch Job'), ENT_NOQUOTES
)?
></span
>
30 // Collect the sender information
39 <td
class='text' align
='left' colspan
="3"><br
>
41 <?php
$update_rem_log = update_reminders(); ?
>
43 <span
class="text"><?php
echo htmlspecialchars(xl('The patient reminders have been updated'), ENT_NOQUOTES
) . ":"?
></span
><br
>
44 <span
class="text"><?php
echo htmlspecialchars(xl('Total active actions'), ENT_NOQUOTES
) . ": " . $update_rem_log['total_active_actions'];?
></span
><br
>
45 <span
class="text"><?php
echo htmlspecialchars(xl('Total active reminders before update'), ENT_NOQUOTES
) . ": " . $update_rem_log['total_pre_active_reminders'];?
></span
><br
>
46 <span
class="text"><?php
echo htmlspecialchars(xl('Total unsent reminders before update'), ENT_NOQUOTES
) . ": " . $update_rem_log['total_pre_unsent_reminders'];?
></span
><br
>
47 <span
class="text"><?php
echo htmlspecialchars(xl('Total active reminders after update'), ENT_NOQUOTES
) . ": " . $update_rem_log['total_post_active_reminders'];?
></span
><br
>
48 <span
class="text"><?php
echo htmlspecialchars(xl('Total unsent reminders after update'), ENT_NOQUOTES
) . ": " . $update_rem_log['total_post_unsent_reminders'];?
></span
><br
>
49 <span
class="text"><?php
echo htmlspecialchars(xl('Total new reminders'), ENT_NOQUOTES
) . ": " . $update_rem_log['number_new_reminders'];?
></span
><br
>
50 <span
class="text"><?php
echo htmlspecialchars(xl('Total updated reminders'), ENT_NOQUOTES
) . ": " . $update_rem_log['number_updated_reminders'];?
></span
><br
>
51 <span
class="text"><?php
echo htmlspecialchars(xl('Total inactivated reminders'), ENT_NOQUOTES
) . ": " . $update_rem_log['number_inactivated_reminders'];?
></span
><br
>
52 <span
class="text"><?php
echo htmlspecialchars(xl('Total unchanged reminders'), ENT_NOQUOTES
) . ": " . $update_rem_log['number_unchanged_reminders'];?
></span
><br
>
54 <?php
$send_rem_log = send_reminders(); ?
>
56 <br
><span
class="text"><?php
echo htmlspecialchars(xl('The patient reminders have been sent'), ENT_NOQUOTES
) . ":"?
></span
><br
>
57 <span
class="text"><?php
echo htmlspecialchars(xl('Total unsent reminders before sending process'), ENT_NOQUOTES
) . ": " . $send_rem_log['total_pre_unsent_reminders'];?
></span
><br
>
58 <span
class="text"><?php
echo htmlspecialchars(xl('Total unsent reminders after sending process'), ENT_NOQUOTES
) . ": " . $send_rem_log['total_post_unsent_reminders'];?
></span
><br
>
59 <span
class="text"><?php
echo htmlspecialchars(xl('Total successful reminders sent via email'), ENT_NOQUOTES
) . ": " . $send_rem_log['number_success_emails'];?
></span
><br
>
60 <span
class="text"><?php
echo htmlspecialchars(xl('Total failed reminders sent via email'), ENT_NOQUOTES
) . ": " . $send_rem_log['number_failed_emails'];?
></span
><br
>
61 <span
class="text"><?php
echo htmlspecialchars(xl('Total successful reminders sent via phone'), ENT_NOQUOTES
) . ": " . $send_rem_log['number_success_calls'];?
></span
><br
>
62 <span
class="text"><?php
echo htmlspecialchars(xl('Total failed reminders sent via phone'), ENT_NOQUOTES
) . ": " . $send_rem_log['number_unchanged_reminders'];?
></span
><br
>
64 <br
><span
class="text"><?php
echo htmlspecialchars(xl('(Email delivery is immediate, while automated VOIP is sent to the service provider for further processing.)'), ENT_NOQUOTES
)?
></span
><br
>
66 <br
><input type
="button" value
="<?php echo htmlspecialchars(xl('Close'), ENT_QUOTES); ?>" onClick
="window.close()"><br
><br
><br
>