<!--#include file="conn.asp"-->
<!--#include file="ConnUser.asp"-->
<!--#include file="config.asp"-->
<!--#include file="char.inc"-->
<!--#include file="ChkUser.asp" -->
<!--#include file="ChkManage.asp" -->
<!--#include file="ChkURL.asp" -->
<%
if not(request.cookies(echsys)("ManageKEY")="super" or request.cookies(echsys)("ManageKEY")="bigmaster" or request.cookies(echsys)("ManageKEY")="check" or request.cookies(echsys)("ManageKEY")="typemaster") then
	Show_Err("对不起，您的管理权限不够！")
	response.end
else
	if ggmanage="1" or (request.cookies(echsys)("ManagePurview")="99999" and request.cookies(echsys)("purview")="99999") then

	ID=ChkRequest(Request.QueryString("ID"),1)	'防注入
	Title=Request.Form("Title")
	if Title="" then
		Show_Err("请填写文章标题！<br><br><a href='javascript:history.back()'>回去重来</a>")
		response.end
	end if

	upload=Request.Form("upload")
	content=Request.Form("content")
	if Content="" then
		Show_Err("请输入文章内容！<br><br><a href='javascript:history.back()'>回去重来</a>")
		response.end
	end if

	set rs=server.createobject("adodb.recordset")
	sql="select * from "& db_wygkcn_Board_Table &" where id="&id
	rs.open sql,conn,3,3
	rs("title")=title
	rs("upload")=upload
	rs("content")=content
	rs("dateandtime")=now()
	rs.update
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing

	response.write "<meta http-equiv=""refresh"" content="""&freetime&";url=wygkcn_BoardManage.asp"">"
	Show_Message("<p align=center><font color=red>恭喜您!主题为“"&title&"”的公告修改成功!<br><br>"&freetime&"秒钟后返回上页!</font>")
	response.end
	else
		Show_Err("对不起，该功能已经被超级系统管理员关闭，您没有权限操作！")
		response.end
	end if
end if%>