3 include_once("../../globals.php");
4 include_once($GLOBALS["srcdir"]."/api.inc");
5 function individual_treatment_plan_report( $pid, $encounter, $cols, $id) {
7 print "Individual Treatment Plan";
8 $data = formFetch("form_individual_treatment_plan", $id);
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") {
18 $key=ucwords(str_replace("_"," ",$key));
19 print "<td><span class=bold>$key: </span><span class=text>$value</span></td>";
21 if ($count == $cols) {
27 print "</tr></table>";