Clickmap Graphical API and Pain Form
[openemr.git] / contrib / forms / ped_pain / report.php
blob578bc02f1b5cd016c56c4bd40f8d9df286357326
1 <?php
2 //
4 include_once("../../globals.php");
5 include_once($GLOBALS["srcdir"]."/api.inc");
7 function ped_pain_report( $pid, $encounter, $cols, $id) {
8 $count = 0;
9 $data = formFetch("form_ped_pain", $id);
10 if ($data) :
11 print "<table span class=text><tr>";
12 foreach($data as $key => $value) {
13 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") continue;
15 if ($value == "on") $value = "yes";
17 $key=ucwords(str_replace("_"," ",$key));
19 print "<td><span class=bold>$key: </span><span class=text>$value</span></td>";
21 $count++;
22 if ($count == $cols) {
23 $count = 0;
24 print "</tr><tr>\n";
28 print "</tr></table>";
29 endif;
32 ?>