<!--#include file="../inc/Bll.asp"-->
<!--#include file="../inc/Constant.asp"-->
<!--#include file="../inc/Md5.asp"-->
<!--#include file="../inc/App.asp"-->

<%
Auto_Login2()

if Request.QueryString("ac")="GetSeatStatus" then 
	RS_End
	dim CurrentPage,k,Re,rid,seat1,seat2,seat3,seat4,seat5
	if Request.QueryString("rid")="" then REND
	if not IsNumeric(Request.QueryString("rid")) then REND
	rid = Request.QueryString("rid")
	Re="var Re=""{data:["
	Set RS=DB_CONN.EXECUTE("select * from [i_Sys_Room] where [i_Sys_Room_ID]="&rid)
	seat1=RS("i_Sys_Room_Seat1_UID")
	seat2=RS("i_Sys_Room_Seat2_UID")
	seat3=RS("i_Sys_Room_Seat3_UID")
	seat4=RS("i_Sys_Room_Seat4_UID")
	seat5=RS("i_Sys_Room_Seat5_UID")
	Re=Re&"{FacePic:'"&tGUInfo(seat1,"i_User_Face")&"',UID:'"&seat1&"',UNickName:'"&tGUInfo(seat1,"i_User_NickName")&"',SeatNum:'1'},"
	Re=Re&"{FacePic:'"&tGUInfo(seat2,"i_User_Face")&"',UID:'"&seat2&"',UNickName:'"&tGUInfo(seat2,"i_User_NickName")&"',SeatNum:'2'},"
	Re=Re&"{FacePic:'"&tGUInfo(seat3,"i_User_Face")&"',UID:'"&seat3&"',UNickName:'"&tGUInfo(seat3,"i_User_NickName")&"',SeatNum:'3'},"
	Re=Re&"{FacePic:'"&tGUInfo(seat4,"i_User_Face")&"',UID:'"&seat4&"',UNickName:'"&tGUInfo(seat4,"i_User_NickName")&"',SeatNum:'4'},"
	Re=Re&"{FacePic:'"&tGUInfo(seat5,"i_User_Face")&"',UID:'"&seat5&"',UNickName:'"&tGUInfo(seat5,"i_User_NickName")&"',SeatNum:'5'}"
	Re=Re&"],recordcount:0}"";"
	RS_End
	RW Re
	Rend
end if
%>