3 // Copyright (C) 2009 Aron Racho <aron@mi-squared.com>
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)
15 $data = formFetch("form_snellen", $id);
20 <table
class='text' border
='0px' cellpadding
='2px' cellspacing
='0px'>
22 <td width
='80px'><b
> 
;</td
>
23 <td width
='80px'><b
>Without Correction
</b
></td
>
24 <td width
='80px'><b
>With Correction
</b
></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
>
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
>
39 <?php
if ($data['notes'] != '') {?
>
41 <table border
='0' cellpadding
='0' cellspacing
='0' class='text'>
46 <td
><p align
='left'><?php
echo text($data['notes']); ?
> 
;</p
></td
>