📄 bbsuser.asp
字号:
<!-- #include file="conn.asp" -->
<%
if session("admin")="" then
response.redirect "admin.asp"
else
if session("flag")>1 then
response.write "<br><p align=center>您没有操作的权限</p>"
response.end
end if
end if
function encodestr(str)
dim i
str=trim(str)
if IsNull(str) then exit function
str=replace(str,"<","<")
str=replace(str,">",">")
str=replace(str,"'","""")
str=replace(str,"&","&")
encodestr=replace(str," "," ")
end function
function showzw(zhiwei)
if len(zhiwei)>2 then
dim seatp2,seatp,i
seatp2=2
seatp=0
i=2
do while i>0
seatp=instr((seatp2-1),zhiwei,"-")
seatp2=instr((seatp+1),zhiwei,"-")
zw=mid(zhiwei,seatp+1,seatp2-seatp-1)
if cint(zw)=99 then response.write("站长")
if cint(zw)=98 then response.write("助理")
if cint(zw)=97 then response.write("管理员")
if cint(zw)<90 then
dim rs1
set rs1=server.createobject("adodb.recordset")
rs1.open "select form from form where id="&cint(zw) ,conn,1,1
if rs1.bof and rs1.eof then
response.write ""
else
response.write(""&rs1("form")&"版主 ")
end if
rs1.close
end if
i=i+1
if seatp2=len(zhiwei) then i=0
loop
else
response.write ""
end if
end function
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link rel="stylesheet" type="text/css" href="style.css">
<script language="JavaScript">
<!--
function suredo(src,q)
{
var ret;
ret = confirm(q);
if(ret!=false)window.location=src;
}
//-->
</script>
</head>
<body>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><br>
<font color="#FF0000"><strong>论 坛 会 员 管 理</strong></font></td></tr>
<tr>
<td align="center" valign="top"><br></td></tr>
<tr>
<td align="center" valign="top">
<table align="center" width="100%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#000000">
<%
set rs=server.createobject("adodb.recordset")
sql = "select * from sheet"
rs.open sql,conn,1,1
if rs.bof and rs.eof then
response.write "<tr bgcolor=#999999><td colspan='6' align=center>论坛还没有人注册</td></tr>"
else
%>
<tr bgcolor=#999999><td width="10%" align="center">会员ID</td><td width="30%" align="center">会员名称</td><td width="20%" align="center">会员手机号码</td><td width="15%" align="center">会员职务</td><td width="15%" align="center"></td><td width="10%" align="center"></td></tr>
<%
Page=Int(Abs(Request("page")))
IF not IsNumeric(Request("page")) Or IsEmpty(Request("page")) Then page=1
rs.pagesize = 18 '每页显示记录数
total = rs.RecordCount
mp = rs.pagesize
rs.absolutepage = page
do while not rs.eof and mp>0
%>
<tr bgcolor=#FFFFFF><td align="center"><%=rs("id")%></td><td align="center"><%=encodestr(rs("nc"))%></td><td align="center"><%=rs("shouji")%></td><td align="center"><%=showzw(rs("bz"))%></td><td align="center"><a href="editbbsuser.asp?id=<%=rs("id")%>">编辑权限</a></td><td align="center"><a href='javascript:suredo("delbbsuser.asp?id=<%=rs("id")%>","确定删除?删除后不可恢复")'>删除</a></td></tr>
<%
mp=mp-1
rs.movenext
loop
%>
<tr bgcolor=#999999><td align="center" colspan="6" >
<%
if page>rs.pagecount then Response.redirect("bbsuser.asp?page="&rs.pagecount)
if page>1 then
response.Write("<a href='bbsuser.asp?page=1'>首页</a>")
response.Write(" <a href='bbsuser.asp?page="&page-1&"'>上一页</a> ")
end if
if page<rs.pagecount then
response.Write("<a href='bbsuser.asp?page="&page+1&"'>下一页</a>")
response.Write(" <a href='bbsuser.asp?page="&rs.pagecount&"'>尾页</a>")
end if
response.Write(" 共"&total&"个会员 ")
%>
</td></tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -