<!--#include file="Conn.asp"-->
<!--#include file="sd_myfunction.asp"-->
<!--#include file="sd_site.asp"-->
<%
order=request("order")
key=request("key")
%>
<!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="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>IDC资讯 - <%=sd_hostname%> 虚拟主机评测 IDC导航 583344.com</title>
<meta name="keywords" content="<%=sd_keywords%>">
<meta name="description" content="<%=sd_description%>">
<LINK href="sd_style.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2800.1613" name=GENERATOR>
</head>
<BODY>
<div id="container" class="wrapper">
<!--#include file="sd_top_news.asp"-->
  <div id="main">
    <div class="left2">
      <div class="sidebar2">
        <div class="title2"><h3><a href="index.asp"><%=sd_hostname%></a> > <a href="sd_newsclass.asp">IDC资讯</a> > 文章列表</h3></div>
        <div class="content">
          <div id="type">
	    <span class="s_sj">标题</span>
	    <span class="s_cs">日期</span>
	    <span class="s_szd">来源</span>
	  </div>
          <div id="idclistnew">
<%
if order="1" then
sql="select * from sd_article where (InStr(1,LCase(sd_Title),LCase('"&key&"'),0)<>0 or InStr(1,LCase(sd_Artdescription),LCase('"&key&"'),0)<>0) order by id desc"
elseif order="2" then
sql="select * from sd_article where sd_title like '%"&key&"%' order by id desc"
else
sql="select * from sd_article order by id desc"
end if
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.EOF and rs.BOF then
response.write ("<UL><LI style='PADDING-RIGHT: 20px; PADDING-LEFT: 20px; FONT-SIZE: 16px; PADDING-BOTTOM: 20px; PADDING-TOP: 20px'><P>没有您要查找的资讯<STRONG></STRONG>？</P><P style='FONT-SIZE: 12px; PADDING-TOP: 15px'><A href='index.asp'>请尝试换个条件搜索看看，<SPAN style='COLOR: #0099cc'>点此返回首页</SPAN>！</A></P></LI></UL>")
else

myPagesize=10
myPages rs,myPagesize

line=myPagesize
i=0                                  
do while not rs.eof and line>0
i=i+1
%>
          <ul>
              <li class="s_sj">
                <h4><a href="sd_news.asp?id=<%=rs("id")%>" target="_blank" title="<%=rs("sd_title")%>"><%=rs("sd_title")%></a></h4>
              </li>
              <li class="s_cs"><%=rs("sd_DateAndTime")%></li>
              <li class="s_szd"><%=rs("sd_CopyFrom")%></li>
              <li class="wypj" title="<%=rs("sd_ArtDescription")%>"><%=left(rs("sd_ArtDescription"),110)%> ... [<a href="sd_news.asp?id=<%=rs("id")%>" target="_blank">阅读全文</a>]</li>
            </ul>
<%rs.movenext
line=line-1
loop
end if%>
          </div>
          <div class="clear"></div>         
          <div class="pagehead"><%listpages("&key="&key&"&order="&order&"")%>&nbsp;&nbsp;</div>
          <div class="clear"></div>
        </div>
        <div class="bottom"></div>
      </div>
    </div>
    <div class="right2">
      <div class="sidebar1">
        <div class="title"> <span style="width:197px;"><h3>最新资讯</h3></span></div>
        <div class="content">
          <div class="toplist">
            <ol>
<%
set rs=server.createobject("adodb.recordset")
rs.open "select top 10 * from sd_article order by id desc",conn,1,3
while not rs.eof
response.write "<li><a href='sd_news.asp?id="&rs("id")&"'>"&rs("sd_title")&"</a></li>"&vbCrLf
call listunder(1)
rs.movenext
wend
%>
            </ol>
          </div>
        </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">
          <div class="toplist">
            <ol>
<%
set rs=server.createobject("adodb.recordset")
rs.open "select top 10 * from sd_article where sd_hot=1 order by id desc",conn,1,3
while not rs.eof
response.write "<li><a href='sd_news.asp?id="&rs("id")&"'>"&rs("sd_title")&"</a></li>"&vbCrLf
call listunder(1)
rs.movenext
wend
%>
            </ol>
          </div>
        </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">
          <div class="toplist">
            <ol>
<%
set rs=server.createobject("adodb.recordset")
rs.open "select top 10 * from sd_article order by sd_hits desc,id",conn,1,3
while not rs.eof
response.write "<li><a href='sd_news.asp?id="&rs("id")&"'>"&rs("sd_title")&"</a></li>"&vbCrLf
call listunder(1)
rs.movenext
wend
%>
            </ol>
          </div>
        </div>
        <div class="bottom"><span style="width:210px;"></span></div>
      </div>
    </div>
    <div class="clear"></div>
  </div>
<!--#include file="sd_bottom.asp"-->
</div>
</BODY></HTML>
