⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s_order_down.asp

📁 1。超强文件读写锁定
💻 ASP
字号:
<!--#include file="manage/mConn.asp"-->
<!--#include file="manage/mConst.asp"-->
<!--#include file="manage/sk2.asp"-->
<%
Function gen_key(digits)
dim char_array(30)
char_array(0) = "0"
char_array(1) = "1"
char_array(2) = "2"
char_array(3) = "3"
char_array(4) = "4"
char_array(5) = "5"
char_array(6) = "6"
char_array(7) = "7"
char_array(8) = "8"
char_array(9) = "9"
char_array(10) = "A"
char_array(11) = "B"
char_array(12) = "C"
char_array(13) = "D"
char_array(14) = "E"
char_array(15) = "F"
randomize
do while len(output) < digits
num = char_array(Int((15 - 0 + 1) * Rnd + 0))
output = output + num
loop
gen_key = output
End Function
'response.write  gen_key(16)
%>
<%
Function gen_key2(digits)
dim char_array(10)
char_array(0) = "0"
char_array(1) = "1"
char_array(2) = "2"
char_array(3) = "3"
char_array(4) = "4"
char_array(5) = "5"
char_array(6) = "6"
char_array(7) = "7"
char_array(8) = "8"
char_array(9) = "9"
randomize
do while len(output) < digits
num = char_array(Int((9 - 0 + 1) * Rnd + 0))
output = output + num
loop
gen_key2 = output
End Function
'response.write  gen_key2(10)
%>

<%
  If Session("SK2User")="" 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 ChkPost 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("rate_id")) Then
    Response.Write ("<script Language=Javascript>alert('Please input username/password and try again!!!');window.open('index.asp','_top');</script>")
    Response.End
  End If
Set Rs6=Conn.Execute("select top 1 tray_time,affice,tray_switch from m_config")
	Dim affice,tray_time,tray_switch
	If Not Rs6.Eof Then
     affice=Rs6("affice")
	 tray_time=Rs6("tray_time")
	 tray_switch=Rs6("tray_switch")
	End If
If tray_switch=0 Then 
response.Redirect "order_error.asp"
end if
 Dim rate_id,gold,order_num2
 order_num2=gen_key(16)
   rate_id=cLng(Request("rate_id"))
   gold=Request.Form("gold")

 Get_Kithe_Para:Get_UserInfo:Get_Rate(rate_id)
if Current_Rate(0,0)="特别号" and Current_Rate(2,0)<>"单"  and Current_Rate(2,0)<>"双"  and Current_Rate(2,0)<>"大"  and Current_Rate(2,0)<>"小"  and Current_Rate(2,0)<>"合单"  and Current_Rate(2,0)<>"合双"  and Current_Rate(2,0)<>"红波"  and Current_Rate(2,0)<>"蓝波"  and Current_Rate(2,0)<>"绿波"  and Current_Rate(2,0)<>"总单"  and Current_Rate(2,0)<>"总双"  and Current_Rate(2,0)<>"总大"  and Current_Rate(2,0)<>"总小" then
				  select case UserInfo(4,0)
				  case "a"
				  rates=Current_Rate(4,0)
				  case "b"
				  rates=Current_Rate(4,0)-0.5
				  case "c"
				  rates=Current_Rate(4,0)-1
				  end select
				else
				  if  Current_Rate(2,0)="单"  or Current_Rate(2,0)="双"  or Current_Rate(2,0)="大"  or Current_Rate(2,0)="小"  or Current_Rate(2,0)="合单"  or Current_Rate(2,0)="合双"  or Current_Rate(2,0)="红波"  or Current_Rate(2,0)="蓝波"  or Current_Rate(2,0)="绿波" or Current_Rate(2,0)="总单"  or Current_Rate(2,0)="总双"  or Current_Rate(2,0)="总大"  or Current_Rate(2,0)="总小" then
				  if  Current_Rate(0,0)<>"正码1-6" and Current_Rate(0,0)<>"正码过关" then
				  select case UserInfo(4,0)
				  case "a"
				  rates=Current_Rate(4,0)
				  case "b"
				  rates=Current_Rate(4,0)-0.01
				  case "c"
				  rates=Current_Rate(4,0)-0.02
				  end select 
				  else
				  rates=Current_Rate(4,0)
				  end if
				  else
				  rates=Current_Rate(4,0)
				  end if 
				  end if
  Dim order_num
select case Current_Rate(0,0)
case "特别号"
	select case Current_Rate(2,0)
	case "单"
	R=1
	case "双"
	R=1
	case "大"
	R=2
	case "小"
	R=2
	case "合单"
	R=3
	case "合双"
	R=3
	case else
	R=0
	end select
case "正码"
	select case Current_Rate(2,0)
	case "总单"
	R=5
	case "总双"
	R=5
	case "总大"
	R=6
	case "总小"
	R=6
	case else
	R=4
	end select
