📄 alluser.asp
字号:
<%@ Language=VBScript%>
<!--#include file=include/conn.asp -->
<!--#include file=include/config.asp -->
<!--#include file="admin/char.inc"-->
<%order=checkstr(request("order"))
set rs=server.CreateObject("ADODB.RecordSet")
rs.Source="select * from type order by typeorder"
rs.Open rs.Source,conn,1,1
dim ArraytypeID(10000),ArraytypeName(10000),Arraytypecontent(10000)
typeCount=rs.RecordCount
for i=1 to typeCount
ArraytypeID(i)=rs("typeID")
ArraytypeName(i)=rs("typeName")
Arraytypecontent(i)=rs("typecontent")
rs.MoveNext
next
rs.Close
set rs=nothing
PageShowSize = 10 '每页显示多少个页
MyPageSize = 50 '每页显示多少条新闻
If Not IsNumeric(Request("page")) Or IsEmpty(Request("page")) Or Request("page") <=0 Then
MyPage=1
Else
MyPage=Int(Abs(Request("page")))
End if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>全部会员__<%=jjgn%></title>
<LINK href=index.css rel=stylesheet>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-right: 0px;
}
-->
</style></head>
<body topmargin="0" background="img/bg.gif">
<!--#include file=include/top1.asp -->
<table width="778" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border-left: 1px solid #cccccc; border-right: 1px solid #cccccc">
<tr valign="top">
<td width="200" bgcolor="#f4f4f4"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" id="AutoNumber4">
<tr>
<td width="100%" align=center><img name="" src="" width="1" height="8" alt=""></td>
</tr>
</table>
<table width="90%" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" id="AutoNumber4" style="border: 1px solid #cccccc">
<tr>
<td width="100%" align=center><img src="img/type_left_02.gif" width="180" height="29"></td>
</tr>
<tr>
<td align=center><img name="" src="" width="1" height="8" alt=""></td>
</tr>
<tr>
<td align=center><%if search="1" then%>
<!--#include file=search.asp-->
<%else%>
<!--#include file=search1.asp-->
<%end if%></td>
</tr>
<tr>
<td align=center><img name="" src="" width="1" height="8" alt=""></td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" id="AutoNumber4">
<tr>
<td width="100%" align=center><img name="" src="" width="1" height="8" alt=""></td>
</tr>
</table></td>
<td bgcolor="#CCCCCC"><img name="" src="" width="1" height="1" alt=""></td>
<td> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="3" bgcolor="#FFFFFF"><img src="IMAGES/kb.gif" width="9" height="3"></td>
</tr>
<tr>
<td height="30" background="img/type_bg.gif"><span class="6"> <img src="img/type01.gif" width="12" height="12" align="absmiddle"> 当前位置: <a href="./">网站首页 - </a></span><b><a href="alluser.asp"></a></b><b>全部会员</b></td>
</tr>
<tr>
<td height="25"><div align="center">
<a class=daohang href="./" >
<script language=javascript src=./admin/banner/ads.asp?place=1></script>
</a> </div></td>
</tr>
<tr>
<td height="25"> </td>
</tr>
<tr>
<td height="25"><div align="center">
<table width="95%" height="156" border="0" align="center" cellpadding="0" cellspacing="0" id="AutoNumber3" style="border-collapse: collapse">
<tr>
<td height="10" valign=top> </td>
</tr>
<tr>
<td height="10" valign=top><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align=center>
<td width="20%" height="20" colspan="5">
<%function getusernum()
dim rs
rs=conn.execute("Select Count(ID) from admin")
getusernum=rs(0)
set rs=nothing
if isnull(getusernum) then getusernum=0
end function%>
本站共有<%=getusernum%>位会员
<%if order="" then%>
<a class=class href="?order=time">按注册时间排列
<%end if%>
<%if order="time" then%>
</a><a class=class href="alluser.asp">按用户名排列
<%end if%>
</a></td>
</tr>
<%
set rs1=server.CreateObject("ADODB.RecordSet")
if order="time" then
rs1.Source="SELECT * FROM admin order by dateandtime"
end if
if order="" then
rs1.Source="SELECT * FROM admin order by username"
end if
if order<>"time" and order<>"" then
rs1.Source="SELECT * FROM admin order by username"
end if
rs1.Open rs1.Source,conn,3,1
If Not rs1.eof then
rs1.PageSize = MyPageSize
MaxPages = rs1.PageCount
rs1.absolutepage = MyPage
total = rs1.RecordCount
i = 0
do until rs1.Eof or i = rs1.PageSize
%>
<tr align=center>
<td width="20%" height="20">
<%if not rs1.eof then%>
<a class=class href="user.asp?user=<%=rs1("username")%>"><%=rs1("username")%></a></td>
<%rs1.movenext
i = i + 1
end if %>
<td width="20%" height="20">
<%if not rs1.eof then%>
<a class=class href="user.asp?user=<%=rs1("username")%>"><%=rs1("username")%></a></td>
<%rs1.movenext
i = i + 1
end if %>
<td width="20%" height="20">
<%if not rs1.eof then%>
<a class=class href="user.asp?user=<%=rs1("username")%>"><%=rs1("username")%></a></td>
<%rs1.movenext
i = i + 1
end if %>
<td width="20%" height="20">
<%if not rs1.eof then%>
<a class=class href="user.asp?user=<%=rs1("username")%>"><%=rs1("username")%></a></td>
<%rs1.movenext
i = i + 1
end if %>
<td width="20%" height="20">
<%if not rs1.eof then%>
<a class=class href="user.asp?user=<%=rs1("username")%>"><%=rs1("username")%></a></td>
<%rs1.movenext
i = i + 1
end if %>
<%
loop
%>
</tr>
</table></td>
</tr>
<tr>
<td width="100%" align=center valign="middle">共 <%=total%> 位会员,当前第 <%=Mypage%>/<%=Maxpages%> 页,每页 <%=MyPageSize%> 位会员
<%
url="alluser.asp?order="&order
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/rs1.PageSize)+1
if PageNextSize >1 then
PagePrev=PageShowSize*(PageNextSize-1)
Response.write "<a class=black href='" & Url & "&page=" & PagePrev & "' title='上" & PageShowSize & "页'>上一翻页</a> "
Response.write "<a class=black href='" & Url & "&page=1' title='第1页'>页首</a> "
end if
if MyPage-1 > 0 then
Prev_Page = MyPage - 1
Response.write "<a class=black href='" & Url & "&page=" & Prev_Page & "' title='第" & Prev_Page & "页'>上一页</a> "
end if
if Maxpages>=PageNextSize*PageShowSize then
PageSizeShow = PageShowSize
Else
PageSizeShow = Maxpages-PageShowSize*(PageNextSize-1)
End if
If PageSizeShow < 1 Then PageSizeShow = 1
for PageCounterSize=1 to PageSizeShow
PageLink = (PageCounterSize+PageNextSize*PageShowSize)-PageShowSize
if PageLink <> MyPage Then
Response.write "<a class=black href='" & Url & "&page=" & PageLink & "'>[" & PageLink & "]</a> "
else
Response.Write "<B>["& PageLink &"]</B> "
end if
If PageLink = MaxPages Then Exit for
Next
if Mypage+1 <=Pagetpage then
Next_Page = MyPage + 1
Response.write "<a class=black href='" & Url & "&page=" & Next_Page & "' title='第" & Next_Page & "页'>下一页</A>"
end if
if MaxPages > PageShowSize*PageNextSize then
PageNext = PageShowSize * PageNextSize + 1
Response.write " <A class=black href='" & Url & "&page=" & Pagetpage & "' title='第"& Pagetpage &"页'>页尾</A>"
Response.write " <a class=black href='" & Url & "&page=" & PageNext & "' title='下" & PageShowSize & "页'>下一翻页</a>"
End if
End If
rs1.close
set rs1=nothing
%>
</td>
</tr>
<tr>
<td height="10" valign=top> </td>
</tr>
</table>
</div></td>
</tr>
</table></td>
</tr>
</table>
<!--#include file=include/bottom.asp -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -