feat: add e2e testing for both menu links. Also fixed some e2e stuff. (#7739)
[openemr.git] / interface / forms / fee_sheet / report.php
blob50e09d3f9e427e60909dc416a5572937f424ddd8
1 <?php
3 /*
4 * Fee Sheet report.php
6 * @package OpenEMR
7 * @link http://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
14 require_once(dirname(__FILE__) . '/../../globals.php');
15 require_once($GLOBALS["srcdir"] . "/api.inc.php");
17 function fee_sheet_report($pid, $encounter, $cols, $id)
19 $count = 0;
20 $data = formFetch("form_fee_sheet", $id);
21 if ($data) {
22 print "<table><tr>";
23 foreach ($data as $key => $value) {
24 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
25 continue;
28 if ($value == "on") {
29 $value = "yes";
32 $key = ucwords(str_replace("_", " ", $key));
33 print "<td><span class='bold'>" . attr($key) . ": </span><span class='text'>" . text($value) . "</span></td>";
34 $count++;
35 if ($count == $cols) {
36 $count = 0;
37 print "</tr><tr>\n";
42 print "</tr></table>";