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

📄 list.asp

📁 很好的代码!!大家可以下
💻 ASP
字号:
<!--#include file="conn.asp"--><!--#include file="chkuser.asp" --><!--#include file=../include/config.asp --><!--#include file="char.inc"-->
<%
IF not(request.cookies("KEY")="super" or request.cookies("key")="typemaster" or request.cookies("key")="bigmaster")  THEN
response.redirect "index_face.asp"
response.end
else
usernamecookie=CheckStr(request.cookies("UserName"))
passwdcookie=replace(trim(Request.cookies("passwd")),"'","''")
KEYcookie=replace(trim(request.cookies("KEY")),"'","''")
if usernamecookie="" or passwdcookie="" then
response.redirect "login.asp"
response.end
else
'判断用户的合法性
  set rs=server.createobject("adodb.recordset")
  sql="select * from admin where username='"&usernamecookie&"'"
  rs.open sql,conn,1,1
  if rs.eof and rs.bof then
             response.redirect "login.asp"
            response.end
         end if
  IF passwdcookie<>rs("passwd") THEN
          response.redirect "login.asp"
           response.end
      END IF
   '下面判断用户级别实际在有用户级别是都应该判断
   if KEYcookie<>rs("OSKEY") then
      response.redirect "index_face.asp"
      response.end
    end if
           rs.close
           set rs=nothing
END IF
END IF
%>
<html>
<%
dim sql
dim rst
set rst=server.createobject("adodb.recordset")
sql="select * from admin where id="&request("id")
rst.open sql,conn,1,1
%>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=site.css rel=stylesheet>
<title><%=copyright%><%=version%>&nbsp;<%=ver%> - <%=rst("fullname")%> 的详细资料</title>
</head>
<body topmargin="0"><!--#include file=top.asp-->
<div>
    <p align=right>编号:<%=rst("id")%>&nbsp;<%if rst("dateandtime")<>"" then%>注册日期:<%=rst("dateandtime")%><%end if%> 
    </p>
    <%if rst("fullname")<>"" then%>&nbsp;&nbsp;&nbsp;&nbsp;姓&nbsp;&nbsp;&nbsp; 名:<%=rst("fullname")%><br><br><%end if%><%if rst("sex")<>"" then%>&nbsp;&nbsp;&nbsp;&nbsp;性&nbsp;&nbsp;&nbsp;&nbsp;别:<%=rst("sex")%><br><br><%end if%>
      <%if rst("birthyear")<>"" then%>&nbsp;&nbsp;&nbsp;&nbsp;生&nbsp;&nbsp;&nbsp; 日:<%=rst("birthyear")%>年<%=rst("birthmonth")%>月<%=rst("birthday")%>日<br><br><%end if%><%if rst("email")<>"" then%>&nbsp;&nbsp;&nbsp;&nbsp;电子邮件:<a href=mailto:<%=rst("email")%>><%=rst("email")%></a><br><br><%end if%><%if rst("tel")<>"" then%>&nbsp;&nbsp;&nbsp;&nbsp;联系电话:<%=rst("tel")%><br><br><%end if%>
 &nbsp;&nbsp;&nbsp;&nbsp;权&nbsp;&nbsp;&nbsp; 限:<%if rst("oskey")="super" and rst("purview")="99999" then%>超级管理员<%end if%><%if rst("oskey")="super" and rst("purview")<>"99999" then%>系统管理员<%end if%><%if rst("oskey")="typemaster" then%>总栏管理员<%end if%><%if rst("oskey")="bigmaster" then%>大类管理员<%end if%>
<%if rst("oskey")="smallmaster" then%>小类管理员<%end if%><%if rst("oskey")="selfreg" then%>注册用户<%end if%><%if rst("oskey")="self" then%>未审核用户<%end if%><br><br>&nbsp;&nbsp;&nbsp;&nbsp;工作单位:<%=rst("depname")%><br><br>&nbsp;&nbsp;&nbsp;&nbsp;登录次数:<%=rst("logins")%><br><br> 
 &nbsp;&nbsp;&nbsp;&nbsp;文&nbsp;章&nbsp;数:<%=rst("number")%><br><br>&nbsp;&nbsp;&nbsp;&nbsp;最近地址:<%=rst("ip")%><br><br>&nbsp;&nbsp;&nbsp;&nbsp;最近登录:<%=rst("lastlogin")%><br><br><%if rst("email")<>"" then%>&nbsp;&nbsp;&nbsp;&nbsp;自我介绍:<%=rst("content")%><%end if%>
          <p align=right> 
          『<a href="useredit.asp?id=<%=rst("id")%>">修改</a>』<%if trim(session("username"))<>trim(rst("username")) then%>『<a href="userdel.asp?id=<%=rst("id")%>&amp;name=del">删除</a>』<%end if%>『<a href="javascript:history.go(-1)">返回</a>』</b></p>
</div>
</body>
</html>
<%
rst.close
set rst=nothing
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

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