<!--#include file="../Inc.asp"-->
<!--#include file="../ydzq.asp"-->
<!--#include file="conn.asp"-->

<%Call head()
Call saycarda("每期中奖清单")

set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from YD_info order by ID desc"
rs.open sql,ydzqconn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10						
	Dim Count,page,pagecount,gopage			
	gopage="qlist.asp?sid="&sid&"&amp;"
	Count=ydzqconn.execute("Select count(ID) from [YD_info]")(0)	
	page=int(request.QueryString ("page"))
	if page<=0 or page="" then page=1		
	pagecount=(count+pagesize-1)\pagesize
        if page>pagecount then page=pagecount
	rs.move(pagesize*(page-1))					
	For i=1 To PageSize     						
	If rs.eof Then Exit For	
Response.write "<a href=""winview.asp?newqi="&rs("qinum")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">[第"&rs("qinum")&"期]中奖名单记录</a><br/>"

	rs.moveNext
 	Next
	if page-pagecount<0 then response.write "<a href="""&gopage&"page="&page+1&""">下页</a>"
	if page>1 then response.write "<a href="""&gopage&"page="&page-1&""">上页</a>"
	if pagecount>1 then response.write "<br/>"&page&"/"&pagecount&"页,共"&Count&"条<br/><input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""3""/><a href="""&gopage&"page=$(page)"">跳到该页</a><br/>"
Else
Response.write "暂时没有！<br/>"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
ydzqconn.close
set ydzqconn=nothing
Response.write "----------------<br/>"
response.write "<a href=""index.asp?sid="&sid&""">返回虚拟投注</a>"
%>
<!--#include file="fanhui.asp"-->
<%Call head2()%>