📄 ye_share_pinglun_del.asp
字号:
<%if session("admin")="" then
response.write"你没有登录或是非法用户!<meta http-equiv=refresh content='1;url=../Index.asp'>"
response.End()
end if%>
<!--#include file=conn.asp-->
<!--#include file="../Config.asp"-->
<!--#include file=Ye_Up.asp-->
<link href=ht.css rel=stylesheet type=text/css>
<title><%=webname%>_删除共享资料评论</title>
<br>
<!--删除共享资料评论-->
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="t1">
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td height="36" align="center" onmouseover="this.className='tbb'" onmouseout="this.className='taa'" class="taa"><strong>删除共享资料评论</strong></td>
</tr>
<tr>
<td align=center>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<%if request("del")="删除" then
rs.open"select * from Sharep where id="&cint(request("id")),conn,1,3
rs.delete
rs.close
response.write"<tr><td colspan=6>评论删除成功!</td></tr><meta http-equiv=refresh content='1;url=Ye_Share_PingLun_Del.asp'>"
response.End()
end if
%>
<tr>
<td align="center" height="24"><b>评论资料</b></td>
<td align="center" height="24"><b>评论人</b></td>
<td align="center" height="24"><b>评论内容</b></td>
<td align="center" height="24"><b>评论时间</b></td>
<td align="center" height="24"><b>操作</b></td>
</tr>
<%rs.open"select * from Sharep order by id desc",conn,1,1
if rs.eof then
%><tr>
<td colspan="5" align="center" height="12">暂时没有评论!</td>
</tr>
<%else
maxnum=rs.recordcount
rs.pagesize=15
maxpage=rs.pagecount
if request("p")="" then
p=1
else
p=cint(request("p"))
end if
if p>maxpage then
p=maxpage
end if
if p=0 then
p=1
end if
if p<>1 then
rs.move (p-1)*rs.pagesize
end if
for i=1 to rs.pagesize
%>
<form method=post action=Ye_Share_PingLun_Del.asp?id=<%=rs("id")%>>
<tr>
<td align="center" height="25"><a href=../Share_View.asp?id=<%=rs("upid")%> target=_blank>查看</a></td>
<td align="center" height="25"><%=rs("pinguser")%></td>
<td align="center" height="25"><%=rs("ping")%></td>
<td align="center" height="25"><%=rs("pingtime")%></td>
<td align="center" height="25"><input name="del" type="submit" id="del" value="删除"></td>
</tr></form>
<%
rs.movenext
if rs.eof then exit for
next%>
<tr>
<td colspan="5" align="center" height="24" class="t11">
<p>共<font color=red><%=maxnum%></font>个评论,15个每页,页次:<font color=red><%=p%></font>/<%=maxpage%>
<a href=Ye_Share_PingLun_Del.asp?p=1>首页</a>
<a href=Ye_Share_PingLun_Del.asp?p=<%=p-1%>>上页</a>
<a href=Ye_Share_PingLun_Del.asp?p=<%=p+1%>>下页</a>
<a href=Ye_Share_PingLun_Del.asp?p=<%=maxpage%>>尾页</a></p>
</td>
</tr>
<%end if
rs.close%>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br><!--#include file=Ye_End.asp-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -