-
Notifications
You must be signed in to change notification settings - Fork 9
/
createorder2.php
91 lines (79 loc) · 1.9 KB
/
createorder2.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
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
############################################
# ThaiRIS (Thai Radiology Information System)
# Version: 1.0
# File last modified: 8 Nov 2016
# File name:
# Description :
# http://www.thairis.net
# Email : info.xraythai@gmail.com
############################################
//header("Content-type: text/html; charset=TIS-620");
include ("session.php");
include "connectdb.php";
?>
<!DOCTYPE html>
<html>
<head>
<title>Search</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
</head>
<body>
<?php
// Query Procedure
$TYPE = $_GET['TYPE'];
$HN = $_GET['HN'];
$REFERRER = $_GET['REFERRER'];
$DEPARTMENT = $_GET['DEPARTMENT'];
if ($REFERRER == '')
{
echo "Please Select Physician";
exit;
}
if ($DEPARTMENT == '')
{
echo "Please Select Department";
exit;
}
echo "HN=".$HN;
echo "<br />Reffer : ".$REFERRER;
echo "<br />Department : ".$DEPARTMENT;
$sql = "select * FROM xray_code WHERE XRAY_TYPE_CODE = '$TYPE' LIMIT 0,15" ;
$result = mysql_query($sql);
echo "<table border='0'>
<tr>
<th>Code</th>
<th>Procedure</th>
<th>Type</th>
<th>Price</th>
<th>Select</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['XRAY_CODE'] . "</td>";
echo "<td>" . $row['DESCRIPTION'] . "</td>";
echo "<td>" . $row['XRAY_TYPE_CODE'] . "</td>";
echo "<td align=right>" . $row['CHARGE_TOTAL'] . "</td>";
//echo "<td><input type=\"submit\" name=\"pselect\" id=\"pselect\" value=\"Select\" onclick=create('".$row['XRAY_CODE']."') /></td>";
echo "<td><input type=\"submit\" name=\"pselect\" id=\"pselect\" value=\"Select\" onclick=add_cart('".$HN."','".$row['XRAY_CODE']."')></td>";
echo "</tr>\n";
}
echo "</table>";
echo "Type = ".$TYPE;
echo "User = ".$username;
?>
</body>
</html>