<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%
dim flag
flag=request.cookies("foxwww")("fox")
if flag=10 then
response.Write "<script LANGUAGE='javascript'>alert('您只是后台测试员，请注意身份！');window.location='right.asp';</script>"
response.end
end if%>
<%dim id,rs,sql,rs1,sql1
id=request("id")

'''''''''''''''''''''
'通过FSO组件删除文件'
'''''''''''''''''''''
sql1="select xinxipic from FOX_zixun where id="&request("id")
set rs=conn.execute(sql1)
Server.CreateObject("Scripting.FileSystemObject").GetFile(server.mappath("../newsupfiles")&"\"&rs("xinxipic")).delete
''''''''''''''''''''''
'删除数据记录'''''''''
''''''''''''''''''''''
sql="Delete from FOX_zixun where id="&request("id")
conn.execute sql
 response.write "<script>alert('删除成功！');this.location.href='zixun.asp?fox=7';</SCRIPT>"
response.end
Response.Redirect "zixun.asp?fox=7"
%>
</body></html>