<!--#include file="vvbb.asp"-->
<!--#include file="../conn.asp"-->
<!--#include file="../admin.asp"-->
<%Call head()
Call saycarda("商场-添加公告")%>


<%cw=request("cw")
saytkshopg=request("saytkshopgg")

if saytkshopg="1" then
nam=request("nam")
if nam="" then response.redirect "tjgg.asp?saytk="&saytk&"&sid="&sid&"&cw=1&ok="&lx&""
txt=request("txt")
if txt="" then response.redirect "tjgg.asp?saytk="&saytk&"&sid="&sid&"&cw=2&ok="&lx&""
'---开始增加----
set rs=Server.CreateObject("ADODB.Recordset")
rspl="select * from shop_gg"
rs.open rspl,connshop,1,2
rs.addnew
rs("name")=nam
rs("view")=txt
rs.update
'---关闭数据----
rs.close
set rs=nothing
%>
成功增加名为<u>[<%=nam%>]</u>的公告<br/>
添加成功


<%
else%>

公告标题<br/>
<%If saytk>1 then
%>
<form name="form" method="post" action="tjgg.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;saytkshopgg=1">
<%End if%>
<input name='nam' title='公告标题'/><br/>
公告内容<br/>
<input name='txt' title='公告内容'/><br/>
全部不能留空<br/>
<%If saytk>1 Then
response.write "<input type=""submit"" name=""Submit"" value=""确定提交""></form><br/>"
%>
<%else
%>
<anchor>[确定提交]<go href='tjgg.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;saytkshopgg=1' method='post' accept-charset='utf-8'>
<postfield name='nam' value='$(nam)'/>
<postfield name='txt' value='$(txt)'/>
</go></anchor>
<%End If
End if%>
<br/>————————<br/>
<a href="gg.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>">[公告管理]</a><br/>
<!--#include file="bq.asp"-->
报时:<%=time%>
<%Call headsay()%>