<!--#include file="sd_mdb.asp"-->
<!--#include file="sd_checkuser.asp"-->
<%
submit_linkname=request.form("submit_linkname")
sd_url=request.form("sd_url")
submit_class1=request.form("submit_class1")
submit_class3=request.form("submit_class3")
sd_classid=request.form("sd_classid")
submit_qz=request.form("submit_qz")
submit_price=request.form("submit_price")
submit_baidu=request.form("submit_baidu")
submit_google=request.form("submit_google")
submit_pr=request.form("submit_pr")
submit_kz=request.form("submit_kz")
submit_alexa=request.form("submit_alexa")
yaoqiu1=request.form("yaoqiu1")
yaoqiu2=request.form("yaoqiu2")
yaoqiu3=request.form("yaoqiu3")
yaoqiu4=request.form("yaoqiu4")
yaoqiu5=request.form("yaoqiu5")
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_weburl='"&sd_url&"'"
rs.open sql,conn,1,3 
if rs.eof and rs.bof then
	rs.addnew
	rs("sd_WEBNAME")=submit_linkname
	rs("sd_WEBUrl")=sd_url
	rs("sd_UserID")=session("sd_userid")
	rs("sd_classid")=sd_classid
	rs("sd_baiduqz")=submit_qz
	rs("sd_jg")=submit_price
	rs("sd_PR")=submit_pr
	rs("sd_kz")=submit_kz
	rs("sd_BAIDU")=submit_baidu
	rs("sd_GOOGLE")=submit_google
	rs("sd_ALEXA")=submit_alexa
	rs("sd_JY")=submit_class1
	rs("sd_lx")=submit_class3
	rs("sd_YQ1")=yaoqiu1
	rs("sd_YQ2")=yaoqiu2
	rs("sd_YQ3")=yaoqiu3
	rs("sd_YQ4")=yaoqiu4
	rs("sd_YQ5")=yaoqiu5
	rs("sd_content")=submit_shuoming
	rs("sd_QQ")=submit_qq
	rs.update
else
	Response.Write ("<script language=javascript>alert('该网址已经存在数据库中！');history.back(-1);</script>")
	response.end
end if
rs.close
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>友情链接→<%=sd_site%>全力打造友情链接交易、交换、出售、购买网站-处理友情链接</title>
<link href="sd_style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="container" class="wrapper">
<!--#include file="sd_top.asp"-->
<div id="main" align="center"><div class="linkcontent">
<%
set rs=server.CreateObject("adodb.recordset")
sql="select count(*) from [sd_web] where sd_UserID="&session("sd_userid")&""
rs.open sql,conn,1,1 
links=rs(0)
rs.close
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="border:#FE962F solid 1px;BACKGROUND: #FED7B0; ">
<tr>
<td width="670" style="padding-left:12px" align="left"><strong><%=session("sd_username")%></strong> &nbsp;　您目前已经发布链接：<font color="#0000FF"><%=links%></font>个。<a href="sd_jinbi.asp" target="_blank">金币是干啥的？</a>　<a href="sd_jinbi2.asp" target="_blank">怎么免费获得金币？</a></td>
<td><a href="sd_user_main.asp"><img style="margin-top:4px;" src="images/linklist.gif" width="120" height="28" border="0"></a> <a href="sd_userinfo.asp"><img src="images/sd_userinfo.gif" width="120" height="28" border="0"></a></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style=" margin-top:5px;border:#FE962F solid 1px;BACKGROUND: #FED7B0; ">
<tr><td style="padding-left:12px;" height="32" align="left"><strong>处理友情链接</strong></td></tr>
</table>
<%
sql="select * from [sd_web] where sd_weburl='"&sd_url&"'"
set mrs = conn.execute(sql)
%>
<meta http-equiv="refresh" content="0.1;url=sd_html.asp?id=<%=mrs("sd_id")%>">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" style="font-size:14px">
    <tr>
      <td align="center"><a href="sd_html.asp?id=<%=mrs("sd_id")%>"><img src="images/secc.gif" border="0" /></a></td>
    </tr>
  </table>
</div></div>
<!--#include file="sd_foot.asp"-->
</div>
</body>
</html>