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) {
8 $data = formFetch("form_ankleinjury", $id);
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") {
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";
25 if ($count == $cols) {
27 print "</tr>\n<tr>\n";
30 print "</tr>\n</table>\n";