bug fixins (#1951)
[openemr.git] / interface / forms / fee_sheet / report.php
blob81b69b4cf78a5df6f84ff1ee5cc47c6b54998ae2
1 <?php
2 include_once(dirname(__FILE__).'/../../globals.php');
3 include_once($GLOBALS["srcdir"]."/api.inc");
5 function fee_sheet_report($pid, $encounter, $cols, $id)
7 $count = 0;
8 $data = formFetch("form_fee_sheet", $id);
9 if ($data) {
10 print "<table><tr>";
11 foreach ($data as $key => $value) {
12 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
13 continue;
16 if ($value == "on") {
17 $value = "yes";
20 $key=ucwords(str_replace("_", " ", $key));
21 print "<td><span class=bold>$key: </span><span class=text>$value</span></td>";
22 $count++;
23 if ($count == $cols) {
24 $count = 0;
25 print "</tr><tr>\n";
30 print "</tr></table>";