chore: complete integration of flex-3.20 (alpine 3.20) into ci (#7538)
[openemr.git] / contrib / forms / snellen / report.php
blob82bfe157189200858803ade5e4246603649dadd2
1 <?php
3 // Copyright (C) 2009 Aron Racho <aron@mi-squared.com>
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 //------------Forms generated from formsWiz
9 require_once("../../globals.php");
10 require_once($GLOBALS["srcdir"] . "/api.inc.php");
11 function snellen_report($pid, $encounter, $cols, $id)
13 $count = 0;
14 $cols = 2;
15 $data = formFetch("form_snellen", $id);
16 $width = 100 / $cols;
17 if ($data) {
20 <table class='text' border='0px' cellpadding='2px' cellspacing='0px'>
21 <tr>
22 <td width='80px'><b>&nbsp;</td>
23 <td width='80px'><b>Without Correction</b></td>
24 <td width='80px'><b>With Correction</b></td>
25 </tr>
26 <tr>
27 <td>(L) Eye</td>
28 <td>20/<?php echo $data['left_1'] ? text($data['left_1']) : "__"; ?></td>
29 <td>20/<?php echo $data['left_2'] ? text($data['left_2']) : "__"; ?></td>
30 </tr>
31 <tr>
32 <td>(R) Eye</td>
33 <td>20/<?php echo $data['right_1'] ? text($data['right_1']) : "__"; ?></td>
34 <td>20/<?php echo $data['right_2'] ? text($data['right_2']) : "__"; ?></td>
35 </tr>
37 </table>
39 <?php if ($data['notes'] != '') {?>
40 </p>
41 <table border='0' cellpadding='0' cellspacing='0' class='text'>
42 <tr class='text'>
43 <td><b>NOTES</b></td>
44 </tr>
45 <tr class='text'>
46 <td><p align='left'><?php echo text($data['notes']); ?>&nbsp;</p></td>
47 </tr>
48 </table>
49 <?php } ?>
51 <?php