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

📄 hymanok.asp

📁 mlm双轨制直销系统V8.0免费版 可用于: 1、直拨、回拨电话卡公司。 2、保健品、药品公司。 3、在线销售商品等等。 4、其他类型用到双轨制模式的线上开盘公司。
💻 ASP
字号:
<!-- #include file="include/adovbs.inc" -->
<!-- #include file="include/dataconn.asp" -->
<!-- #include file="include/checksession.asp" -->
<!-- #include file="common.asp" -->
<%
Response.Buffer =false
Response.Expires=-1


'GetRightDanCount(HyRs("HyNumber"))
	

content=rtrim(ltrim(Request("findcontent")))'查找的关键字

'response.Write content
set HyRs=server.CreateObject("adodb.recordset")

if len(content)=0 then '判断属于查找还是列出所有信息
	sql = "select Hy.HyLocation,Hy.HyName,Hy.HyCardNo,Hy.HyOpenBankNo,Hy.HyParentNumber,Hy.HyTjNumber,HyClub.HyBuyCount,Hy.ID,HyClub.HyNumber,HyClub.AddTime,HyClub.ApprovedTime from hy left join hyClub on hy.ID=HyClub.HyID where Hy.IsApproved=1"
else
	sql ="select Hy.HyLocation,Hy.HyName,Hy.HyCardNo,Hy.HyOpenBankNo,Hy.HyParentNumber,Hy.HyTjNumber,HyClub.HyBuyCount,Hy.ID,HyClub.HyNumber,HyClub.HyNumber,HyClub.AddTime,HyClub.ApprovedTime from hy left join hyClub on hy.ID=HyClub.HyID where "
	sql = sql & "( Hy.HyName like '%" & content & "%'"
	sql = sql & " or HyClub.HyNumber like  '%" & content & "%'"
	sql = sql & ") and Hy.IsApproved=1"
end if
'
'Response.Write sql
'Response.End 
	HyRs.Open sql,conn
	j=HyRs.RecordCount 
