<!--#include file="sd_mdb.asp"-->
<%
id=request("id")
Set rsinfo=Server.CreateObject("ADODB.RecordSet") 
sql="select * from sd_know where id="&id
rsinfo.Open sql,conn,1,1
id=rsinfo("id")
if rsinfo.eof and rsinfo.bof then
response.Write("<script language=javascript>alert('没有该文章！');this.location.href='index.asp';</script>")
else
%>
<!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><%=rsinfo("sd_title")%>_链接知识库_<%=sd_site%></TITLE>
<meta name="keywords" content="<%=rsinfo("sd_ArtKeyWord")%>,链接知识库,<%=sd_site%>">
<meta name="description" content="<%=rsinfo("sd_ArtDescription")%>，<%=sd_site%>">
<link href="sd_style.css" rel="stylesheet" type="text/css" />
<script src="images/default.js" type="text/javascript"></script>
</HEAD>
<body>
<div id="container" class="wrapper">
<!--#include file="sd_top.asp"-->
  <div id="main" style="padding-top:8px;">
    <div class="right">
      <div class="sidebar2">
        <div class="title"><h3><a href="index.asp"><%=sd_site%></a> > 链接知识库</h3></div>
	<div class="content">
            <h1><%=rsinfo("sd_title")%></h1>
            <div class="times">发布时间: <%= rsinfo("sd_DateAndTime") %>　来源: <%= rsinfo("sd_CopyFrom") %>　作者: <%= rsinfo("sd_Author") %> 【<a href="javascript:doZoom(16)">大</a> <a href="javascript:doZoom(14)">中</a> <a href="javascript:doZoom(12)">小</a>】</div><br>
            <div class="ads"><img src="ad/ads1.gif" border="0" width="468" height="60"></div>
            <div class="article_content" id="_article_content"><%=rsinfo("sd_content") %></div>
	    <div class="a_pages">
<%
set rs=server.createobject("adodb.recordset")
rs.open "select top 1 * from sd_know where id<"&id&" order by id desc",conn,1,3
while not rs.eof
response.write "<li>上一条：<a href='sd_know.asp?id="&rs("id")&"'>"&rs("sd_title")&"</a></li>"&vbCrLf
call listunder(1)
rs.movenext
wend
set rs=server.createobject("adodb.recordset")
rs.open "select top 1 * from sd_know where id>"&id&" order by id asc",conn,1,3
while not rs.eof
response.write "<li>下一条：<a href='sd_know.asp?id="&rs("id")&"'>"&rs("sd_title")&"</a></li>"&vbCrLf
call listunder(1)
rs.movenext
wend
%>

	    </div>
          <div class="clear"></div>
	</div>
        <div class="bottom"></div>
        <div class="clear"></div>
      </div>
    </div>
    <div class="left">
      <div class="sidebar1">
        <div class="title"><span style="width:197px;"><h3>热门链接资讯</h3></span></div>
        <div class="content">
            <ol class="liststyle7">
<%
set rs=server.createobject("adodb.recordset")
rs.open "select top 10 * from sd_article order by sd_hot desc,id desc",conn,1,3
i=1
while not rs.eof
response.write "<li>"&i&". <a href='sd_news.asp?id="&rs("id")&"'>"&rs("sd_title")&"</a></li>"&vbCrLf
i=i+1
call listunder(1)
rs.movenext
wend
%>
          </ol>
	</div>
        <div class="bottom"><span style="width:210px;"></span></div>
      </div>
      <div class="sidebar1">
        <div class="title"><span style="width:197px;"><h3>热门链接知识</h3></span></div>
        <div class="content">
            <ol class="liststyle7">
<%
set rs=server.createobject("adodb.recordset")
rs.open "select top 10 * from sd_know order by sd_hot desc,id desc",conn,1,3
i=1
while not rs.eof
response.write "<li>"&i&". <a href='sd_know.asp?id="&rs("id")&"'>"&rs("sd_title")&"</a></li>"&vbCrLf
i=i+1
call listunder(1)
rs.movenext
wend
%>
          </ol>
	</div>
        <div class="bottom"><span style="width:210px;"></span></div>
      </div>
    </div>
  </div>
<div id="footer"><!--#include file="sd_foot.asp"--></div>
</div>
<% 
end if
rsinfo.close
set rsinfo=nothing
%>
</body>
</html>    