<!--#include file="sd_mdb.asp"-->
<!--#include file="sd_checkuser.asp"-->
<!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_submit.js"></script>
</head>
<body>
<script language="javascript">
function change_bg(tr_id,bg)
{
if (bg==0 ){
document.getElementById(tr_id).style.background='#f0f0f0';
}
else{
document.getElementById(tr_id).style.background='#ffffff';
}
}
</script>
<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:8px; border:#FE962F solid 1px;font-size:12px">
    <tr class="tr2">
      <td height="30">置顶</td>
      <td>方式</td>
      <td>链接名称</td>
      <td>价格</td>
      <td>链接分类</td>
      <td>百度权重</td>
      <td>PageRank</td>
      <td>百度收录</td>
      <td>谷歌收录</td>
      <td>Alexa排名</td>
      <td>更新时间</td>
      <td>生成</td>
      <td>更新</td>
      <td>标色</td>
      <td>置顶</td>
      <td>删除</td>
    </tr>
<%
sql="select * from sd_web where sd_userid="&session("sd_userid")&" order by sd_topendtime desc"
rs.open sql,conn,1,1 
if not (rs.eof and rs.bof) then
i=0
do while not rs.eof
%>
    <tr class="tr1" id="tr_<%=i%>" onmouseover="change_bg(this.id,0);" onmouseout="change_bg(this.id,1);" >
      <td height="30"><%if rs("sd_TopEndTime")<now() then%><img src='images/common.gif' width='16' height='18' /><%else%><img src='images/top3.gif' title='置顶到<%=right(year(rs("sd_topendtime")),2)%>-<%=right("0" &month(rs("sd_topendtime")),2)%>-<%=right("0" &day(rs("sd_topendtime")),2)%>' width='20' height='22' /><%end if%></td>
      <td><img src="images/lx<%=rs("sd_jy")%>.gif" alt="" width="17" height="17" /></td>
      <td><a href="<%if sd_sd=1 then%>links/<%=rs("sd_weburl")%>.html<%else%>sd_show.asp?id=<%=rs("sd_id")%><%end if%>" target="_blank" class="wdys<%=rs("sd_rgb")%>"><%=rs("sd_webname")%></a></td>
      <td><%if rs("sd_jg")=0 then%>商议<%else%><%=rs("sd_jg")%>元/月<%end if%></td>
      <td><%set rsc = Server.CreateObject("ADODB.RecordSet")
sql = "select classid,sd_classname from sd_class where classid="&rs("sd_classid")&""
rsc.open sql, conn,1,1
%><%=rsc("sd_classname")%><%rsc.close
set rsc=nothing%></td>
      <td><img src="images/brs/<%=rs("sd_baiduqz")%>.gif" width="35" height="20"></td>
      <td><img src="images/pr/<%=rs("sd_pr")%>.gif" /></td>
      <td class="green"><a href="http://www.baidu.com/s?wd=site:<%=rs("sd_WEBURL")%>" target="_blank" title="点击查看百度详细收录" class="green"><%=rs("sd_baidu")%></a></td>
      <td class="green"><a href="http://www.google.cn/search?hl=zh-CN&q=site%3A<%=rs("sd_WEBURL")%>" target="_blank" title="点击查看GOOGLE详细收录"  class="green"><%=rs("sd_google")%></a></td>
      <td class="greenalexa"><%=rs("sd_alexa")%></td>
      <td><span style='font-size:10px; color:#666666'><%=year(rs("sd_regtime"))%>-<%=right("0" &month(rs("sd_regtime")),2)%>-<%=right("0" &day(rs("sd_regtime")),2)%></span></td>
      <td><a href="sd_html.asp?id=<%=rs("sd_id")%>">生成</a></td>
      <td><a href="sd_modify_link.asp?id=<%=rs("sd_id")%>"><img src="images/my_update.gif" alt="更新链接" width="14" height="14" border="0" /></a>   </td>
      <td><a href="sd_link_color.asp?id=<%=rs("sd_id")%>"><img src="images/my_color.gif" alt="链接标色" width="12" height="12" border="0" /></a></td>
      <td><a href="sd_link_top.asp?id=<%=rs("sd_id")%>"><img src="images/my_top.gif" alt="链接置顶" width="14" height="14" border="0" /></a></td>
      <td><a href="sd_link_del.asp?id=<%=rs("sd_id")%>" onclick="javascript:return confirm('您确定删除 <%=rs("sd_WEBNAME")%> 吗？删除后将不能恢复！')"><img src="images/my_del.gif" alt="删除链接" width="16" height="14" border="0" /></a></td>
    </tr>
<%
rs.movenext
i=i+1
loop
end if
rs.close
%>
  </table>
</div></div>
<!--#include file="sd_foot.asp"-->
</div>
</body>
</html>