sub_just.asp

来自「买来的六合彩在线投注系统可能没有精力管理这些程序了PHP+mysql」· ASP 代码 · 共 1,342 行 · 第 1/4 页

ASP
1,342
字号
<!--#include file="../manage/mConn.asp"-->
<!--#include file="../manage/mConst.asp"-->
<!--#include file="../manage/Number_Info.Asp"-->
<!--#include file="../manage/sk2.Asp"-->

<% Get_Kithe_Para
  If Session("SK2B")="" Then
    Response.Write ("<script Language=Javascript>alert('Please input username/password and try again!!!');window.open('index.asp','_top');</script>")
	Response.End
  End If
If Not Isnumeric(Request("K1")) Then
  Response.Write ("<script language=javascript>alert('非法参数!');history.go(-1)</script>")
  Response.End
End If

If Not Isnumeric(Request("K2")) Then
  Response.Write ("<script language=javascript>alert('非法参数!');history.go(-1)</script>")
  Response.End
End If

If Not Isnumeric(Request("K3")) Then
  Response.Write ("<script language=javascript>alert('非法参数!');history.go(-1)</script>")
  Response.End
End If
Set Rs6=Conn.Execute("Select Top 1 caution,Current_Credits,P_AgentID,self_cuts,super_cuts,ID From m_agent Where Login_Name='"&session("SK2B")&"' Order By ID Desc")
   If not Rs6.Eof Then
    isshowcolor=Rs6("caution")
	'response.Write isshowcolor
	end if
Dim K1,K2,K3
Set Rs6=Conn.Execute("Select Top 1 Current_Credits,P_AgentID,self_cuts,super_cuts,ID From m_agent Where Login_Name='"&session("SK2B")&"' Order By ID Desc")
   If Rs6.Eof Then
     Set Rs6=Nothing
	 Response.End
	 end if
Agent_info=Rs6.GetRows(1)
'response.write Agent_info(1,0)&"<br><br><br><br><br><br>"

dim sum_money(55),count_t(55)
for i=1 to 55 
sum_money(i)=0
count_t(i)=0
next
if Agent_info(1,0)=0 then
	'response.write "Select Top 1 Current_Credits,P_AgentID,self_cuts,super_cuts,Login_Name From m_agent Where ID='"&Agent_info(1,0)&"' Order By ID Desc"
	'Set Rs5=Conn.Execute("Select Top 1 Current_Credits,P_AgentID,self_cuts,super_cuts,Login_Name From m_agent Where P_AgentID='"&Agent_info(4,0)&"' Order By ID Desc")
   'set Count_Agent=server.createobject("adodb.recordset")
   'sql="Select Top 1 Current_Credits,P_AgentID,self_cuts,super_cuts,Login_Name From m_agent Where P_AgentID='"&Agent_info(4,0)&"' Order By ID Desc"
   'Count_Agent.open sql,conn,1,1
   'do while not Count_Agent.eof 
   manager=Session("SK2B")
	SQL6="Select sum_m="
If Request("K2")="" Or Request("K2")=1 Then
  K2=1
  SQL6=SQL6&" sum_m,"
Else
  K2=0
  SQL6=SQL6&"sum_m*zong_zc/100,"
End If
	if session("agenttype")=1 or session("subtype")=1 then
		SQL6=SQL6&"chilp_value,chilp_types,sort,dai_zc,zong_zc From m_chilp  where  Agent_three='"&session("SK2B")&"'"
	else
		SQL6=SQL6&"chilp_value,chilp_types,sort,dai_zc,zong_zc From m_chilp  where  Agent_second='"&session("SK2B")&"'"
	end if
If Request("K1")="" Or Request("K1")=0 Then
  K1=0
  SQL6=SQL6&" And Memed='a'"
Else
  if Request("K1")=1 then
  K1=1
  SQL6=SQL6&" And Memed='b'"
  else
    if Request("K1")=2 then
    K1=2
    SQL6=SQL6&" And Memed='c'"
    else
    K1=3
    SQL6=SQL6&" And Memed='d'"
    end if
  end if
