<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%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
linkid=request.QueryString("id")
action=request.QueryString("action")
select case action
case "add"
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from shop_imagelinks",conn,1,3
rs.AddNew
rs("imagelinks")=trim(request("imagelinks1"))
rs("linkurl")=trim(request("linkurl1"))
rs("linkidorder")=int(request("linkidorder1"))
rs("weizhi")=int(request("weizhi"))
rs("xianshi")=int(request("xianshi"))
rs.Update
rs.Close
set rs=nothing
response.Redirect "web_imglinks.asp"
case "edit"
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_imagelinks where linkid="&linkid,conn,1,3
rs("imagelinks")=request("imagelinks")
rs("linkurl")=trim(request("linkurl"))
rs("linkidorder")=int(request("linkidorder"))
rs("weizhi")=int(request("weizhi"))
rs("xianshi")=int(request("xianshi"))
rs.update
rs.close
response.Redirect "web_imglinks.asp"
set rs=nothing
case "del"
conn.execute "delete from shop_imagelinks where linkid="&linkid
response.Redirect "web_imglinks.asp"

end select

%>