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

📄 recycle.asp

📁 一个超市管理系统
💻 ASP
字号:
<!-- #include file="setup.asp" -->
<%
if Request.Cookies("username")="" then
error("<li>您还还未<a href=login.asp>登陆</a>社区")
end if


top

if membercode < 4 then
error2("您的权限不够,无法进入!")
end if

select case Request("menu")

case "deoxidize"
for each ho in request.form("id")
conn.execute("update [forum] set deltopic=0,lasttime=now,content=content&'<br><br>[此帖子已被 "&Request.Cookies("username")&" 在 "&now&" 还原过]' where id="&ho&" and deltopic=1")
next


case "clean"
if ""&Request("day")&"" < "1" then
error2("输入错误")
end if
conn.execute("delete from [forum] where deltopic=1 and lasttime<now-"&Request("day")&"")
error2("已经清空回收站内 "&Request("day")&" 天以前的文章!")
end select


pagesetup=20   '设定每页的显示数量
count=conn.execute("Select count(id)from forum where deltopic=1")(0)
sql="select * from forum where deltopic=1 order by lasttime Desc "
rs.Open sql,Conn
If Count/pagesetup > (Count\pagesetup) then
TotalPage=(Count\pagesetup)+1
else TotalPage=(Count\pagesetup)
End If
PageCount= 0
on error resume next
RS.MoveFirst
if Request.QueryString("ToPage")<>"" then PageCount = cint(Request.QueryString("ToPage"))
if PageCount <=0 then PageCount = 1
if PageCount > TotalPage then PageCount = TotalPage
RS.Move (PageCount-1) * pagesetup





%>







<title>回收站</title>

<script>
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 width=97% align="center" border="0">
<tr>
<td vAlign="top" width="30%"><img src="images/logo.gif" border="0"></td>
<td vAlign="center" align="top"> <img src="images/closedfold.gif" border="0"> <a href=Default.asp?menu=listtitle><%=clubname%></a><br>
 <img src="images/bar.gif" border="0"><img src="images/openfold.gif" border="0"> <a href="recycle.asp">回收站</a></td>
</tr>
</table>

<table width=97% align=center>
  <tr>
    <td width="100%" align="right">共有 <b><font color="#FF0000"><%=Count%></font></b> 
      篇帖子</td>
</tr>
</table>



<TABLE cellSpacing=1 cellPadding=1 width=97% align=center border=0 class=a2>
  <form method="POST" action=recycle.asp?menu=deoxidize>
<TR height=25>
      <TD align=middle width=3% class=a1> </TD>
      <TD align=middle width=3% class=a1>
<input type=checkbox name=chkall onclick=CheckAll(this.form) value="ON"></TD>
      <TD width="46%" height=24 align=middle class=a1>主题</TD>
      <TD align=middle width=9% height=24 class=a1>作者</TD>
      <TD align=middle width=5% height=24 class=a1>字[回]</TD>
      <TD align=middle width=4% height=24 class=a1>点击</TD>
      <TD width=30% height=24 class=a1>   删除时间     最后回复</TD>
    </TR>


<%

i=0
Do While Not RS.EOF and i<pagesetup
i=i+1




if rs("toptopic")=1 then
reimage="<img src=images/f_top.gif>"
elseif rs("locktopic")=1 then
reimage="<img src=images/f_locked.gif>"
elseif rs("polltopic")<>"" then
reimage="<img src=images/f_poll.gif>"
elseif rs("replies")>15 or rs("views") > 150 then
reimage="<img src=images/f_hot.gif>"
elseif rs("replies")>0 then
reimage="<img src=images/f_new.gif>"
else
reimage="<img src=images/f_norm.gif>"
end if


if rs("replies")>0 then
replies="<font color=red>["&rs("replies")&"]</font>"
else
replies=Len(rs("content"))
end if


%>

<TR height=25>
      <TD align=middle width=3% class=a4 height=24><%=reimage%></TD>
      <TD align=middle width=3% class=a3>
