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) {
13 $data = formFetch("form_snellen", $id);
18 <table
class='text' border
='0px' cellpadding
='2px' cellspacing
='0px'>
20 <td width
='80px'><b
> 
;</td
>
21 <td width
='80px'><b
>Without Correction
</b
></td
>
22 <td width
='80px'><b
>With Correction
</b
></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
>
31 <td
>20/<?php
echo $data['right_1'] ?
$data['right_1'] : "__"; ?
></td
>
32 <td
>20/<?php
echo $data['right_2'] ?
$data['right_2'] : "__"; ?
></td
>
37 <?php
if ($data['notes'] != '') {?
>
39 <table border
='0' cellpadding
='0' cellspacing
='0' class='text'>
44 <td
><p align
='left'><?php
echo $data['notes']?
> 
;</p
></td
>