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

📄 user_list.asp

📁 本系统为ASP版 1
💻 ASP
字号:
<%Admin="UserSee"%>
<!--#include file="check.asp"-->
<!--#include file="mdb_path_user.asp"-->
<html>
<head>
<title>管理中心 - 下载系统(HTML版)</title>
<style>
td{font-size:9pt;line-height:120%} 
body{font-size:9pt;line-height:120%} 
a:link       { color: #666666; text-decoration: none }
a:visited    { color: #666666; text-decoration: none }
a:active     { color: #666666; text-decoration: none }
a:hover      { color: #000000; text-decoration: underline}
a.JyDownSort:link    { color: #FFFFFF; text-decoration: none }
a.JyDownSort:visited { color: #FFFFFF; text-decoration: none }
a.JyDownSort:hover   { color: #DFDFDF; text-decoration: underline}
</style>
</head>
<script language="javascript">
function JyDown() {
	for (var i=0;i<document.JyDownH.JyDownID.length;i++) {
		var e=document.JyDownH.JyDownID[i];
		e.checked=!e.checked;
	}
}
</script>
<body topmargin="1">
<table border="0" cellspacing="1" width="100%" bgcolor="#e6e6e6">
  <tr>
    <td width="100%" bgcolor="#bbaadd" height="26"><font color="#FFFFFF"><b>&nbsp;会员管理-&gt; <% 
    if request("dj")="0" then response.write "普通会员"
    if request("dj")="1" then response.write "高级会员"
    if request("dj")="2" then response.write "管 理 员"
    if request("k")<>"" then response.write "所有用户-> 搜索结果("&request("k")&")"
    if request("dj")<>"0" and request("dj")<>"1" and request("dj")<>"2" and request("k")="" then response.write "所有用户"%></b></font>&nbsp; <font color="#FFFFFF">  
    ①:普通会员 ②:高级会员 ③:管理员</font></td> 
  </tr>
  <tr>
    <td width="100%" bgcolor="#F4F4F4" height="20">
<%
 if not isempty(request("page")) then        
      currentPage=cint(request("page"))        
   else        
      currentPage=1        
   end if
   MaxPerPage=20 '###每页显示条数
set rs=server.CreateObject("ADODB.RecordSet")
if request("k")<>"" then
kkk=" and user like '%"&request("k")&"%'"
end if
if request("dj")<>"" then
sql="select * from userinfo where dj="&request("dj")&" and dj<>3"&kkk&" order by id desc"
else
sql="select * from userinfo where dj<>3"&kkk&" order by id desc"
end if
rs.open sql,conn,1,1
  if rs.eof and rs.bof then
     response.write "<p align='center'>还没找到任何用户</p>"
  else
   totalPut=rs.recordcount
   rs.move  (currentPage-1)*MaxPerPage
   rs.pagesize=MaxPerPage '得到每页数
   mpage=rs.pagecount     '得到总页数 
%>
    <table border="0" cellspacing="1" width="100%">
    <form action="user_save.asp?dj=<%=request("dj")%>&page=<%=currentPage%>&k=<%=request("k")%>" method=post name="JyDownH">
      <tr>
        <td width="100%" colspan="11" bgcolor="#FFFFFF" height="24"><%call page()%></td>
      </tr>
      <tr align="center">
        <td width="2%" bgcolor="#BBAADD" height="22"><font color="#FFFFFF">ID</font></td>
        <td width="2%" bgcolor="#BBAADD"><a href="javascript:JyDown()"><font color="#FFFFFF">选</font></a></td>
        <td width="12%" bgcolor="#BBAADD"><font color="#FFFFFF">用户名</font></td>
        <td width="17%" bgcolor="#BBAADD"><font color="#FFFFFF">邮箱</font></td>
        <td width="10%" bgcolor="#BBAADD"><font color="#FFFFFF">姓名</font></td>
        <td width="4%" bgcolor="#BBAADD"><font color="#FFFFFF">姓别</font></td>
        <td width="16%" bgcolor="#BBAADD"><font color="#FFFFFF">身份证</font></td>
        <td width="12%" bgcolor="#BBAADD"><font color="#FFFFFF">电话</font></td>
        <td width="15%" bgcolor="#BBAADD"><font color="#FFFFFF">注册时间</font></td>
        <td width="4%" bgcolor="#BBAADD"><font color="#FFFFFF">付费</font></td>
        <td width="6%" bgcolor="#BBAADD"><font color="#FFFFFF">状态</font></td>
      </tr>
<%
i=0
do while not rs.EOF%>
      <tr align="center" bgcolor="#FFFFFF">
        <td><a href=user.asp?user=<%=rs("user")%>><%=rs("id")%></a></td>
        <td><input type="checkbox" name="JyDownID" value="<%=rs("id")%>"></td>
        <td><a href="user_edit.asp?id=<%=rs("id")%>"><b><%=rs("user")%></b></td>
        <td><a href="mailto:<%=rs("email")%>"><%=rs("email")%></a></td>
        <td><%=rs("face")%></td>      <td><%=rs("sex")%></td> <td><%=rs("softurl")%></td>
        <td><%=rs("homepage")%></td>
        <td><%=rs("regdate")%></td>
        <td><%
        if rs("v_pstatus")=0 then response.write "<font color=""#808080"">×</font>"
        if rs("v_pstatus")=20 then response.write "<font color=""#FF0000"">√</font>"
        %></td>
        <td><%if rs("lock")=1 then%><font color=#FF0000>锁定</font><%else%>正常<%end if%></td>
      </tr>
<%i=i+1  
if i>=MaxPerPage then exit do
rs.movenext
loop %>
   <tr><td width="98%" colspan="11" bgcolor="#BBAADD" height="5"></td></tr>
      <tr>
        <td width="98%" colspan="11"><input onClick="{if(confirm('确定删除选定用户吗!?')){this.document.JyDownH.submit();return true;}return false;}" type="submit" value="删除" name="JyDownDo"> 
        |&nbsp;<input onClick="{if(confirm('确定锁定选定用户吗!?')){this.document.JyDownH.submit();return true;}return false;}" type="submit" value="锁定" name="JyDownDo">  
        | 
        <input onClick="{if(confirm('确定激活选定用户吗!?')){this.document.JyDownH.submit();return true;}return false;}" type="submit" value="激活" name="JyDownDo"> 
        | <select size="1" name="newdj"> 
        <option value=""></option>
        <option value="0">①:普通会员</option>
        <option value="1">②:高级会员</option>
        <option value="2">③:管 理 员</option>
        </select><input onClick="{if(confirm('确定修改选定用户级别吗!?')){this.document.JyDownH.submit();return true;}return false;}" type="submit" value="等级" name="JyDownDo"> 
        | <input type="text" name="k" size="13"><input type="submit" value="搜索用户名" name="JyDownDo"></td> 
        </tr>
      <tr>
        <td width="98%" colspan="11" bgcolor="#FFFFFF"><%
call page()
sub page()%> 页次:<b><font color="#FF0000"><%=currentPage%></font>/<%=mpage%></b>,每页<b><%=MaxPerPage%></b>个,<%if request("k")<>"" then%><font color="#FF0000">搜到</font><%else%>当前<%end if%>用户<b><%=totalPut%></b>个 
 <%                                                                                                                           
    pageno=currentPage
    if isempty(pageno) or cint(pageno)<1 or cint(pageno)>mpage then
        pageno=1
    end if
%>
[ <%if cint(pageno)>1 then%><a href=user_list.asp?id=<%=request("id")%>&k=<%=request("k")%>><%end if%><<-</a> <%if cint(pageno)>1 then%><a href=user_list.asp?id=<%=request("id")%>&page=<%=pageno-1%>&k=<%=request("k")%>><%end if%><-</a><%                   
pp=cint(pageno)-3            
  if pp<1 then            
  pp=1            
  end if            
for pno=pp to mpage            
p=p+1            
if pno=cint(pageno) then%> <font color="#FF0000"><%=pno%></font><%else%> <a href=user_list.asp?id=<%=request("id")%>&page=<%=pno%>&k=<%=request("k")%>><%=pno%></a><%end if%>                   
<%                   
if p>=7 then exit for            
next%> <%if cint(pageno)< mpage then%> <a href=user_list.asp?id=<%=request("id")%>&page=<%=pageno+1%>&k=<%=request("k")%>><%end if%>-></a> <%if cint(pageno)< mpage then%><a href=user_list.asp?id=<%=request("id")%>&page=<%=mpage%>&k=<%=request("k")%>><%end if%>-&gt;&gt;</a> ]<% 
end sub%></td>
        </tr>
      </form>
    </table>
<%end if%>
    </td>
  </tr>
</table>
<% 
set rs=nothing  
conn.close  
set conn=nothing%>        
</body>                                       
</html>

⌨️ 快捷键说明

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