<!--#include file="inc.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="kjinc.asp"-->
<%
call saycardd("开奖记录")%>
<%=now%><br/>
<%
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="tmlist.asp?saytk="&saytk&"&amp;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	
if rs("tm")<>"" then
Response.write "<a href='tmedit.asp?id="&rs("id")&"&amp;saytk="&saytk&"&amp;sid="&sid&"'>编辑</a>[第"&rs("qinum")&"期]<b>特</b>:"&usb(rs("tm"))&tmstr(rs("tm"))
Response.write "<br/><b>平</b>:"&usb(rs("pm1"))&"-"&usb(rs("pm2"))&"-"&usb(rs("pm3"))&"-"&usb(rs("pm4"))&"-"&usb(rs("pm5"))&"-"&usb(rs("pm6"))&"<br/>"
else
Response.write "[第"&rs("qinum")&"期]<b>特</b>:等待开奖.."
Response.write "<b>平</b>:等待开奖..<br/>"
end if 
	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
%>
----------<br/><a href="adminvote.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>">[投注管理]</a>
<!--#include file="fanhui.asp"-->
<%call head1%>