Highway to PSR2
[openemr.git] / interface / forms / reviewofs / report.php
blob2346cbd921d56a2fe4d7ff69f69a1ad1808b690f
1 <?php
2 //------------Forms generated from formsWiz
3 include_once(dirname(__FILE__).'/../../globals.php');
4 include_once($GLOBALS["srcdir"]."/api.inc");
5 function reviewofs_report($pid, $encounter, $cols, $id)
7 $count = 0;
8 $data = formFetch("form_reviewofs", $id);
9 if ($data) {
10 print "<table><tr>";
11 foreach ($data as $key => $value) {
12 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
13 continue;
16 if ($value == "on") {
17 $value = "yes";
20 $key=ucwords(str_replace("_", " ", $key));
22 //modified by BM 07-2009 for internationalization
23 if ($key == "Additional Notes") {
24 print "<td><span class=bold>" . xl($key) . ": </span><span class=text>" . text($value) . "</span></td>";
25 } else {
26 print "<td><span class=bold>" . xl($key) . ": </span><span class=text>" . xl($value) . "</span></td>";
29 $count++;
30 if ($count == $cols) {
31 $count = 0;
32 print "</tr><tr>\n";
37 print "</tr></table>";