📄 admin_recycle.asp
字号:
<!--#include file="function.asp"-->
<!--#include file="char.asp"-->
<%CheckAdmin%>
<!--#include file="top.asp"-->
<img src="" width="1" height="3"><table width="680" border="0" cellspacing="1" cellpadding="1" align="center" bgcolor="<%=tablebackcolor%>">
<tr>
<td width="160" bgcolor="<%=tabletitlecolor%>" height="129" valign=top>
<!--#include file="admin_left.asp"-->
</td>
<td width="622" bgcolor="<%=tablebodycolor%>" valign="middle" height="129">
<%
dim boardid
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
set rs1=server.CreateObject("ADODB.RecordSet")
sql="select * from bbs where del order by boardid"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
else
boradid=rs("boardid")
PageUrl="recycle.asp"
totalPut=rs.recordcount
if currentpage<1 then currentpage=1
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showContent
showpage totalput,MaxPerPage,PageUrl
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark
showContent
showpage totalput,MaxPerPage,PageUrl
else
currentPage=1
showContent
showpage totalput,MaxPerPage,PageUrl
end if
end if
end if
rs.close
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
sql="select * from reply where del"
rs1.open sql,conn,1,1
if rs1.eof then
response.write "<p align='center'>暂时无任何帖子</p>"
else
PageUrl="recycle.asp"
totalPut=rs1.recordcount
if currentpage<1 then currentpage=1
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showContent1
showpage totalput,MaxPerPage,PageUrl
else
if (currentPage-1)*MaxPerPage<totalPut then
rs1.move (currentPage-1)*MaxPerPage
bookmark=rs1.bookmark
showContent1
showpage totalput,MaxPerPage,PageUrl
else
currentPage=1
showContent1
showpage totalput,MaxPerPage,PageUrl
end if
end if
end if
rs1.close
sub showContent
boardid=rs("boardid")
i=0
response.write "<ul>"
do while not rs.eof
i=i+1
response.write "<li><strong><a href=userinf.asp?name="&rs("username")&" target=_blank><font color=#0000ff>"&rs("username")&"</font></a></strong> <font color=#ffaf60>"&rs("dateandtime")&"</font>"
response.write " <a href=manage.asp?act=nodel&action=bbs&boardid="&boardid&"&id="&rs("bbsid")&" title=将该帖子从回收站还原><font color=#ff0000>还原</font></a>"
response.write " <a href=admin_recycledel.asp?action=bbs&boardid="&boardid&"&id="&rs("bbsid")&" title=不可恢复><font color=#999999>永久删除</font></a>"
response.write "<blockquote>"&ubbcode(rs("content"))&"</blockquote>"
if i>=maxperpage then exit do
rs.movenext
loop
response.write "</ul>"
end sub
sub showContent1
i=0
response.write "<ul><ul>"
do while not rs1.eof
i=i+1
response.write "<li><strong><a href=userinf.asp?name="&rs1("username")&" target=_blank><font color=#0000ff>"&rs1("username")&"</font></a></strong> <font color=#ffaf60>"&rs1("dateandtime")&"</font>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -