<!--#include file="../Inc.asp"-->
<!--#include file="../ydzq.asp"-->
<!--#include file="conn.asp"-->
<%Call head()
Call saycarda("网友投注记录")
conn.close
set conn=Nothing
set rs=Server.CreateObject("ADODB.Recordset")
rsppl="select * from YD_vote order by id desc"
rs.open rsppl,ydzqconn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10						
	Dim Count,page,pagecount,gopage			
	gopage="vote.asp?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
   'Response.write ""&i+(page-1)*PageSize&"."  
   dim apptext
if rs("typeID")=1 then 
apptext="特码投注"
elseif rs("typeID")=2 then 
apptext="生肖投注"
elseif rs("typeID")=3 then
apptext="波色投注"
elseif rs("typeID")=4 then
apptext="单双投注"
elseif rs("typeID")=5 then
apptext="大小投注"
elseif rs("typeID")=6 then 
apptext="五行投注"
elseif rs("typeID")=7 then
apptext="特码多选投注"
elseif rs("typeID")=8 then 
apptext="生肖多选投注"
elseif rs("typeID")=9 then
apptext="平特肖投注"
elseif rs("typeID")=10 then
apptext="独平投注"
elseif rs("typeID")=11 then 
apptext="独尾投注"
elseif rs("typeID")=12 then
apptext="平码二选投注"
elseif rs("typeID")=13 then 
apptext="平码三选投注"
end  if
   if rs("typeID")=11 then
   Response.write "[第"&ubb(rs("qinum"))&"期]<a href=""../uinfo.asp?id="&rs("userid")&"&amp;sid="&sid&""">"&rs("username")&"(ID:"&rs("userid")&")</a>"&apptext&"<b>"&rs("payCent")&"</b>"&getcent&"到<b>"&rs("vote")&"尾</b>("&fordate(rs("votetime"))&")<br/>" 
   
   elseif rs("typeID")=12 then
   
   Response.write "[第"&ubb(rs("qinum"))&"期]<a href=""../uinfo.asp?id="&rs("userid")&"&amp;sid="&sid&""">"&rs("username")&"(ID:"&rs("userid")&")</a>"&apptext&"<b>"&rs("payCent")&"</b>"&getcent&"到<b>"&rs("vote1")&","&rs("vote2")&"</b>("&fordate(rs("votetime"))&")<br/>"
   elseif rs("typeID")=13 then
      Response.write "[第"&ubb(rs("qinum"))&"期]<a href=""../uinfo.asp?id="&rs("userid")&"&amp;sid="&sid&""">"&rs("username")&"(ID:"&rs("userid")&")</a>"&apptext&"<b>"&rs("payCent")&"</b>"&getcent&"到<b>"&rs("vote1")&","&rs("vote2")&","&rs("vote3")&"</b>("&fordate(rs("votetime"))&")<br/>"
      
   else
   Response.write "[第"&ubb(rs("qinum"))&"期]<a href=""../uinfo.asp?id="&rs("userid")&"&amp;sid="&sid&""">"&rs("username")&"(ID:"&rs("userid")&")</a>"&apptext&"<b>"&rs("payCent")&"</b>"&getcent&"到<b>"&rs("vote")&"</b>("&fordate(rs("votetime"))&")<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/><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
response.write "--------------<br/>"
response.write "<a href=""index.asp?sid="&sid&""">返回虚拟投注</a>"
%><!--#include file="fanhui.asp"-->
<%call head1()%>