<!--#include file="mdb.asp"-->
<%
if session("User")="" then
	response.write"<SCRIPT language=JavaScript>alert('您尚未登录！');"
	response.write"location.href=""sd_admin_login.asp"";</SCRIPT>"
end if
	webid=request.form("id")
	if trim(webid)="" then
		Response.Write ("<script language=javascript>alert('无法获得相关ID！');history.back(-1);</script>")
		response.end
	end if
	submit_linkurl=request.form("submit_linkurl")
	submit_linkname=request.form("submit_linkname")
	submit_class1=request.form("submit_class1")
	submit_class3=request.form("submit_class3")
	submit_bigclass=request.form("bigclass")
	submit_smallclass=request.form("smallclass")
	submit_price=request.form("submit_price")
	yaoqiu1=request.form("yaoqiu1")
	if yaoqiu1="1" then yaoqiu1=request.form("yaoqiu_baidu")
	yaoqiu2=request.form("yaoqiu2")
	if yaoqiu2="1" then yaoqiu2=request.form("yaoqiu_pr")
	yaoqiu3=request.form("yaoqiu3")
	if yaoqiu3="1" then yaoqiu3=request.form("yaoqiu_snap")
	yaoqiu4=request.form("yaoqiu4")
	if yaoqiu4="1" then yaoqiu4=request.form("yaoqiu_link")
	yaoqiu5=request.form("yaoqiu5")
	if yaoqiu5="1" then yaoqiu5=request.form("yaoqiu_alexa")
	submit_qq=request.form("submit_qq")
	submit_shuoming=request.form("submit_shuoming")
	set rs=server.CreateObject("adodb.recordset")
	sql="select * from [sd_web] where sd_webid="& webid
	rs.open sql,conn,1,3 
	if not (rs.eof and rs.bof) then
		rs("sd_WEBNAME")=submit_linkname
		rs("sd_WEBurl")=submit_linkurl
		rs("sd_Class")=submit_bigclass
		rs("sd_SClass")=submit_smallclass
		rs("sd_Price")=submit_price
		rs("sd_JY")=submit_class1
		rs("sd_JG")=submit_class3
		rs("sd_YQ1")=yaoqiu1
		rs("sd_YQ2")=yaoqiu2
		rs("sd_YQ3")=yaoqiu3
		rs("sd_YQ4")=yaoqiu4
		rs("sd_YQ5")=yaoqiu5
		rs("sd_ABOUT")=submit_shuoming
		rs("sd_QQ")=submit_qq
		rs.update
		rs.close
		set rs=nothing
		Response.Write ("<script language=javascript>alert('友情链接修改成功！');this.location.href='sd_weblist.asp';</script>")
		response.end
	else
		rs.close
		set rs=nothing
		Response.Write ("<script language=javascript>alert('没有找到相关ID记录！');this.location.href='sd_weblist.asp';</script>")
		response.end
	end if
%>