3 // Copyright (C) 2009 Aron Racho <aron@mi-squared.com>
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 //------------Forms generated from formsWiz
9 require_once("../../globals.php");
10 require_once($GLOBALS["srcdir"] . "/api.inc.php");
11 function hpi_report($pid, $encounter, $cols, $id)
14 $data = formFetch("form_hpi", $id);
17 print "<table cellspacing=3px><tr>";
18 foreach ($data as $key => $value) {
20 $key == "id" ||
$key == "pid" ||
$key == "user" ||
21 $key == "groupname" ||
$key == "authorized" ||
$key == "activity" ||
$key == "complaint" ||
22 $key == "date" ||
$value == "" ||
$value == "0000-00-00 00:00:00"
31 $key = ucwords(str_replace("_", " ", $key));
32 print "<td width='" . attr($width) . "%' valign='top'><span class=bold>" . text($key) . ": </span><span class=text>" . text($value) . "</span></td>";
34 if ($count == $cols) {
41 print "</tr></table>";