-
Notifications
You must be signed in to change notification settings - Fork 9
/
referrer_view.php
78 lines (53 loc) · 1.18 KB
/
referrer_view.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
############################################
# ThaiRIS (Thai Radiology Information System)
# Version: 1.0
# File last modified: 8 Nov 2016
# File name:
# Description :
# http://www.thairis.net
# Email : [email protected]
############################################
include "connectdb.php";
$result = mysql_query("SELECT * FROM xray_referrer");
?>
<html>
<head>
<title>View Referrer</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
</head>
<body>
<?php
echo "<table border='1'>
<tr>
<th>CODE</th>
<th>DEGREE</th>
<th>NAME</th>
<th>LASTNAME</th>
<th>English Name</th>
<th>English LASTNAME</th>
</tr>\n";
//$row1 = mysql_fetch_array($result);
//if ($row1 < 0) {
//exit;
//}
while($row = mysql_fetch_array($result))
{
if($bg == "#FFFFFF") {
$bg = "#FFCCCC";
} else {
$bg = "#FFFFFF";
}
echo "<tr bgcolor=$bg>";
echo "<td>" . $row['REFERRER_ID'] . "</td>";
echo "<td>" . $row['DEGREE'] . "</td>";
echo "<td>" . $row['NAME'] . "</td>";
echo "<td>" . $row['LASTNAME'] . "</td>";
echo "<td>" . $row['NAME_ENG'] . "</td>";
echo "<td>" . $row['LASTNAME_ENG'] . "</td>";
echo "</tr>\n";
}
echo "</table>";
?>
</body>
</html>