End If
SQL6=SQL6&" and Kithe='"&Current_Kithe_Num&"' and banlance='0' and sort='正码'"
'response.Write SQL6
Set Rs6=Conn.Execute(SQL6)
	If Rs6.Eof Then
      Set Rs6=Nothing
	else
	show_count=Rs6.GetRows(-1)
	
	set Count_rs=server.createobject("adodb.recordset")
   sql=SQL6
   Count_rs.open sql,conn,1,1
   do while not Count_rs.eof 
	for j=1 to 49
	'response.Write cstr(show_count(0,0))
	if isnumeric(Count_rs("chilp_value")) then
	if cint(Count_rs("chilp_value"))=cint(j) then
	sum_money(j)=sum_money(j)+Count_rs("sum_m")
	count_t(j)=count_t(j)+1
	'response.Write sum_money(j)&"<br>"&j
	end if
	end if
	next
	if not isnumeric(Count_rs("chilp_value")) then
	select case trim(Count_rs("chilp_value"))
	case "总单"
	sum_money(50)=sum_money(50)+Count_rs("sum_m")
	count_t(50)=count_t(50)+1
	'response.write Count_rs("sum_m")&"<br>"&sum_money(50)
	case "总双"
	sum_money(51)=sum_money(51)+Count_rs("sum_m")
	count_t(51)=count_t(51)+1
	case "总大"
	sum_money(52)=sum_money(52)+Count_rs("sum_m")
	count_t(52)=count_t(52)+1
	case "总小"
	sum_money(53)=sum_money(53)+Count_rs("sum_m")
	count_t(53)=count_t(53)+1
	end select
	end if
	Count_rs.movenext
	loop
	end if
	'Count_Agent.movenext
	'loop
else
SQL6="Select sum_m="
If Request("K2")="" Or Request("K2")=1 Then
  K2=1
  SQL6=SQL6&" sum_m,"
Else
  K2=0
  SQL6=SQL6&"sum_m*zong_zc/100,"
End If
SQL6=SQL6&"chilp_value,chilp_types,sort,dai_zc,zong_zc From m_chilp  where (Agent_first='"&session("SK2B")&"' or Agent_second='"&session("SK2B")&"' or Agent_three='"&session("SK2B")&"')"
If Request("K1")="" Or Request("K1")=0 Then
  K1=0
  SQL6=SQL6&" And Memed='a'"
Else
  if Request("K1")=1 then
  K1=1
  SQL6=SQL6&" And Memed='b'"
  else
    if Request("K1")=2 then
    K1=2
    SQL6=SQL6&" And Memed='c'"
    else
    K1=3
    SQL6=SQL6&" And Memed='d'"
    end if
  end if
End If
SQL6=SQL6&" and Kithe='"&Current_Kithe_Num&"' and banlance='0' and sort='正码'"
'response.Write SQL6
Set Rs6=Conn.Execute(SQL6)
	If Rs6.Eof Then
      Set Rs6=Nothing
	else
	show_count=Rs6.GetRows(-1)
	
	set Count_rs=server.createobject("adodb.recordset")
   sql=SQL6
   Count_rs.open sql,conn,1,1
   do while not Count_rs.eof 
	for j=1 to 49
	'response.Write cstr(show_count(0,0))
	if isnumeric(Count_rs("chilp_value")) then
	if cint(Count_rs("chilp_value"))=cint(j) then
	sum_money(j)=sum_money(j)+Count_rs("sum_m")
	count_t(j)=count_t(j)+1
	'response.Write sum_money(j)&"<br>"&j
	end if
	end if
	next
	if not isnumeric(Count_rs("chilp_value")) then
	select case trim(Count_rs("chilp_value"))
	case "总单"
	sum_money(50)=sum_money(50)+Count_rs("sum_m")
	count_t(50)=count_t(50)+1
	'response.write Count_rs("sum_m")&"<br>"&sum_money(50)
	case "总双"
	sum_money(51)=sum_money(51)+Count_rs("sum_m")
	count_t(51)=count_t(51)+1
	case "总大"
	sum_money(52)=sum_money(52)+Count_rs("sum_m")
	count_t(52)=count_t(52)+1
	case "总小"
	sum_money(53)=sum_money(53)+Count_rs("sum_m")
	count_t(53)=count_t(53)+1
	end select
	end if
	Count_rs.movenext
	loop
	end if
end if
	Set Rs6=Conn.Execute("Select Top 55 item_value,rate,current_rate,wager_gold,ID,wager_gold from m_rate where item_sort='正码' Order By ID")
  Dim ShowTable
  ShowTable=Rs6.GetRows(55)
   select case cstr(Request("K3"))
  case "0"
  retime=120
  K3=0
  case "1"
  retime=10
  K3=1
  
  case "2"
  retime=20
  K3=2
  
  case "3"
  retime=60
  K3=3
  
  case else
  retime=120
  end select  
  'response.write K3
   for i = 1 to 49
		totalmoney=totalmoney+sum_money(i)
next
 %>
 
