.inc files migration to .inc.php (#5897)
[openemr.git] / contrib / forms / obstetrical / report.php
blob719cd492584dc535146ac1a7f13612a65beb43ba
1 <?php
3 //------------Forms generated from formsWiz
4 require_once("../../globals.php");
5 require_once($GLOBALS["srcdir"] . "/api.inc.php");
6 function obstetrical_report($pid, $encounter, $cols, $id)
8 $count = 0;
9 $data = formFetch("form_obstetrical", $id);
10 if ($data) {
11 print "<table><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") {
14 continue;
17 if ($value == "on") {
18 $value = "yes";
21 $key = ucwords(str_replace("_", " ", $key));
22 print "<td><span class=bold>" . text($key) . ": </span><span class=text>" . text($value) . "</span></td>";
23 $count++;
24 if ($count == $cols) {
25 $count = 0;
26 print "</tr><tr>\n";
31 print "</tr></table>";