2 //------------Forms generated from formsWiz
3 include_once("../../globals.php");
4 include_once($GLOBALS["srcdir"]."/api.inc");
5 function evaluation_report( $pid, $encounter, $cols, $id) {
7 $data = formFetch("form_evaluation", $id);
8 $sql = "SELECT name from form_evaluation_checks where foreign_id = '" . add_escape_custom($id) . "'";
11 while ($row = sqlFetchArray($results)) {
12 $data2[] = $row['name'];
14 $data = array_merge($data,$data2);
17 foreach($data as $key => $value) {
18 if ($key == "id" ||
$key == "pid" ||
$key == "user" ||
$key == "groupname" ||
$key == "authorized" ||
$key == "activity" ||
$key == "date" ||
$value == "" ||
$value == "0000-00-00 00:00:00") {
25 $key=ucwords(str_replace("_"," ",$key));
26 if (is_numeric($key)){
29 print "<td><span class=bold>$key: </span><span class=text>$value</span></td>";
31 if ($count == $cols) {
37 print "</tr></table>";