<!--#include file="Inc/syscode.asp"-->
<!--#include file="top.asp"-->
<%
'请勿改动下面这三行代码
const ChannelID=2
Const ShowRunTime="Yes"
MaxPerPage=20
strFileName="ShowClass2.asp?ClassID=" & ClassID & "&SpecialID=" & SpecialID
Set rsArticle= Server.CreateObject("ADODB.Recordset")
Set rsPic= Server.CreateObject("ADODB.Recordset")
%>
<html>
<head>
<title><%=strPageTitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<!--#include file="inc/Skin_CSS.asp"-->
<%call MenuJS()%>
<link rel="stylesheet" href="1.css" type="text/css">
</head>
<body <%=Body_Label%> onmousemove='HideMenu()'>

<%
dim sqlRoot,rsRoot,trs,arrClassID,TitleStr
sqlRoot="select C.ClassID,C.ClassName,C.RootID,L.LayoutFileName,L.LayoutID,C.Child,C.ParentPath From ArticleClass C inner join Layout L on C.LayoutID=L.LayoutID where C.ParentID=" & ClassID & " and C.IsElite=True and C.LinkUrl='' and C.BrowsePurview>=" & UserLevel & " order by C.OrderID"
Set rsRoot= Server.CreateObject("ADODB.Recordset")
rsRoot.open sqlRoot,conn,1,1	
%>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="border2" bgcolor="#FFFFFF">
  <tr> 
    <td width="180" align="left" valign="top"  bgcolor="#FFFFFF">
	  <TABLE cellSpacing=0 cellPadding=0 width="100%" border="0"  >
        <TR class="title_left"> 
          <TD align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td bgcolor="#FFFFFF"><IMG SRC="images/4.gif"></td>
              </tr>
            </table></TD>
        </TR>
        <TR> 
          <TD height="80" valign="top" class="tdbg_left"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="5">
              <tr> 
                <td valign="top" bgcolor="#FFFFFF"> 
                  <% call ShowUserLogin() %>
                </td>
              </tr>
            </table></TD>
        </TR>
        <tr class="title_left" align='center'> 
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td bgcolor="#FFFFFF"><IMG SRC="images/10.gif"></td>
              </tr>
            </table></td>
        <tr class='tdbg_left'> 
          <td height="100" valign="top"> 
            <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="5">
              <tr> 
                <td valign="top" bgcolor="#FFFFFF"> 
                  <% call ShowSpecial(10) %>
                </td>
              </tr>
            </table></td>
        </tr>
        <tr class="title_left" align='center'> 
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td bgcolor="#FFFFFF"><IMG SRC="images/9.gif"></td>
              </tr>
            </table></td>
        <tr class='tdbg_left'> 
          <td height="100" valign="top"> 
            <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="5">
              <tr> 
                <td valign="top" bgcolor="#FFFFFF"> 
                  <% call ShowHot(10,16) %>
                </td>
              </tr>
            </table></td>
        </tr>
        <tr class="title_left" align='center'> 
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="title_lefttxt" bgcolor="#FFFFFF"><IMG SRC="images/8.gif"></td>
              </tr>
            </table></td>
        <tr class='tdbg_left'> 
          <td height="115" valign="top"> 
            <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="5">
              <tr> 
                <td valign="top" bgcolor="#FFFFFF"> 
                  <% call ShowElite(10,16) %>
                </td>
              </tr>
            </table></td>
        </tr>
        <tr class="title_left" align='center'> 
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td bgcolor="#FFFFFF"><IMG SRC="images/11.gif"></td>
              </tr>
            </table></td>
        <tr class='tdbg_left'> 
          <td height="135" valign="top"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="5">
              <tr> 
                <td valign="top" bgcolor="#FFFFFF"> 
                  <% call ShowPicArticle(ClassID,2,20,1,1,130,90,200,true,false) %>
                </td>
              </tr>
            </table></td>
        </tr>
      </table>
    </td>
    <td width="5"><br> </td>
    <td width="575" valign="top"> 
      <table width='100%' border='0'cellpadding='0' cellspacing='0'  >
        <tr class="title_main" align='center'> 
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="title_main">
                    <tr> 
                      <td width="40">&nbsp;</td>
                      <td class="title_maintxt">最新热门图片</td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        <tr> 
          <td height="80" valign="top"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="5" class="border">
              <tr> 
                <td valign="top"> 
                  <% call ShowPicArticle(0,4,20,1,4,130,90,200,true,false) %>
                </td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td  height="15" align="center" valign="top"> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="13" Class="tdbg_left2"></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <%
	if rsRoot.bof and rsRoot.eof then
	%>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="title_main">
        <tr> 
          <td width="40">&nbsp;</td>
          <td valign="bottom" class="title_maintxt"><%=ClassName%> 文章列表</td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="5" class="border">
        <tr> 
          <td height="200" valign="top"> 
            <%call ShowArticle(30)%>
          </td>
        </tr>
      </table>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td  height="15" align="center" valign="top"> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="13" Class="tdbg_left2"></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <%
		  if totalput>0 then
		  	call showpage(strFileName,totalput,MaxPerPage,false,true,"篇文章")
		  end if
		  %>
      <br>
      <%	else
		do while not rsRoot.eof