<HTML><HEAD><TITLE>main</TITLE>
<META http-equiv="refresh" content="<%=retime%>" content="text/html; charset=gb2312"><LINK 
href="../images/control_main.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2800.1476" name=GENERATOR></HEAD>
<BODY text=#000000 vLink=#0000ff aLink=#0000ff bgColor=#ffffff leftMargin=0 
topMargin=0>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD class=ra_listbet_ctrl_line height=1></TD></TR>
  <TR>
    <TD class=ra_listbet_ctrl_bg>
      <TABLE cellSpacing=0 cellPadding=0 border=0>
        <TBODY>
        <TR>
          <FORM name=myFORM 
          action=sub_just.asp 
          method=get>
          <TD>&nbsp;&nbsp;即时注单: <SELECT class=za_select 
            onchange=self.myFORM.submit() name=K1> 
			<OPTION value=0 <%If K1=0 Then Response.Write (" Selected ")%>>六合彩A</OPTION> 
			<OPTION value=1 <%If K1=1 Then Response.Write (" Selected ")%>>六合彩B</OPTION>
			<OPTION value=2 <%If K1=2 Then Response.Write (" Selected ")%>>六合彩C</OPTION>
			<OPTION value=3 <%If K1=3 Then Response.Write (" Selected ")%>>六合彩D</OPTION></SELECT>
			 <SELECT class=za_select 
            onchange=self.myFORM.submit() name=K2> 
			<OPTION value=0 <%If K2=0 Then Response.Write (" Selected ")%>>成数</OPTION> 
			<OPTION value=1 <%If K2=1 Then Response.Write (" Selected ")%>>全部</OPTION>
			</SELECT> -- 
            更新: <SELECT class=za_select 
            onchange=self.myFORM.submit() name=K3> 
			<OPTION value=0 <%If K3=0 Then Response.Write (" Selected ")%>>不更新</OPTION> 
			<OPTION value=1 <%If K3=1 Then Response.Write (" Selected ")%>>10 sec</OPTION> 
			<OPTION value=2 <%If K3=2 Then Response.Write (" Selected ")%>>20 sec</OPTION>
			<OPTION value=3 <%If K3=3 Then Response.Write (" Selected ")%>>60 sec</OPTION>
			</SELECT> 
            <INPUT type=hidden value=1 name=page> -- 香港时间:<%=formattime(now(),"ymdt")%> -- 
            <A href="index_submain.asp">特别号</A> 
            -- <A 
            href="sub_12.asp">生肖色波一肖</A> 
            -- <A style="BACKGROUND-COLOR: #3399ff" 
            href="sub_just.asp">正码</A> 
            -- <A 
            href="sub_just1-6.asp">正码1-6</A> 
            -- <A 
            href="sub_link.asp">连码</A> 
            -- <A 
            href="sub_gg.asp">正码过关</A>
            -- <A 
            href="sub_bbls.asp">半波六肖</A> 
			-- <A 
            href="sub_ws.asp"   >尾数</A>
			  -- <A 
            href="sub_result4.asp">四肖</A>   -- <A 
            href="sub_result5.asp" >五肖</A>  -- <A 
            href="sub_result.asp">已开奖</A>          </TD>
          </FORM></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD class=ra_listbet_ctrl_line height=1></TD></TR>
  <TR>
    <TD height=4></TD></TR>
 </TBODY></TABLE>
 <%
dim mmm(49),ccc(49),ttt(49),iii(49),totalmoney
for i = 1 to 49
	mmm(i)=sum_money(i)
	ccc(i)=count_t(i)
	ttt(i)=ShowTable(2,(i-1))
	iii(i)=i

next
for k = 1 to 49
	for i = 1 to 48
		if csng(mmm(i)) < csng(mmm(i+1)) then
			tmp=mmm(i+1)
			mmm(i+1)=mmm(i)
			mmm(i)=tmp

			tmp=ttt(i+1)
			ttt(i+1)=ttt(i)
			ttt(i)=tmp

			tmp=ccc(i+1)
			ccc(i+1)=ccc(i)
			ccc(i)=tmp

			tmp=iii(i+1)
			iii(i+1)=iii(i)
			iii(i)=tmp
		end if
	next
next
%>
 <TABLE class=ra_listbet_tab id=glist_table cellSpacing=1 cellPadding=0 width=900 border=0>
   <TBODY>
     <TR bgcolor="#FFFFFF">
       <TD colspan="3" align="center	">正码</TD>
       <TD colspan="4">时间:<%=mid(formatdatetime(Current_KitheTable(2,0),2),6,11)%>&nbsp;&nbsp;<%=hour(Current_KitheTable(2,0))&":"&minute(Current_KitheTable(2,0))%></TD>
       <TD colspan="4">期数:<%=Current_Kithe_Num%></TD>
       <TD colspan="7">投注总额:¥<%=totalmoney%></TD>
     </TR>
     <TR class=ra_listbet_title>
       <TD width=35>号码</TD>
       <TD width=70>注单</TD>
       <TD width=35>号码</TD>
       <TD width=70>注单</TD>
       <TD width=35>号码</TD>
       <TD width=70>注单</TD>
       <TD width=35>号码</TD>
       <TD width=70>注单</TD>
       <TD width=35>号码</TD>
       <TD width=70>注单</TD>
       <TD width=100 colspan="4">最大二十粒</TD>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?