<!--#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")="GetNotice" then 
	RS_End
	dim SumPay,SumIncome,CurrentPage,k,Re,t,p,inum,maxin
	if Request.QueryString("top")="" then RW "var NoticeRe='参数错误！';":REND
	if not IsNumeric(Request.QueryString("top")) then RW "var NoticeRe='参数错误！';":REND
	t = Cint(Request.QueryString("top"))
	if Request.QueryString("ps")="" then RW "var NoticeRe='参数错误！';":REND
	if not IsNumeric(Request.QueryString("ps")) then RW "var NoticeRe='参数错误！';":REND
	p = Cint(Request.QueryString("ps"))
	
	Re="var NoticeRe=""{data:["
	Set RS=DB_CONN.EXECUTE("select top "&t&" * from [i_Sys_Notice] order by [i_Sys_Notice_Sort] desc,[i_Sys_Notice_Time] desc")
	RS.pagesize=p
	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&"{noticehref:'"&RS("i_Sys_Notice_Href")&"',noticename:'"&vbsEscape(RS("i_Sys_Notice_Name"))&"',noticecontent:'"&vbsEscape(RS("i_Sys_Notice_Content"))&"'}"
		k=k+1
		RS.MoveNext
	Wend
	Re=Re&"],recordcount:"&RS.recordcount&",pagenum:"&RS.pagecount&",currentpage:"&CurrentPage&"}"";"
	RS_End
	RW Re
	Rend
end if

%>