5 require_once("../../globals.php");
6 require_once($GLOBALS["srcdir"] . "/api.inc.php");
8 function ped_GI_report($pid, $encounter, $cols, $id)
11 $data = formFetch("form_ped_GI", $id);
13 print "<table span class=text><tr>";
14 foreach ($data as $key => $value) {
15 if ($key == "id" ||
$key == "pid" ||
$key == "user" ||
$key == "groupname" ||
$key == "authorized" ||
$key == "activity" ||
$key == "date" ||
$value == "" ||
$value == "0000-00-00 00:00:00") {
23 $key = ucwords(str_replace("_", " ", $key));
25 print "<td><span class=bold>" . text($key) . ": </span><span class=text>" . text($value) . "</span></td>";
28 if ($count == $cols) {
34 print "</tr></table>";