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

<%'=============================
call head()
Call cardgame("球类投注后台",yanse12)

dim ids
ids=request("ids")
if ids="" or Isnumeric(ids)=False then
  Call Error("ID无效！")
  end if
  set rs=Server.CreateObject("ADODB.Recordset")
  rs.open"select id from users where id=" & ids &" order by id desc",conn,1,1
  if rs.eof then
  rs.close
  set rs=nothing
  call error("请输入正确的会员ID！")
  end if
  rs.close
  set rs=nothing
  
response.write "【未开投注】<br/>"
response.write "<a href=""admin_ball_n.asp?TP=0&amp;ids="&ids&"&amp;sid="&sid&"&amp;saytk="&saytk&""">全部</a>"&chr(13)
response.write "<a href=""admin_ball_n.asp?TP=1&amp;ids="&ids&"&amp;sid="&sid&"&amp;saytk="&saytk&""">足球</a>"&chr(13)
response.write "<a href=""admin_ball_n.asp?TP=2&amp;ids="&ids&"&amp;sid="&sid&"&amp;saytk="&saytk&""">篮球</a>"&chr(13)
response.write "<a href=""admin_ball_n.asp?TP=3&amp;ids="&ids&"&amp;sid="&sid&"&amp;saytk="&saytk&""">其它</a><br/>"&chr(13)
dim TP
TP=request("TP")
if TP="" or IsNumeric(TP)=False then TP=0
set rs=Server.CreateObject("ADODB.Recordset")
if TP<>0 then
sql="select * from YD_voteid where Active=0 and usid="&ids&" and typeID="&TP&" order by ID desc"
else
sql="select * from YD_voteid where Active=0 and usid="&ids&" order by ID desc"
end if
rs.open sql,ydzqconn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10						
	Dim Count,page,pagecount,gopage			
	gopage="admin_ball_n.asp?TP="&TP&"&amp;ids="&ids&"&amp;sid="&sid&"&amp;saytk="&saytk&"&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 ""&rs("votetxt")&"(未开)<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/>"
if saytk=1 then
response.write "<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""3""/><a href="""&gopage&"page=$(page)"">跳到该页</a><br/>"
end if
Else
Response.write "暂时没有TA的未开投注记录！<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=""admin_so.asp?sid="&sid&"&amp;saytk="&saytk&""">返回继续搜索</a>"
%>
<!--#include file="fanhui2.asp"-->
<%call headsay()%>