Change formatting of initial comment block.
[openemr.git] / contrib / forms / medical_orders / report.php
blobc8818afc9be53d9f9ad24eaf74e6a18bf5409e79
1 <?php
2 // Copyright (C) 2009 Aron Racho <aron@mi-squared.com>
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 //------------Forms generated from formsWiz
8 include_once("../../globals.php");
9 include_once($GLOBALS["srcdir"] . "/api.inc");
10 function medical_orders_report( $pid, $encounter, $cols, $id) {
11 $count = 0;
12 $data = formFetch("form_medical_orders", $id);
13 if ($data) {
14 print "<table><tr>";
15 foreach($data as $key => $value) {
16 if ($key == "id" || $key == "pid" || $key == "user" ||
17 $key == "groupname" || $key == "authorized" || $key == "activity" ||
18 $key == "date" || $value == "" || $value == "0000-00-00 00:00:00")
20 continue;
22 if ($value == "on") {
23 $value = "yes";
25 $key=ucwords(str_replace("_"," ",$key));
26 print "<td><span class=bold>$key: </span><span class=text>$value</span></td>";
27 $count++;
28 if ($count == $cols) {
29 $count = 0;
30 print "</tr><tr>\n";
34 print "</tr></table>";