forked from thundi3/thairisfree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
examroom-assignrad.php
39 lines (32 loc) · 957 Bytes
/
examroom-assignrad.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
<?php
############################################
# ThaiRIS (Thai Radiology Information System)
# Version: 1.0
# File last modified: 19 July 2015
# File name: examroom-assignrad.php
# Description :
# http://www.thairis.net
# Email : info.xraythai@gmail.com
############################################
$ID = $_GET['ID']; //
$TYPE = $_GET['TYPE'];
$RADID = $_GET['RADID'];
//$TYPE ='START';
include "connectdb.php";
include "session.php";
mysql_query("UPDATE xray_request_detail SET STATUS='TOREPORT',PAGE='RADIOLOGIST',ASSIGN='$RADID' ,ASSIGN_BY='$userid' WHERE ID=$ID");
$sql ="select * FROM xray_user WHERE CODE ='$RADID'";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result))
{
$radname = $row[NAME];
}
//echo "RID=".$RADID."ID=".$ID;
if ($RADID=='0')
{
echo "Not Assign";
exit;
}
echo "<img src=icons/arrow-turn-000-left.png><font color=green><b>Assigned to : ".$radname."</b></font>";
exit;
?>