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