Fourth merge from Julia Longtin repository with conflict fix in interface/patient_fil...
[openemr.git] / contrib / forms / snellen / report.php
blob3a7a49c078facb82e734e591d63a447e6b4f0702
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) {
11 $count = 0;
12 $cols = 2;
13 $data = formFetch("form_snellen", $id);
14 $width = 100/$cols;
15 if ($data) {
18 <table class='text' border='0px' cellpadding='2px' cellspacing='0px'>
19 <tr>
20 <td width='80px'><b>&nbsp;</td>
21 <td width='80px'><b>Without Correction</b></td>
22 <td width='80px'><b>With Correction</b></td>
23 </tr>
24 <tr>
25 <td>(L) Eye</td>
26 <td>20/<?php echo $data['left_1'] ? $data['left_1'] : "__"; ?></td>
27 <td>20/<?php echo $data['left_2'] ? $data['left_2'] : "__"; ?></td>
28 </tr>
29 <tr>
30 <td>(R) Eye</td>
31 <td>20/<?php echo $data['right_1'] ? $data['right_1'] : "__"; ?></td>
32 <td>20/<?php echo $data['right_2'] ? $data['right_2'] : "__"; ?></td>
33 </tr>
35 </table>
37 <?php if ($data['notes'] != '') {?>
38 </p>
39 <table border='0' cellpadding='0' cellspacing='0' class='text'>
40 <tr class='text'>
41 <td><b>NOTES</b></td>
42 </tr>
43 <tr class='text'>
44 <td><p align='left'><?php echo $data['notes']?>&nbsp;</p></td>
45 </tr>
46 </table>
47 <?php } ?>
49 <?php