<% 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("zxsj")
 
if issession=0 then
gsid=Replace_Text(request.Cookies("Yxmemberid"))
else
gsid=session("id")
end if
 if Not ChkPost then 
    response.write "<script language='javascript'>"
	response.write"parent.location.href='"&HOPE_InstallDir&"login/login1.asp';</SCRIPT>"
	response.end
end if
  
vipinfo_id=Replace_Text(request("vipinfo_id"))
  
Set Rs=Server.CreateObject("Adodb.RecordSet")
	SqlFile="select vipinfo_id,viptype,vipshowname,picture  from Yixiang_vipInfo where vipinfo_id="&vipinfo_id&" and gsid="&gsid&""
	Rs.open SqlFile,conn,1,3
	 ttid=Rs("vipinfo_id")
	 viptype=rs("viptype")
	 picture=rs("picture")
if not(rs.eof and rs.bof) then
   	PicFile=HOPE_InstallDir&"UploadFile/"&picture
	if instr(picture,"nopicture.gif")<=0 then
	call FileDel(PicFile)'删除相应图片
	end if
	FileName=HOPE_InstallDir&"vipinfo/offerdetail/"&sortid&"-"&ttid&".html"
 	Call FileDel(FileName)'删除文件
	conn.execute("delete from Yixiang_vipInfo where vipinfo_id="&vipinfo_id&" and gsid="&gsid&"")'删除数据
end if
rs.close
set rs=nothing
Conn.Close 
Set Conn = Nothing 
Response.Write("<iframe src='../../manage/Autohtml/vipinfo/makelist.asp?all=all&other=SendTo&TypeId="&viptype&"' width=0 height=0></iframe>")
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=index.asp'>
</head>

</body>
</html>