Focus the search term on load
[openemr.git] / contrib / forms / chiro_history / report.php
blob34e87a00c38dbea4b49c9bc7eb90050d8f336f61
1 <?php
2 //------------report.php
3 include_once("../../globals.php");
4 include_once($GLOBALS["srcdir"]."/api.inc");
5 function chiro_history_report( $pid, $encounter, $cols, $id) {
6 $count = 0;
7 $data = formFetch("form_chiro_history", $id);
8 if ($data) {
9 print "<hr><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));
18 $mykey = $key.": ";
19 $myval = stripslashes($value);
20 print "<td><span class=bold>".xl("$mykey")."</span><span class=text>".xl("$myval")."</span></td>";
21 $count++;
22 if ($count == $cols) {
23 $count = 0;
24 print "</tr><tr>\n";
28 print "</tr></table><hr>";
30 ?>