<!--#include file="articleconn.asp"-->
<!--#include file="error.ini"-->
<%if session("flag")>1 then
    response.write "<script>alert('您的操作权限不够！');history.back();</script>"
    response.end
end if
%>


<%
if request.form("talk")="" and request.form("talk1")="" then
set rs=server.createobject("adodb.recordset")
sql="select * from talk where id=22" 
rs.open sql,conn,1,1
talk=replace(rs("talk"),"<br>",vbcrlf)
talk=replace(talk,"&nbsp;"," ")
end if

if request.form("talk")<>"" then
set rs=server.createobject("adodb.recordset")
sql="select * from talk where id=22" 
rs.open sql,conn,1,3
talk=request.form("talk")
rs("talk")=replace(talk,vbcrlf,"<br>")
rs.update
response.redirect "talk.asp"
end if
if request.form("talk1")<>"" then
set rs=server.createobject("adodb.recordset")
sql="select * from talk where id=23" 
rs.open sql,conn,1,3
rs("talk")=request.form("talk1")
rs.update
response.redirect "adminvote.asp"
end if

%>
<html><!--#include file="../checkpost.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>公告管理</title>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<LINK href="inc/Admin_STYLE.CSS" rel="stylesheet" type="text/css">

</head>


<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<br><form method="POST" action="talk.asp">
  <table class="border" width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
    <tr class="title"> 
      <td height="22" colspan="5" align="center" valign="middle"><font color="#FF0000"><b>公告发布修改</b></font></td>
    </tr>
    <tr class="tdbg"> 
      <td colspan="5" align="center" valign="middle">      <div align="center">
        <textarea rows="18" name="talk" cols="79" style="border-style: solid; border-width: 1"><%=talk%></textarea>
      </div></td>
    </tr>
   

    <tr class="tdbg"> 
      <td height="19" colspan="5" align="center" valign="middle">
        <div align="center">
          <input name="submit" type="submit" value="修改">
        </div></td>
    </tr>
  </table>
<table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="100%" align="center">&nbsp; </td>
  </tr>
  <tr> 
    <td width="100%" align="center">
<%rs.close
set rs=nothing
conn.close
set conn=nothing
%></body> 
</html>
	