Added qgit package installation to developer appliance and cvs demo scripts.
[openemr.git] / contrib / forms / mh_therapy_progress / report.php
blobb995a8bccd8240a0f34ae87350fee048beb700b8
1 <?php
2 //------------Forms generated from formsWiz
3 include_once("../../globals.php");
4 include_once($GLOBALS["srcdir"]."/api.inc");
5 function mh_therapy_progress_report( $pid, $encounter, $cols, $id) {
6 $count = 0;
7 print "Therapy Progress Note";
8 $data = formFetch("form_mh_therapy_progress", $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;
15 if ($value == "on") {
16 $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>";
29 ?>