case "正码1-6"
	select case Current_Rate(2,0)
	case "单"
	R=15
	case "双"
	R=15
	case "大"
	R=17
	case "小"
	R=17
	case "红波"
	R=16
	case "蓝波"
	R=16
	case "绿波"
	R=16
	end select
case "色波"
R=13
case "十二生肖"
R=14
case "一肖"
R=18
end select

	'Set Rs6=Conn.Execute("Select Top 1 order_num From m_chilp Order By ID Desc")
    'If Not Rs6.Eof Then
    '  order_num=cLng(Rs6("order_num"))+cint(INT(88+1)*RND)
	'Else
    '  order_num=373829381
	'End If
	order_num=gen_key2(10)
	Set Rs6=Conn.Execute("Select Top 1 Current_Credits,P_AgentID,self_cuts,super_cuts From m_agent Where Login_Name='"&UserInfo(3,0)&"' Order By ID Desc")
   If Rs6.Eof Then
     Set Rs6=Nothing
	 'Response.redirect "user_left.asp"
	 Response.End
	 end if
	 Agent_info= Rs6.GetRows(1)
	 SQL6="Select "
	select case UserInfo(4,0)
	  case "a"
	    SQL6=SQL6&"  items,Rake_A,odd_numbers,odd_stock"
	  case "b"
        SQL6=SQL6&" items,Rake_B,odd_numbers,odd_stock"
	  case "c"
	    SQL6=SQL6&" items,Rake_C,odd_numbers,odd_stock"
	case else
	SQL6=SQL6&" items,Rake_A,odd_numbers,odd_stock"
    end select
	  SQL6=SQL6&" from m_quota where accounts='"&UserInfo(3,0)&"'"
      SQL6=SQL6&" order by id"
'response.Write SQL6
	Set Rs6=Conn.Execute(SQL6)
	If Rs6.Eof Then
      Set Rs6=Nothing
	  
	End If
	 UserQuota_Agent=Rs6.GetRows(-1)
if Agent_info(1,0)=0 then
	 
	 dai_ds=0
	 zong_ds=UserQuota_Agent(1,R)
else
'response.Write Agent_info(1,0)
	Set Rs5=Conn.Execute("Select Top 1 Current_Credits,P_AgentID,self_cuts,super_cuts,Login_Name From m_agent Where ID='"&Agent_info(1,0)&"'")
   If Rs5.Eof Then
     Set Rs5=Nothing
	 'Response.redirect "user_left.asp"
	 Response.End
	 end if
	  SQL6="Select "
	select case UserInfo(4,0)
	  case "a"
	    SQL6=SQL6&" items,Rake_A,odd_numbers,odd_stock"
	  case "b"
        SQL6=SQL6&" items,Rake_B,odd_numbers,odd_stock"
	  case "c"
	    SQL6=SQL6&" items,Rake_C,odd_numbers,odd_stock"
	case else
	SQL6=SQL6&" items,Rake_A,odd_numbers,odd_stock"
    end select

	  SQL6=SQL6&" from m_quota where accounts='"&Rs5("Login_Name")&"'"
      SQL6=SQL6&" order by id"
'response.Write SQL6
	Set Rs6=Conn.Execute(SQL6)
	If Rs6.Eof Then
      Set Rs6=Nothing
	End If
	 UserQuota_AgentB=Rs6.GetRows(-1)
	 dai_ds=UserQuota_Agent(1,R)
	 zong_ds=UserQuota_AgentB(1,R)
 end if	 
    Set Rs6=Conn.Execute("insert into m_chilp (order_num,kithe,chilp_time,rake,sort,chilp_types,chilp_value,rate,sum_m,Result,order_num2,Memed,Member,dai_ds,zong_ds,dai_zc,zong_zc,guan_zc,Agent_first,Agent_second) values ("&order_num&","&Current_Kithe_Num&",getdate(),"&UserQuota(1,R)&",'"&Current_Rate(0,0)&"','"&Current_Rate(1,0)&"','"&Current_Rate(2,0)&"',"&rates&","&gold&",0,'"&order_num2&"','"&UserInfo(4,0)&"','"&session("SK2User")&"','"&dai_ds&"','"&zong_ds&"','"&UserInfo(7,0)&"','"&UserInfo(8,0)&"','"&UserInfo(9,0)&"','"&UserInfo(10,0)&"','"&UserInfo(11,0)&"')")
	Set Rs6=Conn.Execute("update m_member set current_credit=current_credit-"&gold&" where Login_Name='"&Session("SK2User")&"'")
	Set Rs6=Conn.Execute("update m_rate set wager_gold=wager_gold+"&gold&" where ID='"&rate_id&"'")
	Dim Sub_Num
    'Set Rs6=Nothing
   'Response.Redirect  "userleft.asp"
  'response.Write "insert into m_chilp (order_num,kithe,chilp_time,rake,sort,chilp_types,chilp_value,rate,sum_m,Result,order_num2,Memed,Member,dai_ds,zong_ds,dai_zc,zong_zc,guan_zc,Agent_first,Agent_second) values ("&order_num&","&Current_Kithe_Num&",getdate(),"&UserQuota(1,R)&",'"&Current_Rate(0,0)&"','"&Current_Rate(1,0)&"','"&Current_Rate(2,0)&"',"&rates&","&gold&",0,'"&order_num2&"','"&UserInfo(4,0)&"','"&session("SK2User")&"','"&dai_ds&"','"&zong_ds&"','"&UserInfo(7,0)&"','"&UserInfo(8,0)&"','"&UserInfo(9,0)&"','"&UserInfo(10,0)&"','"&UserInfo(11,0)&"')"
