2 //------------Forms generated from formsWiz
3 require_once("../../globals.php");
4 require_once($GLOBALS["srcdir"]."/api.inc");
5 function prior_auth_report($pid, $encounter, $cols, $id)
8 $data = formFetch("form_prior_auth", $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") {
20 $key=ucwords(str_replace("_", " ", $key));
21 print "<td><span class=bold>" . text($key) . ": </span><span class=text>" . text($value) . "</span></td>";
23 if ($count == $cols) {
30 print "</tr></table>";