<%
on error resume next
bz=request.cookies("bz")
oabusyname=request.cookies("oabusyname")
oabusyuserid=request.cookies("oabusyuserid")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then 
	response.write("<script language=""javascript"">")
	response.write("window.top.location.href='../default.asp';")
	response.write("</script>")
	response.end
end if
%> 


<!--#include file="top.asp"-->
<%
     if request("action")="save" then
      
      title=Trim(Request.form("title"))
      user_name=Trim(Request.form("name"))
           nei=Trim(Request.form("nei"))
      
      

	bad=split(badstr,"|")
	for i=0 to UBound(bad)
		nei=Replace(nei,bad(i),"**")
	next
	title=server.htmlencode(title)
		bad=split(badstr,"|")
	for i=0 to UBound(bad)
		title=Replace(title,bad(i),"**")
	next
	user_name=server.htmlencode(user_name)
		bad=split(badstr,"|")
	for i=0 to UBound(bad)
		user_name=Replace(user_name,bad(i),"**")
	next




rs.close
set rs=nothing

sql="select * from smallpager "
Set rs = Server.CreateObject("ADODB.Recordset")
 rs.Open sql,conn,3,3
     rs.addnew
     rs("user_name")=user_name
     rs("s_title")=title
     rs("adate")=now()
	 rs("hit")=1
     rs.update
	 rs.close
	 set rs=nothing
response.redirect "index.asp" 
end if
   
%><br><br><br><br>
<table width="80%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#64B3D9" >
  <tr>
    <td> <SCRIPT language=JavaScript>
function FrontPage_Form1_Validator(theForm)
{
  if (theForm.title.value == "")
  {
    alert("发言要有中心思想");
    theForm.title.focus();
    return (false);
  }
 

  return (true);
}
</script>
      <form method="POST" action="smallpaper.asp?action=save" name="form1"  onsubmit="return FrontPage_Form1_Validator(this)">
        <br>
        <br>
        <table border="0" width="98%" cellspacing="1" cellpadding="3" bordercolorlight="#FFE8E8" bordercolordark="#FFFFFF" align="center" bgcolor="#205E7B">
          <tr> 
            <td colspan="2" height="25"><b><font color="#FFFFFF">　　发 布 公 告</font></b> 
            </td>
        </tr>
        <tr> 
            <td width="23%" align="center" bgcolor="#92C8E2">发&nbsp;布 人：</td>
            <<td bgcolor="#DAEDF5">  <%=oabusyname%>

            <input type="hidden" name="name" size="20" class="" value='<%=oabusyname%>' style="border:1 solid #000000">
              <font color="#FF0000">*</font> </td>
        </tr>
        <tr> 
            <td width="23%" align="center" bgcolor="#92C8E2">内容：</td>
            <td bgcolor="#92C8E2" width="77%"> 
              <input type="text" name="title" size="50" maxlength="40" >
            （内容限制 <b>20</b> 个汉字以内）<font color="#FF0000">*</font></td>
        </tr>
        
        
        <tr> 
          <td colspan="2" > 
            <p align="center"> 
              <input type="submit" value=" 提交 " name="B1" >
              &nbsp;&nbsp;&nbsp; 
              <input type="reset" value=" 清除 " name="B2" >
          </td>
        </tr>
      </table>
    </form></td>
  </tr>
</table>
<table width="80%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#64B3D9">
  <tr> 
    <td align="center" height="30" class=td1> 
      <%=footer%>
    </td>
  </tr>
</table>
</body>
</html>
