count_result_ztm.asp
来自「买来的六合彩在线投注系统可能没有精力管理这些程序了PHP+mysql」· ASP 代码 · 共 558 行 · 第 1/2 页
ASP
558 行
<!--#include file="mConn.asp"-->
<!--#include file="sk2.asp"-->
<!--#include file="mConst.asp"-->
<%'计算特别号
If Session("SK2Admin")="" and isnumeric(request("issue")) Then
Response.Redirect "Admin_Login.Asp"
Response.End
End If
kithe=request("issue")
Set Rs6=Conn.Execute("Select Top 1 ID,NN,ND,NA,N1,N2,N3,N4,N5,N6 From m_Kithe where NN='"&kithe&"'")
If Not Rs6.Eof Then
Current_KitheTable=Rs6.GetRows(1)
else
response.write "<script lanuage=javascript>alert('还未开奖,请先开奖');history.go(-1);</script>"
response.end
end if
Set Rs6=Conn.Execute("Select ID,color From m_color Order By ID")
If Not Rs6.Eof Then
Get_Para_Color=Rs6.GetRows(-1)
End If
Set Rs6=Conn.Execute("Select ID,m_number From m_sxnumber Order By ID")
If Not Rs6.Eof Then
Get_sx_Color=Rs6.GetRows(-1)
End If
Select Case Request("K6")
Case "K1"
M=0:N=6
t1="t1"
count_tm
Case "K2"
M=5:N=11
t1="t2"
count_tm
Case "K3"
M=10:N=16
t1="t3"
count_tm
Case "K4"
M=15:N=21
t1="t4"
count_tm
Case "K5"
M=20:N=26
t1="t5"
count_tm
Case "K6"
M=25:N=31
t1="t6"
count_tm
Case "K7"
M=30:N=36
t1="t7"
count_tm
Case "K8"
M=35:N=41
t1="t8"
count_tm
Case "K9"
M=40:N=46
t1="t9"
count_tm
Case "K10"
M=45:N=50
t1="t10"
count_tm
Case "K11"
t1="t11"
count_tdan
Case "K12"
t1="t12"
count_ts
Case "K13"
t1="t13"
count_tda
Case "K14"
t1="t14"
count_txiao
Case "K15"
t1="t15"
count_thp
Case "K16"
t1="t16"
count_tlp
Case "K17"
t1="t17"
count_tlanp
Case "K18"
t1="t18"
count_thdan
Case "K19"
t1="t19"
count_ths
Case Else
Response.write "计算成功"
Response.End
End Select
select case cstr(Request("zm"))
case "正1特"
tm=4
case "正2特"
tm=5
case "正3特"
tm=6
case "正4特"
tm=7
case "正5特"
tm=8
case "正6特"
tm=9
end select
Sub count_tm
if request("zm")<>"" then
zm=request("zm")
else
zm="正1特"
end if
number1=0
sum_num=0
set Count_rs=server.createobject("adodb.recordset")
sql="Select chilp_value,sort,result,ID from m_chilp where sort='正特' and chilp_types='"&zm&"' and Kithe='"&Kithe&"'"
Count_rs.open sql,conn,1,1
do while not Count_rs.eof
if isnumeric(Count_rs("chilp_value")) then
select case cstr(Request("zm"))
case "正1特"
if cint(Count_rs("chilp_value"))>M and cint(Count_rs("chilp_value"))<N then
sum_num=sum_num+1
Set Rs6=Conn.Execute("update m_chilp set banlance='1' where ID='"&Count_rs("ID")&"'")
if cint(Current_KitheTable(4,0))=cint(Count_rs("chilp_value")) then
number1=number1+1
Set Rs6=Conn.Execute("update m_chilp set result=1 where ID='"&Count_rs("ID")&"'")
else
Set Rs6=Conn.Execute("update m_chilp set result=0 where ID='"&Count_rs("ID")&"'")
end if
end if
case "正2特"
if cint(Count_rs("chilp_value"))>M and cint(Count_rs("chilp_value"))<N then
sum_num=sum_num+1
Set Rs6=Conn.Execute("update m_chilp set banlance='1' where ID='"&Count_rs("ID")&"'")
if cint(Current_KitheTable(5,0))=cint(Count_rs("chilp_value")) then
number1=number1+1
Set Rs6=Conn.Execute("update m_chilp set result=1 where ID='"&Count_rs("ID")&"'")
else
Set Rs6=Conn.Execute("update m_chilp set result=0 where ID='"&Count_rs("ID")&"'")
end if
end if
case "正3特"
if cint(Count_rs("chilp_value"))>M and cint(Count_rs("chilp_value"))<N then
sum_num=sum_num+1
Set Rs6=Conn.Execute("update m_chilp set banlance='1' where ID='"&Count_rs("ID")&"'")
if cint(Current_KitheTable(6,0))=cint(Count_rs("chilp_value")) then
number1=number1+1
Set Rs6=Conn.Execute("update m_chilp set result=1 where ID='"&Count_rs("ID")&"'")
else
Set Rs6=Conn.Execute("update m_chilp set result=0 where ID='"&Count_rs("ID")&"'")
end if
end if
case "正4特"
if cint(Count_rs("chilp_value"))>M and cint(Count_rs("chilp_value"))<N then
sum_num=sum_num+1
Set Rs6=Conn.Execute("update m_chilp set banlance='1' where ID='"&Count_rs("ID")&"'")
if cint(Current_KitheTable(7,0))=cint(Count_rs("chilp_value")) then
number1=number1+1
Set Rs6=Conn.Execute("update m_chilp set result=1 where ID='"&Count_rs("ID")&"'")
else
Set Rs6=Conn.Execute("update m_chilp set result=0 where ID='"&Count_rs("ID")&"'")
end if
end if
case "正5特"
if cint(Count_rs("chilp_value"))>M and cint(Count_rs("chilp_value"))<N then
sum_num=sum_num+1
Set Rs6=Conn.Execute("update m_chilp set banlance='1' where ID='"&Count_rs("ID")&"'")
if cint(Current_KitheTable(8,0))=cint(Count_rs("chilp_value")) then
number1=number1+1
Set Rs6=Conn.Execute("update m_chilp set result=1 where ID='"&Count_rs("ID")&"'")
else
Set Rs6=Conn.Execute("update m_chilp set result=0 where ID='"&Count_rs("ID")&"'")
end if
end if
case "正6特"
if cint(Count_rs("chilp_value"))>M and cint(Count_rs("chilp_value"))<N then
sum_num=sum_num+1
Set Rs6=Conn.Execute("update m_chilp set banlance='1' where ID='"&Count_rs("ID")&"'")
if cint(Current_KitheTable(9,0))=cint(Count_rs("chilp_value")) then
number1=number1+1
Set Rs6=Conn.Execute("update m_chilp set result=1 where ID='"&Count_rs("ID")&"'")
else
Set Rs6=Conn.Execute("update m_chilp set result=0 where ID='"&Count_rs("ID")&"'")
end if
end if
end select
end if
Count_rs.movenext
loop
Set Rs6=Nothing
if number1<1 then
number1=-cint(sum_num)
end if
Response.write "计算成功"
response.end
End Sub
'特单
Sub count_tdan
if request("zm")<>"" then
zm=request("zm")
else
zm="正1特"
end if
number1=0
sum_num=0
Set Rs6=Conn.Execute("update m_chilp set banlance='1' where sort='正特' and chilp_types='"&zm&"' and chilp_value='单' and Kithe='"&Kithe&"'")
set Count_rs=server.createobject("adodb.recordset")
sql="Select chilp_value,sort,result,ID from m_chilp where sort='正特' and chilp_types='"&zm&"' and chilp_value='单' and Kithe='"&Kithe&"'"
Count_rs.open sql,conn,1,1
do while not Count_rs.eof
if cint(Current_KitheTable(tm,0))=49 then
Set Rs6=Conn.Execute("update m_chilp set result=0,amount='和局' where ID='"&Count_rs("ID")&"'")
else
sum_num=sum_num+1
if cint(Current_KitheTable(tm,0)) mod 2=1 and trim(Count_rs("chilp_value"))="单" then
number1=number1+1
Set Rs6=Conn.Execute("update m_chilp set result=1 where ID='"&Count_rs("ID")&"'")
else
Set Rs6=Conn.Execute("update m_chilp set result=0 where ID='"&Count_rs("ID")&"'")
end if
end if
Count_rs.movenext
loop
Set Rs6=Nothing
if number1<1 then
number1=-cint(sum_num)
end if
Response.write "计算成功"
response.end
End Sub
'特双
Sub count_ts
if request("zm")<>"" then
zm=request("zm")
else
zm="正1特"
end if
number1=0
sum_num=0
Set Rs6=Conn.Execute("update m_chilp set banlance='1' where sort='正特' and chilp_types='"&zm&"' and chilp_value='双' and Kithe='"&Kithe&"'")
set Count_rs=server.createobject("adodb.recordset")
sql="Select chilp_value,sort,result,ID from m_chilp where sort='正特' and chilp_types='"&zm&"' and chilp_value='双' and Kithe='"&Kithe&"'"
Count_rs.open sql,conn,1,1
do while not Count_rs.eof
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?