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

📄 system_user2.asp

📁 1。超强文件读写锁定
💻 ASP
字号:
<!--#include file="mConn.asp"-->
<!--#include file="mConst.asp"-->
<!--#include file="sk2.asp"-->
<%
  If Session("SK2Admin")="" 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 request("AgentName")="" Then
  Response.Write ("<script language=javascript>alert('非法参数!');history.go(-1)</script>")
  Response.End
End If
  Get_Kithe_Para
  Show_Kithe
'Set Rs6=Conn.Execute("Select Agent_first  from m_chilp where Agent_first is not null group by Agent_first")
	'If Not Rs6.Eof Then
    ' Agent_info=Rs6.GetRows(-1)
	 'Kithe_Sum=Ubound(Kithe_Table,2)
	'End If%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>reports_all</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="../images/control_main.css" type=text/css rel=stylesheet>
<SCRIPT>
function showREC(showid) {
	window.open("show_winloss_rec.asp?aid="+showid , "show_WR","top="+event.clientX/2+",left="+event.clientY/2+",width=320,height=400");
}
</SCRIPT>

<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 height=25>
          <FORM name=acc 
          action=index_submain.asp
method=get>
          <TD width="400">&nbsp;&nbsp;&nbsp;&nbsp; <a href=index_system.asp><b>开封盘</b></a>
              &nbsp;&nbsp;<a href=system_affice.asp><b>公告</b></a>
			  &nbsp;&nbsp;<a href=system_autodrop.asp><b>自动降水</b></a>
			  &nbsp;&nbsp;<a href=system_remem.asp><b>会员信用额还原</b></a>
			  &nbsp;&nbsp;<a href=system_clear.asp ><b>清除数据</b></a>
			  &nbsp;∵&nbsp;<a href=system_user.asp style="BACKGROUND-COLOR: #3399ff"><b></b></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>
<TABLE cellSpacing=0 cellPadding=0 width=800 border=0>
  <TBODY>
  <TR>
    <TD colSpan=2 height=4></TD></TR>
  <TR>
    <TD class=m_tline width=750>&nbsp;&nbsp;总代理:<%=request("AgentName")%> -- <A 
      href="javascript:history.go(-1);">回上一页</A> </TD>
    <TD width=30></TD></TR>
  <TR>
    <TD colSpan=2 height=4></TD></TR></TBODY></TABLE>
<%Agent_second=request("AgentName")
SQL6="select Agent_first,dai_zc=isnull(SUM(dai_zc) / COUNT(*),0),zong_zc=isnull(SUM(zong_zc) / COUNT(*),0) from m_chilp where Kithe='"&Current_Kithe_num&"' and Agent_second='"&Agent_second&"' group by Agent_first "

'response.Write SQL6
Set Rs6=Conn.Execute(SQL6)
	If Not Rs6.Eof  Then
     ShowAgent=Rs6.GetRows(-1)
	 %>
<TABLE width=800 
border=0 align="center" cellPadding=0 cellSpacing=1 bgColor=#000000 class=m_tab>
  <TBODY>
  </TR>
  <TR class=m_title_reall>
    <TD width=183>代理商</TD>
    <TD width=147>笔数</TD>
    <TD width=219>下注金额</TD>
    <TD width=246>期数</TD>
  </TR>
	<%sum_money=0
	mem_result=0
	dai_result=0
	zong_result=0
	for I=0 to ubound(ShowAgent,2)%>
	<%if trim(ShowAgent(0,I))="0" then
	else
	SQL6="SELECT sum_m = isnull(SUM(sum_m), 0), mem_result = isnull(SUM(mem_result), 0),mem_ds = isnull(SUM(mem_ds), 0), ag_ds = isnull(SUM(ag_ds), 0),zong_ds = isnull(SUM(zong_ds), 0), re = COUNT(*) FROM (SELECT sum_m, mem_ds = CASE WHEN banlance = 0 THEN 0 ELSE sum_m * rake / 100 END,mem_result = CASE WHEN banlance = 0 THEN 0 ELSE CASE WHEN result = 0 THEN - sum_m WHEN result > 0 THEN (CASE WHEN sort = '连码' THEN sum_m / count_l* rate * result - sum_m ELSE sum_m * (rate - 1) END) END END, ag_ds = CASE WHEN banlance = 0 THEN 0 ELSE sum_m * dai_ds / 100 END, zong_ds = CASE WHEN banlance = 0 THEN 0 ELSE sum_m * zong_ds / 100 END FROM m_chilp WHERE kithe='"&current_Kithe_num&"'  AND Agent_first = '"&ShowAgent(0,I)&"'"
	SQL6=SQL6&" ) i "
	'response.write SQL6
	Set Rs6=Conn.Execute(SQL6)
	If Not Rs6.Eof  Then
     Showzong=Rs6.GetRows(1)
	end if%>
  <TR class=m_rig>
    <TD align=middle><%=ShowAgent(0,I)%></TD>
    <TD><%=Showzong(5,0)%></TD>
    <TD><a  href="system_user3.asp?AgentName=<%=trim(ShowAgent(0,I))%>&wtype=<%=request("wtype")%>&amp;pay_type=<%=request("pay_type")%>&amp;bet_type=<%=request("bet_type")%>&amp;DATE_START=<%=request("DATE_START")%>&amp;DATE_END=<%=request("DATE_END")%>"><%=replace(formatnumber(Showzong(0,0),2,-1),",","")%></A></TD>
    <TD>第<%=current_Kithe_num%>期</TD>
</TR>
	<%count_sum=count_sum+Showzong(5,0)
	sum_money=sum_money+Showzong(0,0)
	mem_ds=mem_ds+Showzong(2,0)
	mem_result=mem_result+Showzong(1,0)+Showzong(2,0)
	dai_result=dai_result+Showzong(1,0)+Showzong(3,0)
	zong_result=zong_result+(Showzong(1,0)+Showzong(4,0))
	zong=zong+Showzong(1,0)
	zong_ds=zong_ds+Showzong(4,0)
	end if
	next%>
  <TR class=m_rig_to>
    <TD>小计</TD>
    <TD><%=count_sum%></TD>
    <TD><%=replace(formatnumber(sum_money,2,-1),",","")%></TD>
    <TD>&nbsp;</TD>
</TR></TBODY></TABLE>
<BR><!-----------------↓ 加总资料区段 ↓------------------------->
<%else%>
  <TABLE width="100%" border=0 align="center" cellPadding=0 cellSpacing=1>
  <TBODY>
  <TR>
    <TD align=middle bgColor=#cc0000 height=30>
      <MARQUEE behavior=alternate width=200 align="middle"><FONT 
      color=#ffffff>查无任何资料</FONT></MARQUEE></TD>
  <TR>
<TD align=middle bgColor=#cccccc height=20><A 
      href="javascript:history.go(-1);">离开</A></TD></TR></TBODY></TABLE>
    <%end if%>
<!-----------------↑ 加总资料区段 ↑-------------------------><!-----------------↑ 信用额度资料区段 ↑------------------------->
</BODY></HTML>

⌨️ 快捷键说明

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