<%@ codepage ="936" %>
   <% 
	data_path="../../" 
	numid="51"
	dir="../err.asp" 
  %>
<!--#include file="../head.asp"-->
<!--#include file="../checkrole.asp"-->
<!--#include file="../../inc/safe.asp"-->
<%
idlist=replace_text(request("id"))
set rs=server.createobject("adodb.recordset")
sq1="select * from websen_MembersNews where newsid="&cstr(idlist)
rs.open sq1,conn,1,3
if rs("Picture")<>"nopicture.gif" then
call FileDel("../../UploadFile/"&rs("picture")&"")
end if
rs.close
sql="delete from [websen_MembersNews] where newsid="&cstr(idlist)
conn.execute sql
rs.close
response.Redirect(request.ServerVariables("HTTP_REFERER"))
%>