<!--#include file="../conn/conn1.asp"-->
<!--#include file="inc.asp"-->
<!--#include file="../config.asp"-->
<!--#include file="../inc/articlechar.inc"-->
<%
if request.form("title")="" then 
response.write "错误提示:请输入影片名称!"
response.end
end if
if request.form("content")="" then 
response.write "错误提示:请输入内容简介!"
response.end
end if
if request.form("typeid")="" then 
response.write "错误提示:请输入公告类别!"
response.end
end if
title=htmlencode2(request.form("title"))
content=htmlencode2(request.form("content"))
typeid=htmlencode2(request.form("typeid"))

set rs=server.createobject("adodb.recordset")
sql="select * from gg where (id is null)" 
rs.open sql,conn,1,3
rs.addnew
rs("title")=title
rs("content")=content
rs("typeid")=typeid
rs("dateandtime")=date()
rs.update
rs.close
%><head>
</head>

<div align="center">
  <table border="1" cellspacing="0" width="50%" bordercolorlight="#333333">
    <tr bgcolor="#660066"> 
      <td width="100%" height="20"> 
        <p align="center"><font color="#FFFFFF">添加公告成功</font> 
      </td>
    </tr>
    <tr>
      <td width="100%"> 
        <p align="left"><br>
          公告标题为：
            <%response.write title%>
        </p>
    <p align="center">是否继续添加？<br>
    <br>
          <a href="addgg.asp"> 是</a>&nbsp;&nbsp; 
          <a href="gg.asp">否</a><br>
    <br>
    </p>
        </td>
    </tr>
    </table>
</div>