Focus the search term on load
[openemr.git] / contrib / forms / strength_conditioning / report.php
blobfc51a9bd42d59d7e349a3030639310128e7d2abd
1 <?php
2 // Copyright (C) 2006-2008 Rod Roark <rod@sunsetsystems.com>
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
9 include_once("../../globals.php");
10 include_once($GLOBALS["srcdir"] . "/api.inc");
12 function strength_conditioning_report($pid, $encounter, $cols, $id) {
13 /****
14 $cols = 1; // force always 1 column
15 $count = 0;
16 $data = sqlQuery("SELECT * " .
17 "FROM form_treatment_protocols WHERE " .
18 "id = '$id'");
19 if ($data) {
20 print "<table cellpadding='0' cellspacing='0'>\n<tr>\n";
21 foreach($data as $key => $value) {
22 if ($key == "id" || $key == "pid" || $key == "user" || $key == "groupname" ||
23 $key == "authorized" || $key == "activity" || $key == "date" ||
24 $value == "" || $value == "0" || $value == "0.00") {
25 continue;
28 if ($key == 'followup_required') {
29 switch ($value) {
30 case '1': $value = 'Yes'; break;
31 case '2': $value = 'Pending investigation'; break;
35 $key=ucwords(str_replace("_"," ",$key));
36 print "<td valign='top'><span class='bold'>$key: </span><span class='text'>$value &nbsp;</span></td>\n";
37 $count++;
38 if ($count == $cols) {
39 $count = 0;
40 print "</tr>\n<tr>\n";
43 print "</tr>\n</table>\n";
45 ****/