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

📄 redel.asp

📁 admin/admin.asp是WAP的后台管理登陆页面
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<!-- #include file="conn.asp" -->
<!--#include file="jifen.asp"--->
<!-- #include file="onlines.asp" -->
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> 
<%
dim id,hID,rsad,pno
id=request.QueryString("id")
hID=request.QueryString("hID")

set rsad=Server.CreateObject("ADODB.Recordset")
rsad.open "select phone from login where id='"&request("shouji")&"'",conn,1,3
if rsad.bof and rsad.eof then
response.redirect "index.asp"
else
pno=rsad("phone")
end if
rsad.close
set rsad=nothing
dim rsre,bz
set rsre=Server.CreateObject("ADODB.Recordset")
rsre.open "select * from sheet where shouji='" & pno & "'",conn,1,2
bz=rsre("bz")
set rs=Server.CreateObject("ADODB.Recordset")
rs.open "select tID,shouji from hui where ID=" & hID,conn,1,2
if rs.recordcount=1 then
tid=rs("tID")
if instr(bz,"-"& id &"-")>0 or instr(bz,"-99-")>0 or instr(bz,"-98-")>0 or instr(bz,"-97-")>0 or pno=rs("shouji") then
rs.delete
rs.updatebatch
dim rsy
set rsy=Server.CreateObject("ADODB.Recordset")
rsstr="select hui from art where ID=" & tid
rsy.open rsstr,conn,1,2
if rsy.recordcount=1 then
rsy("hui")=rsy("hui")-1
rsy.update
end if
rsy.close
set rsy=nothing

	if rsre.recordcount>0 then
		rsre("tie")=rsre("tie")-hfjf
	rsre.update
	end if

end if

end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%><wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
</head>
<card title="删除回复" ontimer="view.asp?id=<%=id%>&amp;tID=<%=tid%>&amp;shouji=<%=request("shouji")%>">
<timer value="3"/>
<p align="center">
删除成功!<br/><br/>
<a href="view.asp?id=<%=id%>&amp;tID=<%=tid%>&amp;shouji=<%=request("shouji")%>">[返回主帖]</a><br/>
<a href="list.asp?id=<%=id%>&amp;shouji=<%=request("shouji")%>">[返回该版]</a><br/>
<a href="bbs.asp?shouji=<%=request("shouji")%>">[论坛首页]</a><br/>
<a href="../index.asp?shouji=<%=request("shouji")%>">[网站首页]</a><br/>
</p>
</card>
</wml> 

⌨️ 快捷键说明

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