another thing related to development version incrementation
[openemr.git] / interface / forms / vitalsM / report.php
blob314cc2324392f46c561a63ae4d53c34907b407fe
1 <?php
2 include_once("../../globals.php");
3 include_once($GLOBALS["srcdir"]."/api.inc");
4 function vitalsM_report( $pid, $encounter, $cols, $id) {
5 $count = 0;
6 $data = formFetch("form_vitalsM", $id);
7 if ($data) {
8 print "<table><tr>";
9 foreach($data as $key => $value) {
10 if ($key == "id" || $key == "pid" || $key == "user" ||
11 $key == "groupname" || $key == "authorized" || $key == "activity" ||
12 $key == "date" || $value == "" || $value == "0000-00-00 00:00:00" ||
13 $value == "0.0" )
15 continue;
17 if ($value == "on") {
18 $value = "yes";
20 $key = ucwords(str_replace("_"," ",$key));
21 //modified by BM 06-2009 for internationalization
22 if ($key == "Temp Method" || $key == "BMI Status") {
23 print "<td><span class=bold>" . xl($key) . ": </span><span class=text>" . xl($value) . "</span></td>";
25 else {
26 print "<td><span class=bold>" . xl($key) . ": </span><span class=text>$value</span></td>";
28 $count++;
29 if ($count == $cols) {
30 $count = 0;
31 print "</tr><tr>\n";
35 print "</tr></table>";