<!--#include file="Inc/conn.asp"-->
<!--#include file="Inc/Function_Page.asp"-->
<!--#include file="Inc.asp"-->
<%
Dim ID
ID=LaoYRequest(request("id"))
If ID="" then
Call Alert("不正确的ID","Index.asp")
end if
set rsclass=server.createobject("adodb.recordset")
sql="select * from "&tbname&"_Class where id="&id
rsclass.open sql,conn,1,1
if rsclass.eof and rsclass.bof then
Call Alert("不正确的ID","Index.asp")
else
if rsclass("Link")=1 then
Response.Redirect ""&laoy(rsclass("Url"))&""
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="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="<%=rsclass("keyword")%>" />
<meta name="description" content="<%=rsclass("ReadMe")%>" />
<link href="<%=SitePath%>images/css<%=Css%>.css" ID="skin" type=text/css rel=stylesheet>
<link rel="shortcut icon" href="<%=SitePath%>images/myfav.ico" type="image/x-icon" />
<script type="text/javascript" src="<%=SitePath%>inc/main.asp"></script><%If rss=1 then%>
<link rel="alternate" title="订阅<%=rsclass("ClassName")%>(RSS 2.0)" href="http://<%=SiteUrl%><%=SitePath%>Rss/Rss<%=ID%>.xml" type="application/rss+xml" /><%end if%>
<title><%=rsclass("ClassName")%><%=IIF(rsclass("ClassName2")<>"","-"&rsclass("ClassName2")&"-","-")%><%=SiteTitle%></title>
</head>
<body>
<div class="mwall">
<%=Head%>
<%=Menu%><div class="mw">
	<div class="dh">
		<%=search%>您现在的位置：<a href="Index.asp">首页</a> >> <%If rsclass("TopID")>0 then%><a href="<%=IIF(Html=3,"Class_"&rsclass("TopID")&".html","Class.asp?ID="&rsclass("TopID")&"")%>"><%=Classlist(rsclass("TopID"))%></a> >> <%End if%><a href="<%=IIF(Html=3,"Class_"&ID&".html","Class.asp?ID="&ID&"")%>"><%=rsclass("ClassName")%></a> >> 列表
    </div>
	<div id="nw_left">
<%If Mydb("Select Count([ID]) From ["&tbname&"_Class] Where TopID="&ID&"",1)(0)>0 then%>
		<div id="web2l" style="border:0;"><%
		    Sqlpp ="select [ID],[ClassName] from "&tbname&"_Class Where TopID="&ID&" order by num"   
   			Set Rspp=server.CreateObject("adodb.recordset")   
   			rspp.open sqlpp,conn,1,1
			NoI=0
			Do while not Rspp.Eof
			NoI=NoI+1
%>
			<div id="sclass" class="borderall"<%If isEven(NoI)=0 then Response.Write(" style=""margin-left:8px;""") End if%>>
				<h6><span><a href="<%=SitePath%><%=IIF(Html=3,"Class_"&rspp("ID")&".html","Class.asp?ID="&rspp("ID")&"")%>">more...</a></span><a href="<%=SitePath%><%=IIF(Html=3,"Class_"&rspp("ID")&".html","Class.asp?ID="&rspp("ID")&"")%>"><%=rspp("ClassName")%></a><%If rss=1 then%>
				  <a href="http://<%=SiteUrl%><%=SitePath%>Rss/Rss<%=rspp("ID")%>.xml" target="_blank"></a>
				  <%End if%></h6>
				<ul>
					<%Call ShowArticle(rspp("id"),10,5,"·",100,"no","DateAndTime desc,ID desc",0,0)%>
				</ul>
		  </div><%
			Rspp.Movenext   
      		Loop
   			rspp.close
   			set rspp=nothing
%> 
		</div>
<%else%>
		<div id="web2l">
        	<h6><%=rsclass("ClassName")%></h6>
			<div id="content">
            	<ul id="listul">
<%
Set mypage=new xdownpage
mypage.getconn=conn
mypage.getsql="Select ID,Title,DateAndTime,Hits,IsTop,Images,TitleFontColor,Artdescription from "&tbname&"_Article Where ClassID="&rsclass("ID")&" and yn=0 order by IsTop desc,DateAndTime desc"
mypage.pagesize=artlistnum
set rs=mypage.getrs()
for i=1 to mypage.pagesize
    if not rs.eof then 
%>
				<li style="border-bottom:1px dashed #ccc;"><%if rs("Images")<>"" and artlist=0 then%><div style="float:left;margin:5px 5px 0 5px;"><img src="<%=SitePath%><%=SiteUp%>/<%if IsAspJpeg=1 then Response.Write("s90/") End if%><%=rs("Images")%>" style="width:90px;height:90px;"/></div><%end if%><%If rs("IsTop")=1 then Response.Write("<font color=red>[顶]</font>") end if%><a href="<%If html=1 then Response.Write("List.asp?ID="&rs("ID")&"") else:if html=2 then Response.Write("Html/?"&rs("ID")&".html") else:if html=3 then Response.Write("Html/"&rs("ID")&".html") End if%>" target="_blank"><%if rs("TitleFontColor")<>"" then Response.Write("<font style=""color:"&rs("TitleFontColor")&""">"&rs("Title")&"</font>") else Response.Write(""&rs("Title")&"") end if%></a>
				<span style="color:#AAA;font-size:12px;"><%=FormatDate(rs("DateAndTime"),11)%> 点击：<%=rs("Hits")%> 评论:<%=Mydb("Select Count([ID]) From ["&tbname&"_Pl] Where yn=0 And ArticleID="&ID&"",1)(0)%></span></li>
				<%If artlist=0 then%>
                <div class="box"<%if rs("Images")<>"" then Response.Write(" style=""height:65px;""") end if%>><%=left(LoseHtml(rs("Artdescription")),90)%>...</div><%End if%>
<%
        rs.movenext
    else
         exit for
    end if
next
%>
				</ul>
			</div>
<div id="clear"></div>
<div id="page">
	<ul>
    <%=mypage.showpage()%>
    </ul>
</div>
        </div>
<%
rs.close
set rs=nothing
end if
%>
	</div>
	<div id="nw_right">
		<%Call ShowAD(3)%>
        <div id="web2r">
			<h5>本类热门</h5>
			<ul id="list10">
            	<%Call ShowArticle(ID,10,5,"·",100,"no","Hits desc,ID desc",0,0)%>
            </ul>
  		</div>
        <div id="web2r">
			<h5>图片推荐</h5>
			<ul class="topimg">
                <%Call ShowImgArticle(ID,4,20,"no","DateAndTime desc,ID desc")%>
            </ul>
  		</div>
	</div>
</div>
<%=Copy%>
<%
rsclass.close
set rsclass=nothing
end if%></div>
</body>
</html>