%>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="title_main">
        <tr> 
          <td width="40">&nbsp;</td>
          <td class="title_maintxt"><%
				arrClassID=rsRoot(0)
				response.write "<a href='" & rsRoot(3) & "?ClassID=" & rsRoot(0) & "'>" & rsRoot(1) & "</a>"
				if rsRoot(5)>0 then
					response.write "："
					set trs=conn.execute("select top 4 C.ClassID,C.ClassName,C.RootID,L.LayoutFileName,L.LayoutID From ArticleClass C inner join Layout L on C.LayoutID=L.LayoutID where C.ParentID=" & rsRoot(0) & " and C.IsElite=True and C.LinkUrl='' and C.BrowsePurview>=" & UserLevel & " order by C.OrderID")
					do while not trs.eof
						response.write "&nbsp;&nbsp;<a href='" & trs(3) & "?ClassID=" & trs(0) & "'>" & trs(1) & "</a>"
						trs.movenext
					loop
					set trs=conn.execute("select ClassID from ArticleClass where ParentID=" & rsRoot(0) & " or ParentPath like '%" & rsRoot(6) & "," & rsRoot(0) & ",%' and Child=0 and LinkUrl='' and BrowsePurview>=" & UserLevel)
					do while not trs.eof
						arrClassID=arrClassID & "," & trs(0)
						trs.movenext
					loop
				end if
				%></td>
        </tr>
      </table> 
      <table width="100%" border="0" cellpadding="3" cellspacing="0" class="border">
        <tr> 
          <td height="100" colspan="2" valign="top"> <%
sql="select top 5 A.ArticleID,A.ClassID,L.LayoutID,L.LayoutFileName,A.Title,A.Key,A.Author,A.CopyFrom,A.UpdateTime,A.Editor,A.TitleFontColor,A.TitleFontType,"
sql=sql & "A.Hits,A.OnTop,A.Hot,A.Elite,A.Passed,A.IncludePic,A.Stars,A.PaginationType,A.ReadLevel,A.ReadPoint,A.DefaultPicUrl from Article A"
sql=sql & " inner join Layout L on A.LayoutID=L.LayoutID where A.Deleted=False and A.Passed=True and A.ClassID in (" & arrClassID & ")  order by A.OnTop,A.ArticleID desc"
rsArticle.open sql,conn,1,1
if rsArticle.bof and  rsArticle.eof then
	response.write "<li>没有任何文章</li>"
else
	call ArticleContent(60,True,True,True,2,True,True)
end if
rsArticle.close
				%> </td>
        </tr>
        <tr> 
          <td width="96%" height="20" align="right"> <%response.write "<a href='" & rsRoot(3) & "?ClassID=" & rsRoot(0) & "'>更多&gt;&gt;&gt;</a>"%> </td>
          <td width="4%" align="right">&nbsp;</td>
        </tr>
      </table>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td  height="15" align="center" valign="top"> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="13" Class="tdbg_left2"></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <%
			rsRoot.movenext
		loop
	end if
	rsRoot.close
	set rsRoot=nothing
