Highway to PSR2
[openemr.git] / contrib / forms / snellen / report.php
blobb54b2d8154c0b43b67085dc898a46cc306a898e7
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 snellen_report($pid, $encounter, $cols, $id)
12 $count = 0;
13 $cols = 2;
14 $data = formFetch("form_snellen", $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>Without Correction</b></td>
23 <td width='80px'><b>With Correction</b></td>
24 </tr>
25 <tr>
26 <td>(L) Eye</td>
27 <td>20/<?php echo $data['left_1'] ? $data['left_1'] : "__"; ?></td>
28 <td>20/<?php echo $data['left_2'] ? $data['left_2'] : "__"; ?></td>
29 </tr>
30 <tr>
31 <td>(R) Eye</td>
32 <td>20/<?php echo $data['right_1'] ? $data['right_1'] : "__"; ?></td>
33 <td>20/<?php echo $data['right_2'] ? $data['right_2'] : "__"; ?></td>
34 </tr>
36 </table>
38 <?php if ($data['notes'] != '') {?>
39 </p>
40 <table border='0' cellpadding='0' cellspacing='0' class='text'>
41 <tr class='text'>
42 <td><b>NOTES</b></td>
43 </tr>
44 <tr class='text'>
45 <td><p align='left'><?php echo $data['notes']?>&nbsp;</p></td>
46 </tr>
47 </table>
48 <?php } ?>
50 <?php