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";