MySQL5.5 code fix for .sql files; changed TYPE= to ENGINE=
[openemr.git] / contrib / forms / individual_treatment_plan / report.php
blob61c27aa045fb4e9d134c3aecd469f59e3c98a91d
1 <?php
3 include_once("../../globals.php");
4 include_once($GLOBALS["srcdir"]."/api.inc");
5 function individual_treatment_plan_report( $pid, $encounter, $cols, $id) {
6 $count = 0;
7 print "Individual Treatment Plan";
8 $data = formFetch("form_individual_treatment_plan", $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 ?>