fix: Update patient_tracker.php (#6595)
[openemr.git] / interface / forms / ankleinjury / report.php
blob99f79a9490cb5cb359cba2f054609972922ea7a4
1 <?php
3 /**
4 * ankleinjury report.php
6 * @package OpenEMR
7 * @link http://www.open-emr.org
8 * @author Nikolai Vitsyn
9 * @author Brady Miller <brady.g.miller@gmail.com>
10 * @copyright Copyright (c) 2004 Nikolai Vitsyn
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 ankleinjury_report($pid, $encounter, $cols, $id)
20 $count = 0;
21 $data = formFetch("form_ankleinjury", $id);
22 if ($data) {
23 print "<table>\n<tr>\n";
24 foreach ($data as $key => $value) {
25 if (
26 $key == "id" || $key == "pid" || $key == "user" || $key == "groupname" ||
27 $key == "authorized" || $key == "activity" || $key == "date" ||
28 $value == "" || $value == "0000-00-00 00:00:00"
29 ) {
30 continue;
33 if ($value == "on") {
34 $value = "yes";
37 $key = ucwords(str_replace("_", " ", $key));
38 $key = str_replace("Ankle ", "", $key);
39 $key = str_replace("Injuary", "Injury", $key);
40 print "<td valign='top'><span class='bold'>" . xlt($key) . ": </span><span class='text'>" . text($value) . "</span></td>\n";
41 $count++;
42 if ($count == $cols) {
43 $count = 0;
44 print "</tr>\n<tr>\n";
48 print "</tr>\n</table>\n";