<INPUT type=checkbox value=<%=rs("id")%> name=id></TD>
      <TD width="46%" align=left class=a4>&nbsp;<img border=0 src=images/brow/<%=rs("icon")%>.gif> <a onclick=min_yuzi() target=message href=ShowPost.asp?id=<%=rs("id")%>><%=rs("topic")%></a></TD>
      <TD align=middle width=9% class=a3><a href=Profile.asp?username=<%=rs("username")%>><%=rs("username")%> </TD>
      <TD align=middle width=5% class=a4><%=replies%> </TD>
      <TD align=middle width=4% class=a3><%=rs("views")%> </TD>
      <TD align=left width=30% class=a4>&nbsp;<%=rs("lasttime")%> | <a href=Profile.asp?username=<%=rs("lastname")%>><%=rs("lastname")%></a></TD>
    </TR>
    

<%
RS.MoveNext
loop
RS.Close
%>







</TABLE>

<TABLE cellSpacing=0 cellPadding=1 width=97% align=center border=0>
  <TBODY>
<TR height=25>
      <TD width="100%" height=2> 
        <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD height=2>
<input type=submit onclick="{if(confirm('您确定要还原所选的主题?')){return true;}return false;}" value="还 原">
<b>本论坛共有
<font color="#990000"><%=TotalPage%></font> 页 [

<%


ii=PageCount-5
iii=PageCount+5
if ii < 1 then
ii=1
end if
if iii > TotalPage then
iii=TotalPage
end if
if PageCount > 6 then
Response.Write "<a href=?topage=1&forumid="&forumid&"&search="&search&"&searchxm="&searchxm&"&searchxm2="&searchxm2&"&TimeLimit="&TimeLimit&">1</a> ... "
end if


for i=ii to iii
If i<>PageCount then
Response.Write " <a href=?topage="& i &"&forumid="&forumid&"&search="&search&"&searchxm="&searchxm&"&searchxm2="&searchxm2&"&TimeLimit="&TimeLimit&">" & i & "</a> "
else
Response.Write " <font color=#000000><b>"&i&"</b></font> "
end if
next

if TotalPage > PageCount+5 then
Response.Write " ... <a href=?topage="&TotalPage&"&forumid="&forumid&"&search="&search&"&searchxm="&searchxm&"&searchxm2="&searchxm2&"&TimeLimit="&TimeLimit&">"&TotalPage&"</a>"
end if
%>
]</b></TD>
<TD align=right height=2>
</form>
 <form method="POST" action=?menu=clean>

清空 <input maxLength="1" size="1" value="7" name=day> 天以前的文章 <INPUT onclick="{if(confirm('您确定要清空回收站?')){return true;}return false;}" type=submit value="确定"> 

 </form>




</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>




<br>



<center>






<p></p>







<div align="center">
<center>







<table cellSpacing="4" cellPadding="0" width="651" border="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td noWrap width="200">
<img alt src="images/f_new.gif" border="0">&nbsp;打开主题 (有回复的主题)</td>
<td noWrap width="100">
<img alt src="images/f_hot.gif" border="0">&nbsp;热门主题 </td>
<td noWrap width="100">
<img alt src="images/f_locked.gif" border="0">&nbsp;锁定主题</td>
<td noWrap width="150">
<img src="images/topicgood.gif">
精华主题</td>
</tr>
<tr>
<td noWrap width="200">
<img alt src="images/f_norm.gif" border="0">&nbsp;打开主题 (没有回复的主题)</td>
<td noWrap width="100">
<img alt src="images/f_poll.gif" border="0">&nbsp;投票主题</td>
<td noWrap width="100">
<img alt src="images/f_top.gif" border="0">&nbsp;置顶主题</td>
<td noWrap width="150">
<img src="images/my.gif">
自己发表的主题</td>
</tr>
</table>


</center>
</div>




<%


htmlend
%>

⌨️ 快捷键说明

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