2 // Copyright (C) 2009 Aron Racho <aron@mi-squared.com>
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)
14 $data = formFetch("form_snellen", $id);
19 <table
class='text' border
='0px' cellpadding
='2px' cellspacing
='0px'>
21 <td width
='80px'><b
> 
;</td
>
22 <td width
='80px'><b
>Without Correction
</b
></td
>
23 <td width
='80px'><b
>With Correction
</b
></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
>
32 <td
>20/<?php
echo $data['right_1'] ?
$data['right_1'] : "__"; ?
></td
>
33 <td
>20/<?php
echo $data['right_2'] ?
$data['right_2'] : "__"; ?
></td
>
38 <?php
if ($data['notes'] != '') {?
>
40 <table border
='0' cellpadding
='0' cellspacing
='0' class='text'>
45 <td
><p align
='left'><?php
echo $data['notes']?
> 
;</p
></td
>