<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%dim id,rs,sql,rs1,sql1
id=request("id")

'''''''''''''''''''''
'通过FSO组件删除文件'
'''''''''''''''''''''
sql="select pic from FOX_geadmin where sheng="&session("admin_sheng")&" and shi="&session("admin_shi")
set rs=conn.execute(sql)
Server.CreateObject("Scripting.FileSystemObject").GetFile(server.mappath("../logoupfiles")&"\"&rs("pic")).delete
''''''''''''''''''''''
set rs1=server.createobject("adodb.recordset")
sql1="select pic from [FOX_geadmin] where sheng="&session("admin_sheng")&" and shi="&session("admin_shi")
rs1.open sql1,conn,1,3
rs1("pic")="0"
rs1.update
 response.write "<script>alert('删除成功！');this.location.href='admindiqu.asp';</SCRIPT>"
response.end
Response.Redirect "admindiqu.asp"
%>
