.inc files migration to .inc.php (#5897)
[openemr.git] / interface / forms / reviewofs / report.php
blob0aea93dcdcb94970418e8b773e8ef31b5a3a85fe
1 <?php
3 /**
4 * Review of Systems Checks form
6 * @package OpenEMR
7 * @link http://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 require_once(dirname(__FILE__) . '/../../globals.php');
14 require_once($GLOBALS["srcdir"] . "/api.inc.php");
16 function reviewofs_report($pid, $encounter, $cols, $id)
18 $count = 0;
19 $data = formFetch("form_reviewofs", $id);
20 if ($data) {
21 print "<table><tr>";
22 foreach ($data as $key => $value) {
23 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
24 continue;
27 if ($value == "on") {
28 $value = "yes";
31 $key = ucwords(str_replace("_", " ", $key));
33 //modified by BM 07-2009 for internationalization
34 if ($key == "Additional Notes") {
35 print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . text($value) . "</span></td>";
36 } else {
37 print "<td><span class=bold>" . xlt($key) . ": </span><span class=text>" . xlt($value) . "</span></td>";
40 $count++;
41 if ($count == $cols) {
42 $count = 0;
43 print "</tr><tr>\n";
48 print "</tr></table>";