<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
end if
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx14<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if

 dim action,linkid
textid=request.QueryString("id")
action=request.QueryString("action")
select case action
case "add"
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from shop_text",conn,1,3
rs.AddNew
rs("text")=trim(request("text1"))
rs("textys")=trim(request("textys1"))
rs("link")=trim(request("link1"))
rs("tc")=trim(request("tc1"))
rs("linkidorder")=int(request("linkidorder1"))
rs.Update
rs.Close
set rs=nothing
response.Redirect "web_text.asp"
case "edit"
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_text where textid="&textid,conn,1,3
rs("text")=request("text")
rs("textys")=trim(request("textys"))
rs("link")=trim(request("link"))
rs("tc")=trim(request("tc"))
rs("linkidorder")=int(request("linkidorder"))
rs.update
rs.close
response.Redirect "web_text.asp"
set rs=nothing
case "del"
conn.execute "delete from shop_text where textid="&textid
response.Redirect "web_text.asp"

end select

%>