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

📄 memeber.asp

📁 购物系统时尚版.强大的后台文章编辑器的功能
💻 ASP
字号:
<!--#include file="chk.asp"-->
<!--#include file="db_conn.asp"-->
<!--#include file="../my_lib/pages.asp"-->
<html>
<head>
<title>会员列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" rel=stylesheet type=text/css>
<script language="javascript">
    function confirmdel(cartbh,page){
       if (confirm("此操作将删除用户的资料及所有订单,是否继续?")) 
       window.location.href="del_memeber.asp?id="+cartbh+"&page="+page
     }  
</script>
</head>
<body>
<!--#include file="TopManu.asp"-->
<br>
<div align="center">
<table border="0" width="100%" id="table1" cellspacing="0" style="border-collapse: collapse" cellpadding="0">
	<tr>
		<td background="image/admintoptdbg.gif">
		<p align="left">
		<img border="0" src="image/title_arrow.bmp" width="17" height="27" align="absmiddle"><font color="#808080"><b>会员管理</b></font></td>
	</tr>
</table>
<table width="100%" border="0" cellpadding="0" style="border-collapse: collapse">
  <tr> 
    <td> 
      <table width="100%" cellpadding="4" style="border: 1px solid #CCCCCC; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; border-collapse:collapse">
        <tr align="center" valign="middle"> 
          <td bgcolor="#EFEFEF" height="14" width="4%"><font color="#808080"><b>ID</b></font></td>
          <td bgcolor="#EFEFEF" height="14" width="14%"><font color="#808080">
			<b>会员账号</b></font></td>
          <td bgcolor="#EFEFEF" height="14" width="24%"><font color="#808080">
			<b>真实姓名</b></font></td>
          <td bgcolor="#EFEFEF" height="14" width="9%"><font color="#808080"><b>购物总金额</b></font></td>
          <td bgcolor="#EFEFEF" height="14" width="13%"><font color="#808080">
			<b>附加费用总计</b></font></td>
          <td bgcolor="#EFEFEF" height="14" width="9%"><font color="#808080"><b>金额合计</b></font></td>
          <td bgcolor="#EFEFEF" height="14" width="14%"><font color="#808080">
			<b>注册时间</b></font></td>
          <td bgcolor="#EFEFEF" height="14" width="7%"><font color="#808080"><b>删除</b></font></td>
        </tr>
              <%
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select * from user_info_list order by dat_regtime DESC"
rs.open sql,conn,1,1
if (rs.eof and rs.bof) then
	response.write "<tr>"
    response.write "<td width=500 colspan=4><font color=#FF0000>没有相应的数据</font></td>"
    response.write "</tr>"
    else
    rs.PageSize =20 '每页记录条数
			iCount=rs.RecordCount '记录总数
			iPageSize=rs.PageSize
    		maxpage=rs.PageCount 
    		page=request("page")
    
    if Not IsNumeric(page) or page="" then
        page=1
    else
        page=cint(page)
    end if
    
    if page<1 then
        page=1
    elseif  page>maxpage then
        page=maxpage
    end if
    
    rs.AbsolutePage=Page

	if page=maxpage then
		x=iCount-(maxpage-1)*iPageSize
	else
		x=iPageSize
	end if

end if
						  ii=1
						  while not rs.eof and ii<=rs.pagesize
						  set id=rs("id")
						  set txt_login_name=rs("txt_login_name")
						  set txt_realname=rs("txt_realname")
						  set dat_regtime=rs("dat_regtime")
					sql1="select userid from buyer where userid='"&txt_login_name&"'"
					set rs1=conn.execute (sql1)
					if rs1.eof then
					num=0
					fy=0
					zhq=0
					else
					ssql="select sum(product_price) as num,sum(yqj_cost) as fy,sum(yqj_money) as zhq from buyer where userid='"&txt_login_name&"'"
					set rss=conn.execute (ssql)
					num=rss("num")
					fy=rss("fy")
					zhq=rss("zhq")
					rss.close
					set rss=nothing
					rs1.close
					set rs1=nothing
					end if
%>        <tr align="center" valign="middle"> 
          <td bgcolor="#FFFFFF" height="20" width="4%"><%=(page-1)*19+ii%></td>
          <td bgcolor="#FFFFFF" height="20" width="14%"><%response.write "<a href='memeber_info.asp?id="&id&"'  >"&txt_login_name&"</a>"%></td>
          <td bgcolor="#FFFFFF" height="20" width="24%"><%=txt_realname%></td>
          <td bgcolor="#FFFFFF" height="20" width="9%">
			<p align="left">¥<%=num%>元</td>
          <td bgcolor="#FFFFFF" height="20" width="13%">
			<p align="left">¥<%=fy%>元</td>
          <td bgcolor="#FFFFFF" height="20" width="9%">
			<p align="left"><font color="#FF0000">¥<%=zhq%>元</font></td>
          <td bgcolor="#FFFFFF" height="20" width="14%"><%=dat_regtime%></td>
          <td bgcolor="#FFFFFF" height="20" width="7%"><a href='javascript:confirmdel(<%=id%>,<%=page%>)'>删除</a></td>
        </tr>
        <%
rs.movenext
ii=ii+1
wend
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
        <tr align="center" valign="middle"> 
          <td colspan="8" height="20" bgcolor="#EFEFEF"><%call PageControl(iCount,maxpage,page,"border=0 align=left","<p align=center>")%></td>
        </tr>
      </table> 
      <div align="center"> </div></td>
  </tr>
</table>
</div>
<div align="center">
<table border="0" width="760" id="table3" cellspacing="0" cellpadding="4">
	<tr>
		<td align=right><input TYPE="button" VALUE="打印本页" onclick="javascript:window.print();"> <input TYPE="button" VALUE="刷新本页" ONCLICK="location.reload()"> </td>
	</tr>
</table>
</div>
</body>
</html>

⌨️ 快捷键说明

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