Bug fix for LBF new.php (#7580)
[openemr.git] / contrib / forms / nursing_notes / report.php
blob83489a1975f2750afd43d0111296984034f800e9
1 <?php
3 // Copyright (C) 2009 Aron Racho <aron@mi-squared.com>
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 //------------Forms generated from formsWiz
9 require_once("../../globals.php");
10 require_once($GLOBALS["srcdir"] . "/api.inc.php");
11 function nursing_notes_report($pid, $encounter, $cols, $id)
13 $count = 0;
14 $data = formFetch("form_nursing_notes", $id);
15 if ($data) {
16 print "<table><tr>";
17 foreach ($data as $key => $value) {
18 if (
19 $key == "id" || $key == "pid" || $key == "user" ||
20 $key == "groupname" || $key == "authorized" || $key == "activity" ||
21 $key == "date" || $value == "" || $value == "0000-00-00 00:00:00"
22 ) {
23 continue;
26 if ($value == "on") {
27 $value = "yes";
30 $key = ucwords(str_replace("_", " ", $key));
31 print "<td><span class=bold>" . text($key) . ": </span><span class=text>" . text($value) . "</span></td>";
32 $count++;
33 if ($count == $cols) {
34 $count = 0;
35 print "</tr><tr>\n";
40 print "</tr></table>";