psr12 fixes for new PHP_CodeSniffer (#4795)
[openemr.git] / contrib / forms / prosthesis / report.php
blob3e1f739411305af461f0fe552a8d918668a74f8f
1 <?php
3 //------------Forms generated from formsWiz
4 require_once("../../globals.php");
5 require_once($GLOBALS["srcdir"] . "/api.inc");
6 function prosthesis_report($pid, $encounter, $cols, $id)
8 $count = 0;
9 $data = formFetch("form_prosthesis", $id);
10 if ($data) {
11 print "<table><tr>";
12 foreach ($data as $key => $value) {
13 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
14 continue;
17 if ($value == "on") {
18 $value = "yes";
21 $key = ucwords(str_replace("_", " ", $key));
22 print "<td><span class=bold>" . text($key) . ": </span><span class=text>" . text($value) . "</span></td>";
23 $count++;
24 if ($count == $cols) {
25 $count = 0;
26 print "</tr><tr>\n";
31 print "</tr></table>";