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

<%id=usb(request("id"))
cz=usb(request("cz"))
set rs=Server.CreateObject("ADODB.Recordset")
rspl="select * from shop_gg where id="&id
rs.open rspl,connshop,1,2
if rs.eof then 
response.write("没有该公告!!")
else
if cz="" then
%>
标题:<input name='nam<%=minute(now)%><%=second(now)%>' title='标题' value='<%=usb(rs("name"))%>'/><br/>
内容:<input name='txt<%=minute(now)%><%=second(now)%>' title='标题' value='<%=usb(rs("view"))%>'/><br/>
<anchor>[确定修改]<go href='gg_gl.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;id=<%=id%>&amp;cz=1' method='post' accept-charset='utf-8'>
<postfield name='nam' value='$(nam<%=minute(now)%><%=second(now)%>)'/><postfield name='txt' value='$(txt<%=minute(now)%><%=second(now)%>)'/></go></anchor><br/>
<a href="gg_gl.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;cz=2&amp;id=<%=usb(id)%>">[删除公告]</a>
<%elseif cz="1" then%>
<%
nam=request("nam")
txt=request("txt")
if nam<>"" then rs("name")=nam
if txt<>"" then rs("view")=txt
rs.update
%>
修改成功！
<%elseif cz="2" then%>
您确认删除本条公告？<br/>
<a href="gg_gl.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;cz=3&amp;id=<%=usb(id)%>">是</a>|<a href="gg_gl.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;id=<%=usb(id)%>">否</a>
<%elseif cz="3" then%>
<%
sql="delete from shop_gg Where CStr(id)='" & id & "'"
  connshop.Execute(sql)
%>
成功删除本条公告
<%end if%>
<%end if%>
<br/>————————<br/>
<!--#include file="bq.asp"--><br/>
报时:<%=time%>
<%Call headsay()%>