📄 ye_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>
<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>
<div align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<%if request("del")="删除" then
rs.open"select * from ping where id="&cint(request("id")),conn,1,3
rs2.open"select * from person where name='"&rs("pingname")&"'",conn,1,3
rs2("jifen")=rs2("jifen")-plkf
temp=rs2("jifen")-plkf
if temp<fen2 then
rs2("touxian")=""&ji1&" "
elseif temp>=fen2 and temp<fen3 then
rs2("touxian")=""&ji2&" "
elseif temp>=fen3 and temp<fen4 then
rs2("touxian")=""&ji3&" "
elseif temp>=fen4 and temp<fen5 then
rs2("touxian")=""&ji4&" "
elseif temp>=fen5 and temp<fen6 then
rs2("touxian")=""&ji5&" "
elseif temp>=fen6 and temp<fen7 then
rs2("touxian")=""&ji6&" "
elseif temp>=fen7 and temp<fen8 then
rs2("touxian")=""&ji7&" "
elseif temp>=fen8 and temp<fen9 then
rs2("touxian")=""&ji8&" "
elseif temp>=fen9 and temp<fen10 then
rs2("touxian")=""&ji9&" "
elseif temp>=fen10 then
rs2("touxian")=""&ji10&" "
end if
rs2.update
rs2.close
rs.delete
rs.close
response.write"<tr><td colspan=6>评论删除成功!</td></tr><meta http-equiv=refresh content='1;url=Ye_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 ping 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_PingLun_Del.asp?id=<%=rs("id")%>>
<tr>
<td align="center" height="25"><a href=../Show_PingLun.asp?id=<%=rs("replyid")%> target=_blank>查看</a></td>
<td align="center" height="25"><%=rs("pingname")%></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_PingLun_Del.asp?p=1>首页</a>
<a href=Ye_PingLun_Del.asp?p=<%=p-1%>>上页</a>
<a href=Ye_PingLun_Del.asp?p=<%=p+1%>>下页</a>
<a href=Ye_PingLun_Del.asp?p=<%=maxpage%>>尾页</a></p>
</td>
</tr>
<%end if
rs.close%>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br><!--#include file=Ye_End.asp-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -