Couple minor fixes to previous Direct Messages Receiving commit.
[openemr.git] / interface / forms / fee_sheet / report.php
blobbfb4c6f27c9ef40cc268472440d5617b4f135e05
1 <?php
2 include_once("../../globals.php");
3 include_once($GLOBALS["srcdir"]."/api.inc");
5 function fee_sheet_report( $pid, $encounter, $cols, $id) {
6 $count = 0;
7 $data = formFetch("form_fee_sheet", $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";
18 $key=ucwords(str_replace("_"," ",$key));
19 print "<td><span class=bold>$key: </span><span class=text>$value</span></td>";
20 $count++;
21 if ($count == $cols) {
22 $count = 0;
23 print "</tr><tr>\n";
27 print "</tr></table>";