2 include_once("../../globals.php");
3 include_once($GLOBALS["srcdir"]."/api.inc");
5 /** CHANGE THIS, the name of the function is significant and **
6 ** must be changed to match the folder name **/
7 function example_report( $pid, $encounter, $cols, $id) {
9 /** CHANGE THIS - name of the database table associated with this form **/
10 $table_name = "form_example";
13 $data = formFetch($table_name, $id);
19 foreach($data as $key => $value) {
20 if ($key == "id" ||
$key == "pid" ||
$key == "user" ||
21 $key == "groupname" ||
$key == "authorized" ||
22 $key == "activity" ||
$key == "date" ||
23 $value == "" ||
$value == "0000-00-00 00:00:00" ||
26 // skip certain fields and blank data
30 $key=ucwords(str_replace("_"," ",$key));
33 print "<td><span class=bold>$key: </span><span class=text>$value</span></td>";
35 if ($count == $cols) {
41 print "</tr></table>";