Fix to using most recent development translation set on development demo.
[openemr.git] / contrib / forms / assessment_intake / report.php
blob15bac4a2648951b07128c05bbf35efa3a2bfab00
1 <?php
2 //------------Forms generated from formsWiz
3 include_once("../../globals.php");
4 include_once($GLOBALS["srcdir"]."/api.inc");
5 function assessment_intake_report( $pid, $encounter, $cols, $id) {
6 $count = 0;
7 print "Assessment Intake Report";
8 $data = formFetch("form_assessment_intake", $id);
9 if ($data) {
10 print "<table><tr>";
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") {
13 continue;
15 if ($value == "on") {
16 $value = "yes";
18 $key=ucwords(str_replace("_"," ",$key));
19 print "<td><span class=bold>$key: </span><span class=text>$value</span></td>";
20 $count++;
21 if ($count == $cols) {
22 $count = 0;
23 print "</tr><tr>\n";
27 print "</tr></table>";
29 ?>