<%
if request.QueryString("id")="" or isnumeric(request.QueryString("id"))=0 then
response.Redirect("index.asp")
response.End()
end if
%>
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<p align=center><font color=red>您没有此项目管理权限！</font></p>"
response.End
end if
end if
%>
<!--#include file="ljconn.asp"-->
<%

if request.querystring("flag")="hf" then
conn.execute "delete from hfly where id="&request.QueryString("id")&""
response.Write("<script language='javascript'>alert('恭喜！操作成功！');location.href='showbbs.asp?id="&request.QueryString("lyid")&"';</script>")
response.End()
else
if request.querystring("flag")="pl" then
conn.execute "delete from plun where id="&request.QueryString("id")&""
response.Write("<script language='javascript'>alert('恭喜！操作成功！');location.href='showbbs.asp?id="&request.QueryString("lyid")&"';</script>")
response.End()
else
conn.execute "delete from lyb where id="&request.QueryString("id")&""
conn.execute "delete from hfly where lyid="&request.QueryString("id")&""
end if
end if
response.Write("<script language='javascript'>alert('恭喜！操作成功！');window.opener.self.location.reload();window.close();</script>")

%>