2 //------------Forms generated from formsWiz
3 include_once("../../globals.php");
4 include_once($GLOBALS["srcdir"]."/api.inc");
5 include_once($GLOBALS["srcdir"]."/sql.inc");
6 function well_infant_report( $pid, $encounter, $cols, $id) {
8 $data = formFetch("form_weel_child", $id);
9 $sql = "SELECT name from form_well_infant_checks where foreign_id = '" . mysql_real_escape_string($id) . "'";
10 $results = sqlQ($sql);
12 while ($row = mysql_fetch_array($results, MYSQL_ASSOC
)) {
13 $data2[] = $row['name'];
15 $data = array_merge($data,$data2);
18 foreach($data as $key => $value) {
19 if ($key == "id" ||
$key == "pid" ||
$key == "user" ||
$key == "groupname" ||
$key == "authorized" ||
$key == "activity" ||
$key == "date" ||
$value == "" ||
$value == "0000-00-00 00:00:00") {
26 $key=ucwords(str_replace("_"," ",$key));
27 if (is_numeric($key)){
30 print "<td><span class=bold>$key: </span><span class=text>$value</span></td>";
32 if ($count == $cols) {
38 print "</tr></table>";