%>
<!--#include file="autodrop.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT language=javascript>
window.setTimeout("self.location='userleft.asp'", 18000);
</SCRIPT>
<SCRIPT language=JAVASCRIPT>
if(self == top){location = '/';} 
</SCRIPT>
<script language=javascript>
function new_win(html_name,winname,w,h){
  if(winname=='') winname='WINDOWS';
  if(w=='') w=640;
  if(h=='') h=480;
  //undefined
  winformat="toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+w+",height="+h;
  winid = window.open(html_name,winname,winformat)
}
</script>
<LINK href="style/css-g.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2800.1476" name=GENERATOR>
<style type="text/css">
<!--
.style1 {
	color: #FF0000;
	font-weight: bold;
}
.style2 {color: #0000FF}
-->
</style>
</HEAD>
<BODY oncontextmenu=window.event.returnValue=false text=#000000 bgColor=#e5eaee 
leftMargin=0 topMargin=0>
<TABLE height=235 cellSpacing=0 cellPadding=0 width=230 border=0>
  <TBODY>
  <TR>
    <TD background=images/qq2.gif height=30>&nbsp;</TD></TR>
  <TR>
    <TD vAlign=top height=76>
      <TABLE height="100%" cellSpacing=0 cellPadding=0 width=227 border=0>
        <TBODY>
        <TR>
          <TD width=16 background=images/qq1.gif rowSpan=2>&nbsp;</TD>
          <TD width=215 height=26>
            <TABLE height=25 cellSpacing=0 cellPadding=0 width=200 
            background=images/pp.gif border=0>
              <TBODY>
              <TR>
                <TD align=middle><div align="center"><FONT color=#ffffff>六合彩注单</FONT></div></TD>
              </TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD height=123>
            <TABLE class=table_02 height=135 cellSpacing=6 cellPadding=0 
            width="95%" align=left border=0>
              <TBODY>
              <TR>
                <TD vAlign=center width="11%" height=25><IMG height=30 
                  src="images/ico.gif" width=30></TD>
                <TD class=title_01 vAlign=center width="89%" height=20>帐户名称: 
                  <%=Session("SK2User")%></TD></TR>
              <TR>
                <TD vAlign=center><IMG height=30 src="images/ico.gif" 
                  width=30></TD>
                <TD class=title_01 vAlign=center>信用额度: <%=UserInfo(5,0)%></TD></TR>
				<TR align=left bgColor=#E5EAEE>
                <TD colSpan=2 align=middle><div align="left">下注完成&nbsp;&nbsp;单号&nbsp;--&nbsp;<%=order_num%></div></TD>
				</TR>
              <TR align=left>
              <TR align=left bgColor=#cccccc>
                <TD align=middle colSpan=2><div align="center"><FONT color=#cc0000><%=Current_Rate(1,0)%>&nbsp;<%=Current_Rate(2,0)%></FONT>@<span class="style1">&nbsp;<%=rates%></span></div></TD>
              </TR>
			  <TR align=left bgColor=#E5EAEE>
                <TD colSpan=2 align=middle><div align="left">下注金额:&nbsp;<%=gold%></div></TD>
				</TR>
				<TR align=left bgColor=#E5EAEE>
				<TD colSpan=2 align=middle><div align="left">可赢金额:&nbsp;<span class="style2"><%=gold*(Current_Rate(4,0)-1)%></span></div></TD>
				</TR>
				<TR align=left bgColor=#E5EAEE>
				<TD colSpan=2 align=middle><div align="left"><%=order_num2%></div></TD>
				</TR>
              <TR align=left>
                <TD align=middle colSpan=2>			
				  </TD></TR>
              <TR align=left>
                <TD class=td_fail colSpan=2><FONT color=#ff0000>
				<div align="center">
				  <INPUT class=sumbit_cen onclick="self.location='userleft.asp'" type=button value=离开 name=btnCancel>
&nbsp;&nbsp;
<INPUT class=sumbit_cen onclick="javascript:window.print();" type=button value=列印 name=btnSubmit>
</div>
                </FONT></TD>
              </TR></TBODY>
            </TABLE></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD vAlign=top align=middle background=images/iny.gif>&nbsp;</TD></TR>
  <TR>
    <TD vAlign=top height=10><IMG height=10 src="images/inz.gif" 
      width=230></TD></TR></TBODY></TABLE>
</BODY></HTML>

⌨️ 快捷键说明

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