Highway to PSR2
[openemr.git] / contrib / forms / hand / report.php
blob8e3e9c1a5d194412f848180237e88b9f1de45ba2
1 <?php
2 // Copyright (C) 2009 Aron Racho <aron@mi-squared.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 //------------Forms generated from formsWiz
8 include_once("../../globals.php");
9 include_once($GLOBALS["srcdir"] . "/api.inc");
10 function hand_report($pid, $encounter, $cols, $id)
12 $count = 0;
13 $cols = 2;
14 $data = formFetch("form_hand", $id);
15 $width = 100/$cols;
16 if ($data) {
19 <table class='text' border='0px' cellpadding='2px' cellspacing='0px'>
20 <tr>
21 <td width='80px'><b>&nbsp;</td>
22 <td width='80px'><b>1st</b></td>
23 <td width='80px'><b>2nd</b></td>
24 <td width='80px'><b>3rd</b></td>
25 </tr>
26 <tr>
27 <td>(L) Hand</td>
28 <td><?php echo $data['left_1'] ? $data['left_1']." fp" : "-"; ?></td>
29 <td><?php echo $data['left_2'] ? $data['left_2']." fp" : "-"; ?></td>
30 <td><?php echo $data['left_3'] ? $data['left_3']." fp" : "-"; ?></td>
31 </tr>
32 <tr>
33 <td>(R) Hand</td>
34 <td><?php echo $data['right_1'] ? $data['right_1']." fp" : "-"; ?></td>
35 <td><?php echo $data['right_2'] ? $data['right_2']." fp" : "-"; ?></td>
36 <td><?php echo $data['right_3'] ? $data['right_3']." fp" : "-"; ?></td>
37 </tr>
38 <tr>
39 <td>Handedness:</td>
40 <td colspan='3'><?php echo $data['handedness']; ?></td>
41 </tr>
43 </table>
45 <?php if ($data['notes'] != '') {?>
46 </p>
47 <table border='0' cellpadding='0' cellspacing='0' class='text'>
48 <tr class='text'>
49 <td><b>NOTES</b></td>
50 </tr>
51 <tr class='text'>
52 <td><p align='left'><?php echo $data['notes']?>&nbsp;</p></td>
53 </tr>
54 </table>
55 <?php } ?>
57 <?php