fix: add missing use statement in facility admin script (#7428)
[openemr.git] / interface / forms / transfer_summary / report.php
blob43a7a28018d1209a60da750446e4f77c80d44719
1 <?php
3 /**
4 * transfer summary form.
6 * @package OpenEMR
7 * @link http://www.open-emr.org
8 * @author Naina Mohamed <naina@capminds.com>
9 * @author Brady Miller <brady.g.miller@gmail.com>
10 * @copyright Copyright (c) 2012-2013 Naina Mohamed <naina@capminds.com> CapMinds Technologies
11 * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
12 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
15 require_once(dirname(__FILE__) . '/../../globals.php');
16 require_once($GLOBALS["srcdir"] . "/api.inc.php");
18 function transfer_summary_report($pid, $encounter, $cols, $id)
20 $count = 0;
21 $data = formFetch("form_transfer_summary", $id);
22 if ($data) {
23 print "<table><tr>";
24 foreach ($data as $key => $value) {
25 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
26 continue;
29 if ($value == "on") {
30 $value = "yes";
33 $key = ucwords(str_replace("_", " ", $key));
34 print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . text($value) . "</span></td>";
35 $count++;
36 if ($count == $cols) {
37 $count = 0;
38 print "</tr><tr>\n";
43 print "</tr></table>";