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

<%'=============================
call head()
Call cardgame("球类投注中心",yanse12)
%>您目前共有<%=myjb%><%=getcent%><br/><%
response.write "<a href=""ball_f.asp?TP=0&amp;sid="&sid&"&amp;saytk="&saytk&""">全部</a>"&chr(13)
response.write "<a href=""ball_f.asp?TP=1&amp;sid="&sid&"&amp;saytk="&saytk&""">足球</a>"&chr(13)
response.write "<a href=""ball_f.asp?TP=2&amp;sid="&sid&"&amp;saytk="&saytk&""">篮球</a>"&chr(13)
response.write "<a href=""ball_f.asp?TP=3&amp;sid="&sid&"&amp;saytk="&saytk&""">其它</a><br/>"&chr(13)
response.write "【可以兑奖的投注】<br/>"
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=1 and ballj=0 and usid="&myid&" and balltype="&TP&" order by ID desc"
else
sql="select * from YD_voteid where Active=1 and ballj=0 and usid="&myid&" order by ID desc"
end if
rs.open sql,ydzqconn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=100						
	Dim Count,page,pagecount,gopage			
	gopage="ball_f.asp?TP="&TP&"&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	
	   set rs1=Server.CreateObject("ADODB.Recordset")
   rs1.open"select * from YD_vote where id="&rs("ballid")&" order by ID desc",ydzqconn,1,1

if not rs1.eof then

    if rs("balltype")=1 then
	if rs("vote")=1 then
	if rs1("ballvote")="(让平手)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))=0 then
    

	elseif rs1("ballvote")="(让一球)" and abs(rs1("ballresult1"))+abs(rs1("ballresult2"))=1 then
    

	elseif rs1("ballvote")="(让二球)" and abs(rs1("ballresult1"))+abs(rs1("ballresult2"))=2 then
    

	elseif rs1("ballvote")="(让一球)" and abs(abs(rs1("ballresult1"))-abs(rs1("ballresult2")))=1 then
    

	elseif rs1("ballvote")="(让二球)" and abs(abs(rs1("ballresult1"))-abs(rs1("ballresult2")))=2 then
    

	elseif rs1("ballvote")="(让半球)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))>=1 and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"
    elseif rs1("ballvote")="(让半球)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))<1 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让平手)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))>=1 and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让平手)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))<1 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让一球)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))>=2 and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让一球)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))<2 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让一球半)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))>=2 and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让一球半)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))<2 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让一球半)" and abs(rs1("ballresult2"))-abs(rs1("ballresult1"))>=0 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让二球)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))>=3 and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让二球)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))<3 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让二球半)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))>=3 and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让二球半)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))<3 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让二球半)" and abs(rs1("ballresult2"))-abs(rs1("ballresult1"))>=0 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让平手/半球)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))=0 and rs("typeID")=2 then
dim paycent1,paycent2
paycent1=rs("paycent")*rs1("ballvotelu2")-rs("paycent")
paycent2=paycent1/2
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")赢半,中"&rs("paycent")+paycent2&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让平手/半球)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))>=1 and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让平手/半球)" and abs(rs1("ballresult2"))-abs(rs1("ballresult1"))>=0 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让半球/一球)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))=1 and rs("typeID")=1 then
dim paycent3,paycent4
paycent3=rs("paycent")*rs1("ballvotelu1")-rs("paycent")
paycent4=paycent3/2

Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")赢半,中"&rs("paycent")+paycent4&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让半球/一球)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))>=2 and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让半球/一球)" and abs(rs1("ballresult2"))-abs(rs1("ballresult1"))>=0 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让一球/球半)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))=1 and rs("typeID")=1 then
dim paycent5,paycent6
paycent5=rs("paycent")*rs1("ballvotelu1")-rs("paycent")
paycent6=paycent5/2

Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")赢半,中"&rs("paycent")+paycent6&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让一球/球半)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))>=2 and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让一球/球半)" and abs(rs1("ballresult2"))-abs(rs1("ballresult1"))>=0 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让两球/两球半)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))=2 and rs("typeID")=1 then
dim paycent7,paycent8
paycent7=rs("paycent")*rs1("ballvotelu1")-rs("paycent")
paycent8=paycent7/2

Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")赢半,中"&rs("paycent")+paycent8&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让两球/两球半)" and abs(rs1("ballresult1"))-abs(rs1("ballresult2"))>=3 and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif rs1("ballvote")="(让两球/两球半)" and abs(rs1("ballresult2"))-abs(rs1("ballresult1"))>=0 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

'else
'Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")未中<br/>"
	end if
	
elseif rs("vote")=2  then
if abs(rs1("ballresult2"))+abs(rs1("ballresult1"))<abs(rs1("balldx")) and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("balldxlu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

	elseif abs(rs1("ballresult2"))+abs(rs1("ballresult1"))>abs(rs1("balldx")) and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("balldxlu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

'else
'Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")未中<br/>"
	end if
   
elseif rs("vote")=3 then
    dim ballresult
    ballresult=abs(rs1("ballresult2"))+abs(rs1("ballresult1"))
    if ballresult mod 2 =1 and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("balldslu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif ballresult mod 2 <>1 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("balldslu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

'else
'Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")未中<br/>"
	end if
   end if
   
   ELSE
'-----------------------------------------------------
if rs("vote")=1  then

      if abs(rs1("ballresult1"))+abs(rs1("ballresult2")) = abs(rs1("ballvote")) then
    

      elseif abs(abs(rs1("ballresult1"))-abs(rs1("ballresult2"))) = abs(rs1("ballvote")) then
    
      
      elseif abs(rs1("ballresult1"))-abs(rs1("ballresult2")) > abs(rs1("ballvote")) and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif abs(rs1("ballresult1"))-abs(rs1("ballresult2"))<abs(rs1("ballvote")) and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"


    elseif abs(rs1("ballresult1"))-abs(rs1("ballresult2"))=abs(rs1("ballvote")) and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("ballvotelu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"
   
   'else
'Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")未中<br/>"
	end if
	
elseif rs("vote")=2 then

if abs(rs1("ballresult2"))+abs(rs1("ballresult1"))<abs(rs1("balldx")) and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("balldxlu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

	elseif abs(rs1("ballresult2"))+abs(rs1("ballresult1"))>abs(rs1("balldx")) and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("balldxlu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

'else
'Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")未中<br/>"
	end if
   
elseif rs("vote")=3 then

    ballresult=abs(rs1("ballresult2"))+abs(rs1("ballresult1"))
    if ballresult mod 2 =1 and rs("typeID")=1 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("balldslu1")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

    elseif ballresult mod 2 <>1 and rs("typeID")=2 then
Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")中"&rs("paycent")*rs1("balldslu2")&getcent&""
if rs("ballj")=0 then
Response.write "[<a href=""ball_j.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&""">兑奖</a>]"
end if
Response.write "<br/>"

'else
'Response.write ""&rs("votetxt")&"(结果:"&rs1("ballresult1")&":"&rs1("ballresult2")&")未中<br/>"
	end if
   end if
   end if
  ' Else
'Response.write "暂时没有可以兑奖的投注记录！<br/>"
    end if
    rs1.close
set rs1=nothing
	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 "暂时没有记录！<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&"&amp;saytk="&saytk&""">返回球类投注首页</a>"
%>
<!--#include file="fanhui.asp"-->
<%call headsay()%>