<%@ codepage ="936" %>
<% 
data_path="../../" 'ACC连接数据库路径，对SQL无效
numid="31"
dir="../err.asp" 
%>
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
<!--#include file="../../inc/filesystem.asp"-->
<!--#include file="../rolecheck.asp"-->

<%
tjhome=Replace_Text(request("tjhome"))
info_id=Replace_Text(request("id"))
page=Replace_Text(request("page"))
action=Replace_Text(request("action"))
typeid=Replace_Text(request("typeid"))
VipFile=HOPE_InstallDir&"vipinfo/offerdetail/"&typeid&"-"&info_id&".html"
if action=1 then 
			conn.execute ("update Yixiang_vipinfo set flag=0 where vipinfo_id="&Info_ID)
			conn.execute ("update Yixiang_vipinfo set tjhome=0 where vipinfo_id="&Info_ID)
			conn.execute ("update Yixiang_vipinfo set html_pass=0 where vipinfo_id="&Info_ID)
			'删除文件
			call FileDel(VipFile)
			response.Write("<iframe src='../../manage/makehtml/vipinfo/makelist.asp?all=all&other=SendTo&TypeId="&typeid&"' widht=0 height=0></iframe>")
			Response.write"<script>location.href='index.asp?action=1&keywords="&keywords&"&type="&request("type")&"page="&page&"'</script>"
 elseif action=2 then 
				sql="update Yixiang_vipinfo set flag=1 where vipinfo_id="&Info_ID
				conn.execute sql
				'生成文件
				
				response.Write("<iframe src='../../manage/makehtml/vipinfo/makedetail.asp?all=vipinfo&selAnnounce="&info_id&"' widht=0 height=0></iframe>")
				response.Write("<iframe src='../../manage/makehtml/vipinfo/makelist.asp?all=all&other=SendTo&TypeId="&typeid&"' widht=0 height=0 onload=""returnold()""></iframe>")
				response.write "<div style='margin-top:150px;text-align:center'><font color=#FFF size=2 >正在生成HTML页面，请等待.....</font><br><img src='../../images/ajax-loader.gif' width=200 height=20 style='margin-top:10px;'></div>"
				Response.write"<script>function returnold(){location.href='index.asp?action=2&keywords="&keywords&"&type="&request("type")&"page="&page&"'}</script>"
				
 elseif action=3 then
				sql="update Yixiang_vipinfo set tjhome="&tjhome&" where vipinfo_id="&Info_ID
				conn.execute sql
				Response.write"<script>location.href='index.asp?action=1&keywords="&keywords&"&type="&request("type")&"page="&page&"'</script>"
end if 












%>