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

📄 del.asp

📁 实现一个用JSP、Servlet技术实现的小型物流网站系统。实现功能如下:管理员通过登录该系统
💻 ASP
字号:
<% data_path="../../" 'ACC连接数据库路径,对SQL无效 %>
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/filesystem.asp"-->
 <!--#include file="../../inc/safe.asp"-->
 <!--#include file="../checkrole.asp"-->

 <%
  Response.Buffer = true
  Response.ExpiresAbsolute=now()-1
  Response.Expires=0
  Response.CacheControl="no-cache"
  
 call checkuser("sj")
 
 if Not ChkPost then 
    response.write "<script language='javascript'>"
	response.write"parent.location.href='"&HOPE_InstallDir&"login/login1.asp';</SCRIPT>"
	response.end
end if
  
 info_id=Replace_Text(request("info_id"))
  
Set Rs=Server.CreateObject("Adodb.RecordSet")
	SqlFile="select Info_ID, sortid,typeid,typeid_2,showname,dateandtime,period,type  from Yixiang_Info where info_id="&info_id&" and gsid="&session("id")&""
	Rs.open SqlFile,conn,1,3

		 ttid=Rs("Info_ID")
		 sortid=Rs("sortid")
		 typeid=Rs("typeid")
		 typeid_2=Rs("typeid_2")
		 showname=Rs("showname")
		 dateandtime=Rs("dateandtime")
		 period=Rs("period")
		if Rs("type")="卖" then 
			HtmlPath="tradeinfo"
		else
			HtmlPath="seller"
		end if

		
if not(rs.eof and rs.bof) then

	FileName=HOPE_InstallDir&HtmlPath&"/offerdetail/"&sortid&"-"&typeid&"-"&typeid_2&"-"&ttid&".html"
 	Call FileDel(FileName)'删除文件
	conn.execute("delete from Yixiang_Info where info_id="&info_id&" and gsid="&session("id")&"")'删除数据

end if
rs.close
set rs=nothing
Conn.Close 
Set Conn = Nothing 

Response.Redirect(Request.ServerVariables("HTTP_REFERER"))
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>操作成功</title>
<link href="../../images/css.css" rel="stylesheet" type="text/css">
<meta HTTP-EQUIV=refresh Content='1;url=edit.asp'>
</head>

</body>
</html>

⌨️ 快捷键说明

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