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

📄 userlist.asp

📁 信息管理系统 管理页面:admin/index.asp 用户和密码都是admin
💻 ASP
字号:
<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<meta http-equiv="Content-Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="../1.CSS">
<script>
function loadThreadFollow(t_id,b_id){
	var targetImg =eval("document.all.followImg" + t_id);
	var targetDiv =eval("document.all.follow" + t_id);
	
	if ("object"==typeof(targetImg)){
		if (targetDiv.style.display!='block'){
			targetDiv.style.display="block";
			
		}else{
			targetDiv.style.display="none";
		}
	}
}
function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.name != 'chkall' )
       e.checked = form.chkall.checked;
    }
  }
//-->
</script>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#CCCCCC" width="100%" height="1">
  <tr>
    
    <td width="50%" height="1">
    <FORM name=sou1 action="?ijob=1" method=POST>
    <p align="center">用户名:<input type="text" name="T1" size="10">
    <input type="submit" value="查找" name="B1">
    </form>
    </td>
    <td width="50%" height="1">
    <FORM name=sou2 action="?ijob=2" method=POST>
    <p align="center">姓名:<input type="text" name="T2" size="10">
    <input type="submit" value="查找" name="B1">
    </form>
    </td>
  </tr>
</table>
<hr color="#008080" size="1">
<div align="center">
  <center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#808000" width="100%" height="30">
<FORM name=thisForm action="user_del.asp" method=POST>
<%
dim rs,sql,k,ijob,rs1
dim ThisPage,Pagesize,Allrecord,Allpage
if request("page")="" then
  ThisPage=1		
else
  ThisPage=request("page")
end if
ijob=request("ijob")
set rs = Server.CreateObject("ADODB.RecordSet")
set rs1 = Server.CreateObject("ADODB.RecordSet")
Select Case ijob
Case "1"
sql = "select id,username,name,zcdata,dlcs,jf,hb,a,b,c,d from [user] where username like '%"&trim(request("T1"))&"%' order by id desc"
Case "2"
sql = "select id,username,name,zcdata,dlcs,jf,hb,a,b,c,d from [user] where name like '%"&trim(request("T2"))&"%' order by id desc"
Case Else
sql="select id,username,name,zcdata,dlcs,jf,hb,a,b,c,d from [user] order by id desc"
End Select
rs.open sql,conn,1,1
if rs.eof then
response.write "<li>还没有用户数据!"
response.end
end if
rs.Pagesize=20
Pagesize=rs.Pagesize
Allrecord=rs.Recordcount
Allpage=rs.Pagecount
if ThisPage<1 then                           
ThisPage=1
end if
On Error Resume Next
rs.move (ThisPage-1)*Pagesize
k=0
%>
  <tr>
    <td width="4%" height="30" bgcolor="#C0C0C0">
    <p align="center">编号</td>
    <td width="11%" height="30" bgcolor="#C0C0C0">
    <p align="center">姓名</td>
    <td width="10%" height="30" bgcolor="#C0C0C0">
    <p align="center">登陆帐号</td>
    <td width="9%" height="30" bgcolor="#C0C0C0">
    <p align="center">登陆次数</td>
    <td width="6%" height="30" bgcolor="#C0C0C0">
    <p align="center">积分</td>
    <td width="6%" height="30" bgcolor="#C0C0C0">
    <p align="center">货币</td>
    <td width="13%" height="30" bgcolor="#C0C0C0">
    <p align="center">最后登陆</td>
    <td width="4%" height="30" bgcolor="#C0C0C0">
    <p align="center">道具</td>
    <td width="5%" height="30" align="center" bgcolor="#C0C0C0">
    颜色</td>
    <td width="4%" height="30" align="center" bgcolor="#C0C0C0">
    置顶</td>
    <td width="5%" height="30" align="center" bgcolor="#C0C0C0">
    图片</td>
    <td width="5%" height="30" align="center" bgcolor="#C0C0C0">
    验证</td>
    <td width="8%" height="30" align="center" bgcolor="#C0C0C0">
    操作</td>
    <td width="7%" height="30" align="center" bgcolor="#C0C0C0">
    选择</td>
  </tr>
  <%
  dim id
  do while not rs.eof
  id=rs("id")
  %>
  <tr>
    <td width="4%" height="25">
    <p align="center"><%=k+1%></td>
    <td width="11%" height="25">
    <p align="center"><%=rs("name")%></td>
    <td width="10%" height="25">
    <p align="center"><%=rs("username")%></td>
    <td width="9%" height="25">
    <p align="center"><%=rs("dlcs")%></td>
    <td width="6%" height="25">
    <p align="center"><%=rs("jf")%></td>
    <td width="6%" height="25">
    <p align="center"><%=rs("hb")%></td>
    <td width="13%" height="25">
    <p align="center"><%=datevalue(rs("zcdata"))%></td>
    <td width="4%" height="25">
    <p align="center">
                    <img border="0" src="img/r3.gif"></td>
    <td width="5%" height="25" align="center">
    <%=rs("a")%></td>
    <td width="4%" height="25" align="center">
    <%=rs("b")%></td>
    <td width="5%" height="25" align="center">
    <%=rs("c")%></td>
    <td width="5%" height="25" align="center">
    <%=rs("d")%></td>
    <td width="8%" height="25" align="center">
    <font color="#FF0000">
    <span id="followImg<%=k%>" style="CURSOR: hand" onclick="loadThreadFollow(<%=k%>,5)">
    面版</span></font></td>
    <td width="7%" height="25" align="center">
          <input type="checkbox" name="selectedid" value="<%=trim(rs("username"))%>"></td>
  </tr>
  <tr style="display:none" id="follow<%=k%>">
    <td width="95%" height="25" colspan="14">
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="100%">
      <tr>
        <td width="10%" bgcolor="#EEEEEE"> </td>
        <td width="10%" bgcolor="#EEEEEE"> </td>
        <td width="10%" bgcolor="#EEEEEE"><font color="#666666"><a href="#" ONCLICK="window.open('user_editzj.asp?id=<%=id%>','Sample','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=489,height=330,left=300,top=100')">修改资料</a></font></td>
        <td width="10%" bgcolor="#EEEEEE"><font color="#666666"><a href="#" ONCLICK="window.open('user_editpass.asp?id=<%=id%>','Sample','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=180,height=35,left=300,top=100')">修改密码</a></font></td>
        <td width="10%" bgcolor="#EEEEEE"><font color="#666666"><a href="#" ONCLICK="window.open('user_edithb.asp?id=<%=id%>','Sample','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=180,height=35,left=300,top=100')">修改货币</a></font></td>
        <td width="10%" bgcolor="#EEEEEE"><font color="#666666"><a href="#" ONCLICK="window.open('user_editdj.asp?id=<%=id%>','Sample','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=200,height=150,left=300,top=100')">修改道具</a></font></td>
        <td width="10%" bgcolor="#EEEEEE"><font color="#666666"><a href="#" ONCLICK="window.open('user_editmail.asp?id=<%=id%>','Sample','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=355,height=328,left=300,top=100')">发送邮件</a></font></td>
        <td width="10%" bgcolor="#EEEEEE"><font color="#0000FF">
        <a href="user_del.asp?selectedid=<%=trim(rs("username"))%>"><font color="#0000FF">直接删除</font></a></font></td>
        <td bgcolor="#EEEEEE"><font color="#666666">
