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




<%


call head()
Call cardgame("吹牛挑战清单",yanse6)

  Response.write "【吹牛挑战清单】<br/>"
 Response.write "--------------<br/>"
 set rs = server.createobject("adodb.recordset")
 rs.open"select * from YD_jd order by times desc",ydzqconn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10						
	Dim Count,page,pagecount,gopage			
	gopage="pklist.asp?saytk="&saytk&"&amp;sid="&sid&"&amp;"
	Count=rs.recordcount	
	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
	dim user2
 set rs1 = server.createobject("adodb.recordset")
 rs1.open"select name from users where id="&rs("useid"),conn,1,1
 if not rs1.eof then
 user2=rs1("name")
 end if 
 rs1.close
 set rs1=nothing
    response.write date_gametalk(rs("times"))&"前"&user2&"说了一个值"&rs("paycent")&"的吹牛！<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/><b>"&page&"</b>/"&pagecount&"页<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
ydzqconn.close
set ydzqconn=nothing
conn.close
set conn=nothing
%>
-------------
<!--#include file="fanhui.asp"-->
<%
call headsay()
%>