%>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<link rel="stylesheet" href="include/e1.css" type="text/css">
</head>
<script>
	function openwin(page,size)
	{
		window.open(page,"newuser","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+ size);
	}
	function openwin1(page,size)
	{
		window.open(page,"newuser","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height=350,width="+ size);
	}
	function makesure()
	{
		return(confirm("此操作十分危险,请你考虑清楚,务必慎重!\n此操作将永久删除此已确认的会员,请确认此会员是否有下线,否则不能删除\n你确定要删除此会员吗?"))
	}
	
	function makesure1()
	{
		return(confirm("点击此操作代表你已经给此客户发放了奖金,你确定要发放奖金吗?"))
	}
</script>
<body leftmargin="10" topmargin="10" marginwidth="0" marginheight="0">

<form method="post" action="HymanOk.asp" id="form1" name="form1">
  <table width="100%" border="0" height="21" cellpadding="0" cellspacing="0">
    <tr> 
      <td width="80%"> <div align="center"> 查找:
          <input id="findcontent" name="findcontent" value="输入需要查找的关键字" size="20" onFocus="this.value=''">
          <input type="image" value="submit" src="Image/027.gif" id="image1" name="image1">
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;共计:&nbsp;<font color=red>
          <% =j%>
          </font>&nbsp;人 </div></td>
      <td width="20%"><a href="ExportExcel.asp"><img src="Image/l1.gif" width="13" height="11" border="0">导出到Excel</a></td>
    </tr>
  </table>
  </form>
<%
    if j>0 then
    dim i 
    i=1
    const pagesize=15
           
    HyRs.PageSize = pagesize
    total=HyRs.PageCount 
	pageno=Request("pageno")
	if pageno="" then pageno=1
    if not isnumeric(pageno) and pageno<>"" then
	 %>
<script>alert("请输入正确的页码");
		window.history.back();</script>
<%Response.End
	End if
	if (pageno-1)*pagesize>=j then
        if (j mod pagesize)=0 then
            pageno= j \ pagesize
        else
            pageno= j \ pagesize + 1
       end if
    end if		
	if pageno<1 then 
	 %>
<script>alert("页码数不能小于1");
		window.history.back();</script>
<%Response.End
	End if	
	if (pageno>65535) then
	%>
<script>alert("页码数不能大于总数!");
		window.history.back();</script>
<%Response.End 
	end if
	
	
	if (clng(pageno)>clng(total)) then %>
<script>alert("页码数不能大于总数!");
		window.history.back();</script>
<%	
   Response.End 
	end if
    pageno=cint(pageno)	
%>

  


<table border="1" cellpadding="0" cellspacing="0" width="98%" bordercolordark="#e0f4ff" bordercolorlight="#162d6b">
  <tr class="td3"> 
    <td width="6%"> <div align="center"><font color="#FFFFFF">序号</font></div></td>
    <td width="10%"> <div align="center"><font color="#FFFFFF">姓名</font></div></td>
    <td width="8%"> <div align="center"><font color="#FFFFFF">登录帐号</font></div></td>
		<% if GetDisplay("HyBuyCount")=true then%>		
    <td width="5%"> <div align="center"><font color="#FFFFFF">
        单数       </font></div></td>		<%end if%>
    <td width="8%"> <div align="center"><font color="#FFFFFF">
        <% =GetDisplayName("HyCardNo")%>
        </font></div></td>		
    <td width="12%"> <div align="center"><font color="#FFFFFF">
        <% =GetDisplayName("HyOpenBankNo")%>
        </font></div></td>
    <td width="12%"> <div align="center"><font color="#FFFFFF">
        <% =GetDisplayName("HyTjNumber")%>
        </font></div></td>   
    <td width="8%"> <div align="center"><font color="#FFFFFF">
        <% =GetDisplayName("HyLocation")%>
        </font></div></td>
    <td width="8%"> <div align="center"><font color="#FFFFFF">注册时间</font></div></td>
    <!--<td width="8%"> <div align="center"><font color="#FFFFFF">审核时间</font></div></td>	-->
    <td width="8%"> <div align="center"><font color="#FFFFFF">修改资料</font></div></td>
    <td width="8%"> <div align="center"><font color="#FFFFFF">删除</font></div></td>
    <!--<td width="6%"> <div align="center"><font color="#FFFFFF">删除</font></div></td>-->
  </tr>
  <%
    HyRs.absolutepage=pageno     
    dim x
    x=2
    while (not HyRs.eof) and (i<=pagesize) 
      if x mod 2 then
 %>
  <tr class="td1"> 
    <%
 else
 %>
  <tr height="25"> 
    <%
 end if
 %>
    <td> <div align="center"> 
        <% =i%>
      </div></td>
    <td><div align="center"><a href="javascript:openwin('hyview.asp?id=<% =HyRs("id")%>',800)"> 
        <%=HyRs("HyName")%></a>&nbsp; <a href="javascript:openwin('xp_showall.asp?Level=1&HyNumber=<% =HyRs("HyNumber")%>',800)"> 
        <img src="Image/3man.gif" alt="系谱图" width="15" height="16" border="0"></a> 
      </div></td>
    <td><div align="center"><%=HyRs("HyNumber")%>&nbsp;</div></td>
		<% if GetDisplay("HyBuyCount")=true then%>
    <td><div align="center"><%=HyRs("HyBuyCount")%>&nbsp;</div></td>				
		<%end if%>
			
    <td><div align="center"><%=HyRs("HyCardNo")%>&nbsp;</div></td>
    <td><div align="center"> 
        <% =HyRs("HyOpenBankNo")%>
        &nbsp;</div></td>
    <td><div align="center"> 
        <% =HyRs("HyTjNumber")%>
        &nbsp;</div></td>  
    <td><div align="center"> 
        <% =HyRs("HyLocation")%>
        &nbsp;</div></td>
    <td> <div align="center"> 
        <% =HyRs("addTime")%>
      </div></td>
<!--    <td> <div align="center"> 
        <% =HyRs("ApprovedTime")%>
        &nbsp;</div></td>-->
    <td><div align="center"><a href="HyOkEdit.asp?id=<% =HyRs("id")%>&amp;pageno=<% =pageno%>&amp;findcontent=<%=content%>&amp;Approved=1"><img src="Image/b1.gif" width="20" height="20" border="0"></a></div></td>
    <td> <div align="center"> 
        <%if trim(HyRs("HyNumber"))="N001" then%>
        不能删 
        <%else%>
        <a href="HyOKdel.asp?id=<% =HyRs("id")%>&amp;pageno=<% =pageno%>&amp;findcontent=<%=content%>" onclick="return makesure();">删除</a> 
        <%end if%>
      </div></td>
    <%
	HyRs.movenext
	i=i+1
	x=x+1
	wend %>
  </tr>
  <%
  else
	Response.Write "还没有确认的会员!<a href='javascript:history.back()'>返回</a>"
 end if%>
</table>
<p></p>
<%if j>0 then%>
<table align="center">
  <tr> 
    <form name="thisform1" method="Post" action="Hymanok.asp?findcontent=<%=content%>">
      <td>到第 
        <input type="text" name="pageno" value="<% =pageno%>" size="3">
        页<a onclick="javascript:thisform1.submit();">GO</a> </font></td>
    </form>
    <td>第 
      <% =pageno %>页
      /共 
      <% =total%>
      页</font></td>
    <% if pageno<=1 then %>
    <td><font color="#cccccc">首页</font></td>
    <td><font color="#cccccc">上一页</font></td>
    <% else %>
    <td><a href="HymanOk.asp?pageno=1&amp;findcontent=<%=content%>"><font face="Webdings" color="#FFFFFF">9</font>首页</font></a></td>
    <td><a href="HymanOk.asp?pageno=<%=pageno-1%>&amp;findcontent=<%=content%>">上一页</font></a></td>
    <%end if%>
    <% if pageno>=total then %>
    <td><font color="#cccccc">下一页</font></td>
    <td><font color="#cccccc">尾页</font></td>
    <%else%>
    <td><a href="HymanOk.asp?pageno=<%=pageno+1%>&amp;findcontent=<%=content%>">下一页</font></a></td>
    <td><a href="HymanOk.asp?pageno=<%=total%>&amp;findcontent=<%=content%>">尾页</font></a></td>
    <% end if%>
    
  </tr>
</table>
<%end if%>
</body>
</html>

⌨️ 快捷键说明

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