Fixing daily snapshot mechanism
[openemr.git] / interface / forms / newpatient / report.php
blob570747e9acbc8d3ffbf0c5a90847382bb18c3f7e
1 <?
2 include_once(dirname(__file__)."/../../globals.php");
4 function newpatient_report( $pid, $encounter, $cols, $id) {
5 $res = sqlStatement("select * from form_encounter where pid='$pid' and id='$id'");
6 print "<table><tr><td>\n";
7 while($result = sqlFetchArray($res)) {
8 print "<span class=bold>" . xl('Reason') . ": </span><span class=text>" . $result{"reason"} . "<br>\n";
9 print "<span class=bold>" . xl('Facility') . ": </span><span class=text>" . $result{"facility"} . "<br>\n";
12 print "</td></tr></table>\n";