.inc files migration to .inc.php (#5897)
[openemr.git] / contrib / forms / hearingtest / report.php
blob083cf863a43e1d7e2541e411fb6b086ae74af341
1 <?php
3 //------------Forms generated from formsWiz
4 require_once("../../globals.php");
5 require_once($GLOBALS["srcdir"] . "/api.inc.php");
6 function hearingtest_report($pid, $encounter, $cols, $id)
8 $count = 0;
9 $data = formFetch("form_hearingtest", $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>";