Updated translation table after fixing script in previous commit
[openemr.git] / contrib / forms / well_child_care / report.php
blob03ff90d647dc0da6fe0cefad85549a2ecd4dcb21
1 <?php
2 //
4 include_once("../../globals.php");
5 include_once($GLOBALS["srcdir"]."/api.inc");
7 function well_child_care_report( $pid, $encounter, $cols, $id) {
8 $count = 0;
9 $data = formFetch("form_well_child_care", $id);
10 if ($data) :
11 print "<table span class=text><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") continue;
15 if ($value == "on") $value = "yes";
17 $key=ucwords(str_replace("_"," ",$key));
19 print "<td><span class=bold>$key: </span><span class=text>$value</span></td>";
21 $count++;
22 if ($count == $cols) {
23 $count = 0;
24 print "</tr><tr>\n";
28 print "</tr></table>";
29 endif;
32 ?>