-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewpattest.php
64 lines (61 loc) · 2.09 KB
/
viewpattest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
session_start();
include("includes/header.php");
include("includes/conn.php");
$resapp = mysqli_query($con,"SELECT * FROM appointment where pat_id=$_SESSION[pat_id]");
$retapp = mysqli_fetch_array($resapp);
$restest= mysqli_query($con,"SELECT * FROM test where app_id=$retapp[app_id]");
$retest = mysqli_fetch_array($restest);
?>
<div id="templatemo_main">
<div id="sidebar" class="float_l">
<div class="sidebar_box"><span class="bottom"></span>
<?php
include("sidebar.php");
patienthome();
?>
</div>
</div>
<div id="content" class="faq float_r">
<table width="432" border="0">
<tr>
<td colspan="2" align="center">Test Results</td>
</tr>
<tr>
<?php
$restt = mysqli_query($con,"SELECT * FROM test where app_id=$retest[app_id]");
$arrrec = mysqli_fetch_array($restt);
$sph = unserialize($arrrec[sph]);
$cyl = unserialize($arrrec[cyl]);
$axis = unserialize($arrrec[axis]);
?>
<td width="164">Test ID:<?php echo $retest[test_id]; ?></td>
<td width="258"> Appointment ID <?php echo $retest[app_id]; ?></td>
</tr>
<tr bgcolor="#FFFFCC">
<td align="center">Left Eye</td>
<td align="center">Right Eye</td>
</tr>
<tr bgcolor="#FFFFCC">
<td>SPH:<?php echo $sph[0]; ?></td>
<td>SPH:<?php echo $sph[1]; ?></td>
</tr>
<tr bgcolor="#FFFFCC">
<td>CYL:<?php echo $cyl[0]; ?></td>
<td>CYL:<?php echo $cyl[1]; ?></td>
</tr>
<tr bgcolor="#FFFFCC">
<td>Axis:<?php echo $axis[0]; ?></td>
<td>Axis:<?php echo $axis[1]; ?></td>
</tr>
<tr>
<td>Remarks:<?php echo $arrrec[remarks]; ?></td>
<td>Specs Requirement:<?php echo $arrrec[specs_req]; ?></td>
</tr>
</table>
</div>
<div class="cleaner"></div>
</div>
<?php
include("includes/footer.php");
?>