<!--#include file="sd_mdb.asp"-->
<!--#include file="sd_checkuser.asp"-->
<%
webid=request.QueryString("id")
if trim(webid)="" then
	Response.Write ("<script language=javascript>alert('无法获得相关ID！');history.back(-1);</script>")
	response.end
end if
%>
<!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">
<script language="javascript" src="images/check_top.js"></script>
</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_id="& webid
rs.open sql,conn,1,1 
if not rs.eof and not rs.bof then
%>
  <table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" style=" border-bottom:#FE962F solid 1px;border-left:#FE962F solid 1px;border-right:#FE962F solid 1px;font-size:14px">
  <form id="submit_form" name="submit_form" method="post" action="sd_link_top_item.asp">
<input name="id" type="hidden" id="id" value="<%=webid%>" />
<input name="bi" type="hidden" id="bi" value="<%=session("sd_Points")%>" />
<input name="linkname" type="hidden" id="linkname" value="<%=rs("sd_webname")%>" />
<input name="top" type="hidden" id="top" value="0" />
    <tr height="32" align="left">
      <td width="119" align="right">我的金币&nbsp;&nbsp;</td>
      <td><b><font color="#FF0000"><%=session("sd_Points")%></font></b> 个　<a href="sd_jinbi2.asp" target="_blank"><u>查看获得金币的三种方法</u></a></td>
      </tr>
    <tr height="32" align="left">
      <td align="right">链接名称&nbsp;&nbsp;</td>
      <td><b><%=rs("sd_webname")%>&nbsp;&nbsp;<%=rs("sd_weburl")%></b></td>
      </tr>
    <tr height="32" align="left">
      <td align="right">置顶天数&nbsp;&nbsp;</td>
      <td><select name="top_day" id="top_day">
          <option value="1" selected="selected">1</option>
          <option value="3">3</option>
          <option value="7">7</option>
          <option value="10">10</option>
          <option value="15">15</option>
          <option value="30">30</option>
          <option value="60">60</option>
          <option value="150">150</option>
          <option value="365">365</option>
        </select>天　(每置顶1天需要20金币)</td>
      </tr>
    <tr height="32" align="left">
      <td>　</td>
      <td align="left"><img src="images/yes.gif" onclick="submit_check();" style="cursor:pointer"/>　<img src="images/back.gif" onclick="history.back();" style="cursor:pointer"/></td>
      </tr>
  </form>
  </table>
<%
else
Response.Write ("<script language=javascript>alert('无法获取相关ID信息！');history.back(-1);</script>")
response.end
end if
rs.close
set rs=nothing
%>
</div></div>
<!--#include file="sd_foot.asp"-->
</div>
</body>
</html>