<%
dim m
set rs1=conn.execute("select count(id) from [xinxi] where username='"&rs("username")&"'")
m=rs1(0)
rs1.close
%>
        <a target="_blank" href="user_gl.asp?id=<%=id%>">用户管理区域</a>[<%=m%>条]</font></td>
      </tr>
    </table>
    </td>
  </tr>
    <%
    k=k+1
    rs.movenext
    if k>=Pagesize then exit do
	loop
	rs.close
    set rs=nothing
    set rs1=nothing
    closedb
	%>
  <tr>
    <td width="100%" height="30" colspan="14">
          <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr> 
<td height="25" width="151">
<p align="center">
 </td>
<td height="25" width="126">
<p align="center"> </td>
<td height="25" width="118">
<p align="right"> </td>
<td height="25" width="200">
<p align="center">
<INPUT onclick=CheckAll(this.form) type=checkbox value=on name=chkall>选中所有记录&nbsp;&nbsp; 
<input onclick=javascript:showoperatealert(1) type="submit" value="删除用户" name="B1"></td>
</tr>
<tr> 
<td height="25" width="151" align="center">
共有&nbsp;<font color="#CC5200"><%=Allrecord%></font>&nbsp;条记录</td>
<td height="25" width="126" align="center">
共 <font color="#CC5200"><%=Allpage%></font> 页</td>
<td height="25" width="118" align="center">
现在是第 
                <font color="#CC5200"><%=ThisPage%></font> 页</td>
<td height="25" width="200" align="center">
<%
if ThisPage<2 then     
response.write "<font color=""#808080"">首页</font>&nbsp;"
response.write "<font color=""#808080"">上一页</font>&nbsp;"     
else     
response.write "<a href=?page=1&t1="&trim(request("t1"))&">首页</a>&nbsp;"
response.write "<a href=?page="&ThisPage-1&"&t1="&trim(request("t1"))&">上一页</a>&nbsp;"     
end if
if Allpage-ThisPage<1 then     
response.write "<font color=""#808080"">下一页</font>&nbsp;"
response.write "<font color=""#808080"">尾页</font>&nbsp;"  
else     
response.write "<a href=?page="&(ThisPage+1)&"&t1="&trim(request("t1"))&">下一页</a>&nbsp;"   
response.write "<a href=?page="&Allpage&"&t1="&trim(request("t1"))&">尾页</a>&nbsp;"     
end if
%></td>
</tr>
          </table>
    </td>
  </tr>
  </form>
</table></center>
</div>

⌨️ 快捷键说明

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