Initial revision
[openemr.git] / report.php
blobcda2136e888741a69e3f6a4b996cc8cf01c0a3ef
1 <?php
2 //------------Forms created by Nikolai Vitsyn 2004/01/23
3 include_once("../../globals.php");
4 include_once($GLOBALS["srcdir"]."/api.inc");
5 function ankleinjury_report( $pid, $encounter, $cols, $id) {
6 $count = 0;
7 $data = formFetch("form_ankleinjury", $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));
18 print "<td><span class=bold>$key: </span><span class=text>$value</span></td>";
19 $count++;
20 if ($count == $cols) {
21 $count = 0;
22 print "</tr><tr>\n";
26 print "</tr></table>";
28 ?>