4 include_once("../../globals.php");
5 include_once($GLOBALS["srcdir"]."/api.inc");
7 function well_child_care_report( $pid, $encounter, $cols, $id) {
9 $data = formFetch("form_well_child_care", $id);
11 print "<table span class=text><tr>";
12 foreach($data as $key => $value) {
13 if ($key == "id" ||
$key == "pid" ||
$key == "user" ||
$key == "groupname" ||
$key == "authorized" ||
$key == "activity" ||
$key == "date" ||
$value == "" ||
$value == "0000-00-00 00:00:00") continue;
15 if ($value == "on") $value = "yes";
17 $key=ucwords(str_replace("_"," ",$key));
19 print "<td><span class=bold>$key: </span><span class=text>$value</span></td>";
22 if ($count == $cols) {
28 print "</tr></table>";