<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file ="../connadmin.asp"-->
<!--#include file = "tuzh_pri.asp"-->
<!--#include file="fckeditor/fckeditor.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
body  {
SCROLLBAR-FACE-COLOR: #9CC5D7;
SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; 
SCROLLBAR-SHADOW-COLOR: #006699; 
SCROLLBAR-3DLIGHT-COLOR: #006699; 
SCROLLBAR-ARROW-COLOR: #330000; 
SCROLLBAR-TRACK-COLOR: #E2F3F1; 
SCROLLBAR-DARKSHADOW-COLOR: #ffffff;}
</style>
<link rel="stylesheet" type="text/css" href="../img/css.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<%set rsu=conn.execute("select top 1 * from gg")%>
<body>
<form action="gg.asp?update=ok" method="post"  name="rs" id="rs">
<table class="border" width="95%" border="0" align="center" cellpadding="1" cellspacing="0">
  <tr>
    <td height="49" align="center" valign="top" class="bg_low"><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="center" valign="middle" class="bgtop"><font class="bgtop_title">公告管理</font></td>
      </tr>
    </table>
        <table width="100%" border="1" cellpadding="1" cellspacing="0" bordercolor="#ABCEDD">
          <tr>
            <td width="100" align="right">公告标题：</td>
            <td align="left"><span class="td">
              <input name="title" type="text" class="input" id="title" value="<%=rsu("title")%>" size="30" />
            </span></td>
          </tr>
          <tr>
            <td width="100" align="right">公告内容：</td>
            <td align="left"><textarea name="content" cols="60" id="content"><%=rsu("content")%></textarea></td>
          </tr>
          
          
          <tr>
            <td width="100" align="right" valign="top">&nbsp;</td>
            <td align="left"><input type="submit" name="Submit" value="修改公告" /></td>
          </tr>
          <tr>
            <td width="100" align="right"></td>
            <td></td>
          </tr>
      </table></td>
  </tr>
</table>
</form>
</body>
</html>
<%
If Request.QueryString("update") = "ok" Then
    Set rs = server.CreateObject("adodb.recordset")
    exec = "select * from gg"
    rs.Open exec, conn, 1, 3
    rs("title") = request.Form("title")
	rs("content") = request.Form("content")
    rs.update
    rs.Close
    response.Write "<script language=javascript>alert('设置成功!');location.href='gg.asp';</script>"
End If
%>
