very minor mod to previous Direct Messaging update commit
[openemr.git] / interface / forms / ankleinjury / report.php
blobd75aa21615a66eca93ab81b8695fd14ba0c8f53e
1 <?php
2 //------------Forms created by Nikolai Vitsyn 2004/01/23
3 include_once("../../globals.php");
4 include_once($GLOBALS["srcdir"] . "/api.inc");
6 function ankleinjury_report($pid, $encounter, $cols, $id) {
7 $count = 0;
8 $data = formFetch("form_ankleinjury", $id);
9 if ($data) {
10 print "<table>\n<tr>\n";
11 foreach($data as $key => $value) {
12 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" ||
13 $key == "authorized" || $key == "activity" || $key == "date" ||
14 $value == "" || $value == "0000-00-00 00:00:00") {
15 continue;
17 if ($value == "on") {
18 $value = "yes";
20 $key=ucwords(str_replace("_"," ",$key));
21 $key = str_replace("Ankle ", "", $key);
22 $key = str_replace("Injuary", "Injury", $key);
23 print "<td valign='top'><span class='bold'>$key: </span><span class='text'>$value</span></td>\n";
24 $count++;
25 if ($count == $cols) {
26 $count = 0;
27 print "</tr>\n<tr>\n";
30 print "</tr>\n</table>\n";
33 ?>