Add back popup dialogs for tabs U.I. (#1434)
[openemr.git] / interface / batchcom / batchPhoneList.php
blob19fa72aeef7d55fad7d0212896d0c2c715a34e24
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");
16 use OpenEMR\Core\Header;
19 <html>
20 <head>
21 <title><?php echo xlt("Phone Call List"); ?></title>
22 <?php Header::setupHeader(); ?>
23 </head>
24 <body class="body_top container">
25 <header class="row">
26 <?php require_once("batch_navigation.php");?>
27 <h1 class="col-md-12">
28 <a href="batchcom.php"><?php echo xlt('Batch Communication Tool'); ?></a>
29 <small><?php echo xlt('Phone Call List report'); ?></small>
30 </h1>
31 </header>
32 <main class="row">
33 <div class="col-md-12">
34 <table class="table table-striped table-bordered">
35 <thead>
36 <?php
37 foreach ([xlt('Name'),xlt('DOB'),xlt('Home'),xlt('Work'),xlt('Contact'),xlt('Cell')] as $header) {
38 echo "<th>$header</th>";
41 </thead>
42 <tbody>
43 <?php
44 while ($row = sqlFetchArray($res)) {
45 echo "<tr><td>";
46 echo text($row['title']). ' ' . text($row['fname']) . ' ' . text($row['lname']);
47 echo "</td><td>";
48 echo text($row['DOB']);
49 echo "</td><td>";
50 echo text($row['phone_home']);
51 echo "</td><td>";
52 echo text($row['phone_biz']);
53 echo "</td><td>";
54 echo text($row['phone_contact']);
55 echo "</td><td>";
56 echo text($row['phone_cell']);
57 echo "</td></tr>";
60 </tbody>
61 </table>
62 </div>
63 </main>
64 </body>
65 </html>