make sure pt payments show on statement as pt paid (#4008)
[openemr.git] / interface / batchcom / batchPhoneList.php
blob314aa3c072e9403ac6791ed47c967358674953c2
1 <?php
3 /**
4 * Batch list processor, included from batchcom
6 * @package OpenEMR
7 * @link http://www.open-emr.org
8 * @author cfapress
9 * @author Jason 'Toolbox' Oettinger <jason@oettinger.email>
10 * @copyright Copyright (c) 2008 cfapress
11 * @copyright Copyright (c) 2017 Jason 'Toolbox' Oettinger <jason@oettinger.email>
12 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 * @todo menu for fields could be added in the future
16 require_once("../globals.php");
18 use OpenEMR\Common\Csrf\CsrfUtils;
19 use OpenEMR\Core\Header;
21 if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) {
22 CsrfUtils::csrfNotVerified();
26 <html>
27 <head>
28 <?php Header::setupHeader(); ?>
29 <title><?php echo xlt("Phone Call List"); ?></title>
30 </head>
31 <body class="body_top container">
32 <header class="row">
33 <?php require_once("batch_navigation.php");?>
34 <h1 class="col-md-12">
35 <a href="batchcom.php"><?php echo xlt('Batch Communication Tool'); ?></a>
36 <small><?php echo xlt('Phone Call List report'); ?></small>
37 </h1>
38 </header>
39 <main class="row mx-4">
40 <div class="col-md-12">
41 <table class="table table-striped table-bordered">
42 <thead>
43 <?php
44 foreach ([xlt('Name'),xlt('DOB'),xlt('Home'),xlt('Work'),xlt('Contact'),xlt('Cell')] as $header) {
45 echo "<th>$header</th>";
48 </thead>
49 <tbody>
50 <?php
51 while ($row = sqlFetchArray($res)) {
52 echo "<tr><td>";
53 echo text($row['title']) . ' ' . text($row['fname']) . ' ' . text($row['lname']);
54 echo "</td><td>";
55 echo text($row['DOB']);
56 echo "</td><td>";
57 echo text($row['phone_home']);
58 echo "</td><td>";
59 echo text($row['phone_biz']);
60 echo "</td><td>";
61 echo text($row['phone_contact']);
62 echo "</td><td>";
63 echo text($row['phone_cell']);
64 echo "</td></tr>";
67 </tbody>
68 </table>
69 </div>
70 </main>
71 </body>
72 </html>