-
Notifications
You must be signed in to change notification settings - Fork 9
/
patient-edit.php
55 lines (44 loc) · 1.86 KB
/
patient-edit.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
<?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]
############################################
$MRN = $_GET['MRN'];
include ("session.php");
include ("connectdb.php");
include ("function.php");
echo "PATIENT MRN=".$MRN."<br />";
$sql = "select MRN, NAME, LASTNAME, NAME_ENG, LASTNAME_ENG, SEX, BIRTH_DATE FROM xray_patient_info WHERE MRN='$MRN'";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
echo "<body bgcolor=#E8E8E8>";
echo "<form action=patient-edit-save.php?>";
echo "<input type=hidden name=MRN value=".$MRN.">";
echo "Name : <input type=text name=firstname value=".$row['NAME']."><br />";
echo "Lastname : <input type=text name=lastname value=".$row['LASTNAME']."><br />";
echo "Name (English) : <input type name=nameeng value=".$row['NAME_ENG']."><br />";
echo "Lastname (Englist) : <input type name=lastnameeng value=".$row['LASTNAME_ENG']."><br />";
if ($row['SEX'] =='M') {
echo "<input type=\"radio\" name=\"sex\" value=\"male\" checked/> Male ";
echo "<input type=\"radio\" name=\"sex\" value=\"female\" /> Female ";
echo "<input type=\"radio\" name=\"sex\" value=\"unknow\" /> Unknow <br />";
}
if ($row['SEX'] == 'F') {
echo "<input type=\"radio\" name=\"sex\" value=\"male\" />";
echo "<input type=\"radio\" name=\"sex\" value=\"female\" checked/> Female ";
echo "<input type=\"radio\" name=\"sex\" value=\"female\" /> Unknow <br />";
}
if ($row['SEX'] == 'U') {
echo "<input type=\"radio\" name=\"sex\" value=\"male\" />";
echo "<input type=\"radio\" name=\"sex\" value=\"female\" /> Female ";
echo "<input type=\"radio\" name=\"sex\" value=\"unknow\" /> Unknow <br />";
}
echo $row['SEX']."<br />";
echo "<input type=\"submit\" value=\"Submit\" />";
echo "</form>";
?>