<!--#include file="conn.asp"-->
<!--#include file="chkadmin.asp"-->
<!--#include file="inc/char.asp"-->
<%dim id,errmsg,founderr
id=CInt(Request.QueryString("id"))
founderr=false

if chkadmin=false or power(5)="0" then
	founderr=true
	errmsg=errmsg+"<li>您没有删除公告的权限</li>"
end if

if founderr=false then
	conn.execute("delete from Message where ID="&id)
	dim gourl,msg
	gourl="message_list.asp"
	msg="此公告已删除！"
	call ok()
else
	call error()
end if

conn.close
set conn=nothing%>