<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<%
shjiaid=request.querystring("shjiaid")
if trim(request("linkname"))="" then
response.write("<script>alert('对不起，网站名称不能为空！');history.back()</script>")
response.end
end if
if trim(request("url"))="" then
response.write("<script>alert('对不起，链接地址不能为空！');history.back()</script>")
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from shop_shjialink where shjiaid="&shjiaid
rs.open sql,conn,1,3
rs.addnew
rs("linkname")=trim(request("linkname"))
rs("logourl")=trim(request("logourl"))
rs("url")=trim(request("url"))
rs("shjiaid")=shjiaid
rs.update
rs.close
response.write("<script>alert('添加成功！');window.location.href='admin_link.asp?id="&shjiaid&"';</script>")
%>