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

<%
Auto_Login()

if Request.QueryString("ac")="GetiAttentionRecord" then 
	RS_End
	dim SumPay,SumIncome,CurrentPage,k,Re
	Re="var Re=""{data:["
	Set RS=DB_CONN.EXECUTE("select a.*,b.[i_User_NickName] as 'UN',(select [i_Sys_Room_ID] from [i_Sys_Room] where [i_Sys_Room_AdminUserID]=b.[i_User_ID]) as 'uid' from [i_User_Attention] a join [i_User_Info] b on a.[i_User_Attention_UID]=b.[i_User_ID] where a.[i_User_Attention_GUID]="&Session(Session_UserID_Arg)&" order by a.[i_User_Attention_Date] desc")
	RS.pagesize=20
	if isempty(Request.QueryString("page")) or Request.QueryString("page")="" then CurrentPage=1 else CurrentPage=Cint(Request.QueryString("page")) end if
	if not RS.eof then RS.absolutepage = CurrentPage
	while (not RS.eof and k<RS.pagesize )
		if k>0 then Re=Re&","		
		Re=Re&"{gu:'"&RS("uid")&"',gun:'"&RS("UN")&"'}"
		k=k+1
		RS.MoveNext
	Wend
	Re=Re&"],recordcount:"&RS.recordcount&",pagenum:"&RS.pagecount&",currentpage:"&CurrentPage&"}"";"
	RS_End
	RW Re
	Rend
end if

%>