Fix CRLF
[openemr.git] / contrib / forms / progressnotes / report.php
blobf9aaa0c0eb0491edd03c048b466fffae9ae8a290
1 <?php
2 #######################################################
3 # Progress Notes Form created by Kam Sharifi #
4 # kam@sharmen.com #
5 #######################################################
6 include_once("../../globals.php");
7 include_once($GLOBALS["srcdir"]."/api.inc");
8 function progressnotes_report( $pid, $encounter, $cols, $id) {
9 $count = 0;
10 $data = formFetch("form_progressnotes", $id);
11 if ($data) {
12 print "<table><tr>";
13 foreach($data as $key => $value) {
14 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" || $key == "authorized" || $key == "activity" || $key == "date" || $value == "" || $value == "0000-00-00 00:00:00") {
15 continue;
17 if ($value == "on") {
18 $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";
29 print "</tr></table>";
31 ?>