Focus the search term on load
[openemr.git] / interface / forms / reviewofs / report.php
blobf35444f666287c727ee05a84e5dca1bc9d5e192b
1 <?php
2 //------------Forms generated from formsWiz
3 include_once("../../globals.php");
4 include_once($GLOBALS["srcdir"]."/api.inc");
5 function reviewofs_report( $pid, $encounter, $cols, $id) {
6 $count = 0;
7 $data = formFetch("form_reviewofs", $id);
8 if ($data) {
9 print "<table><tr>";
10 foreach($data as $key => $value) {
11 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
12 continue;
14 if ($value == "on") {
15 $value = "yes";
17 $key=ucwords(str_replace("_"," ",$key));
19 //modified by BM 07-2009 for internationalization
20 if ($key == "Additional Notes") {
21 print "<td><span class=bold>" . xl($key) . ": </span><span class=text>" . $value . "</span></td>";
23 else {
24 print "<td><span class=bold>" . xl($key) . ": </span><span class=text>" . xl($value) . "</span></td>";
27 $count++;
28 if ($count == $cols) {
29 $count = 0;
30 print "</tr><tr>\n";
34 print "</tr></table>";
36 ?>