%>
      <table width='100%' border='0'cellpadding='2' cellspacing='0'>
        <tr class='tdbg_leftall'> 
          <td width="18%"> <div align="center">文章搜索：</div></td>
          <td width="82%"> 
            <% call ShowSearchForm("Search.asp",2) %>
          </td>
        </tr>
      </table> 
      <div align="center">
        <table width="559" height="119" border="0" cellspacing="0">
          <tr> 
            <td Class="tdbg_left2"></td>
          </tr>
          <tr  class="title_main"> 
            <td>　　　热点下载源码 　　　　　　　<a href="http://www.3niao.com/home/download/" target="_blank">morm...</a>　　　　　设计资源库下载　　　　　　　　<a href="http://www.3niao.com/v2/down1/" target="_blank">morm...</a>　</td>
          </tr>
          <tr> 
            <td valign="top" HEIGHT="148"><table width="557" height="130" border="0" cellspacing="0" class="border">
                <tr> 
                  <td width="281" height="132" VALIGN="TOP"> <iframe frameborder=0 name=tong scrolling=no src="http://www.3niao.com/home/download/news.asp" 
            width=260 HEIGHT=150 >插入层 </iframe> <div align="right"></div></td>
                  <td width="1" bgcolor="E0E9F7" HEIGHT="132">&nbsp;</td>
                  <td width="262" VALIGN="TOP" HEIGHT="132"><div align="left"> 
                      <p ALIGN="LEFT"> 
                        <script language="JavaScript" src="http://www.3niao.com/v2/down1/zoom.asp?name=alldown&wz=1"></script>
                        <br>
                      </p>
                    </div></td>
                </tr>
              </table>
              <div align="right"> 
                <table width="554" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr> 
                    <td width="9%" height="13" Class="tdbg_left2"></td>
                    <td width="91%" Class="tdbg_left2"></td>
                  </tr>
                </table>
              </div></td>
          </tr>
          <tr  class="title_main"> 
            <td><div align="left"> 　　　论坛我I设计版新贴　　　　　<a href="http://www.3niao.com/bbs" target="_blank">morm...</a>　　　　　　　　　最新加盟评测网站 
                　　<a href="http://www.3niao.com/home/link/" target="_blank">morm...</a>　 
              </div></td>
          </tr>
          <tr> 
            <td><table width="556" height="110" border="0" cellspacing="0" class="border">
                <tr> 
                  <td width="284" height="110" valign="top"> <div align="center"> 
                      <iframe frameborder=0 name=tong scrolling=no src="http://www.3niao.com/bbs/bbs.asp" 
            width=260 HEIGHT=170 >插入层 </iframe>
                    </div>
                    <div align="right"></div></td>
                  <td width="1" bgcolor="E0E9F7">&nbsp;</td>
                  <td width="265" valign="top"> <div align="left"> 
                      <p> 
                        <iframe frameborder=0 name=tong scrolling=no src="http://www.3niao.com/home/link/new.asp" 
            width=220 HEIGHT=170>插入层 </iframe>
                      </p>
                    </div></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td><table width="557" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="9%" height="13" Class="tdbg_left2"></td>
                  <td width="91%" Class="tdbg_left2"></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td><div align="center"><img src="http://www.3niao.com/banner.gif" alt="广告请联系" border="0"></div></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
          </tr>
        </table>
      </div></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td  height="13" align="center" valign="top"><table width="755" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="13" Class="tdbg_left2"><table width="762" border="0" align="center" cellspacing="0" bgcolor="#FFFFFF">
              <tr> 
                <td height="22"  colspan="2"> <div align="center"> 
                    <table width="760" height="39" border="0" align="center" cellspacing="0">
                      <tr> 
                        <td height="31" background="footbg.gif" bgcolor="#FFFFFF"> 
                          <div align="center">3鸟设社[v1.2<font color="Ff3399">色</font><font color="CC33FF">彩</font><font color="ff3399">连</font><font color="CC33FF">视</font><font color="ff3399">版</font>] 
                            www.3niao.com 11.8</div></td>
                      </tr>
                    </table>
                  </div></td>
              </tr>
              <tr> 
                <td width="396" height="37" background="http://www.3niao.com/v2/down1/images/footgb1.gif"></td>
                <td width="362"><div align="right"><img src="http://www.3niao.com/v2/down1/images/foot.jpg"></div></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>

<% call PopAnnouceWindow(400,300) %>
</body>
</html>
<%
set rsArticle=nothing
set rsPic=nothing
call CloseConn()
%>