2 //------------report.php
3 include_once("../../globals.php");
4 include_once($GLOBALS["srcdir"]."/api.inc");
5 function Forms2_Cardiology_report( $pid, $encounter, $cols, $id) {
7 $data = formFetch("form_Forms2_Cardiology", $id);
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") {
17 $key=ucwords(str_replace("_"," ",$key));
19 $myval = stripslashes($value);
20 print "<td><span class=bold>".xl("$mykey")."</span><span class=text>".xl("$myval")."</span></td>";
22 if ($count == $cols) {
28 print "</tr></table><hr>";