<!--#include file="Inc/syscode.asp"-->

<%
if LayoutFileName_Index<>"index.asp" then
	call CloseConn()
	response.Redirect LayoutFileName_Index
end if
'请勿改动下面这三行代码
const ChannelID=2
Const ShowRunTime="Yes"
MaxPerPage=20
SkinID=0
PageTitle="首页"
Set rsArticle= Server.CreateObject("ADODB.Recordset")
Set rsPic= Server.CreateObject("ADODB.Recordset")
%>
<html>
<head>
<link rel="stylesheet" href="1.css" type="text/css">
<title><%=strPageTitle & " >> " & PageTitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="inc/Skin_CSS.asp"-->
<%call MenuJS()%>
<script language="JavaScript" type="text/JavaScript">
function refreshMe()
{
    window.refresh;
}
</script>
<style type="text/css">
<!--
body {
	font-size: 12px;
}
td {
	font-size: 12px;
}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" onLoad="javascipt:setTimeout('refreshMe()',1000);" <%=Body_Label%> onmousemove='HideMenu()'>
<table width="762" height="2040" valign="top" border="0" align="center" cellspacing="0" >
  <tr> 
    <td width="35" rowspan="2"  background="images/bg1.gif">&nbsp;</td>
    <td width="194" height="1892" align="center" valign="top"> 
      <TABLE WIDTH=194 BORDER=0 CELLPADDING=0 CELLSPACING=0>
        <TR> 
          <TD COLSPAN=3> <IMG SRC="images/pic1_1.jpg" WIDTH=194 HEIGHT=64 ALT=""></TD>
        </TR>
        <TR> 
          <TD ROWSPAN=14> <IMG SRC="images/pic1_2.jpg" WIDTH=21 HEIGHT=1418 ALT=""></TD>
          <TD width="152" height="147"><div align="center"> 
              <% call ShowUserLogin() %>
            </div></TD>
          <TD ROWSPAN=14> <IMG SRC="images/pic1_4.jpg" WIDTH=21 HEIGHT=1418 ALT=""></TD>
        </TR>
        <TR> 
          <TD> <IMG SRC="images/pic1_5.jpg" WIDTH=152 HEIGHT=80 ALT=""></TD>
        </TR>
        <TR> 
          <TD width="152" height="74"> 　<a href="http://www.3niao.com/home/logo/" target="_blank">相关业务</a>　<a href="http://www.3niao.com/home/me1/" target="_blank">本站简介</a> 
            <br>
            　业务联系:web@3niao.com <br>
            　<a href="http://www.3niao.com/home/gbook/Guest.asp" target="_blank">留言</a> 
          </TD>
        </TR>
        <TR> 
          <TD> <IMG SRC="images/pic1_7.jpg" WIDTH=152 HEIGHT=66 ALT=""></TD>
        </TR>
        <TR> 
          <TD width="152" height="86"> <div align="center"> 
              <% call ShowAnnounce(2,5) %>
            </div></TD>
        </TR>
        <TR> 
          <TD> <IMG SRC="images/pic1_9.jpg" WIDTH=152 HEIGHT=71 ALT=""></TD>
        </TR>
        <TR> 
          <TD width="152" height="193"> <% call ShowTopUser(6) %> </TD>
        </TR>
        <TR> 
          <TD> <IMG SRC="images/pic1_11.jpg" WIDTH=152 HEIGHT=68 ALT=""></TD>
        </TR>
        <TR> 
          <TD width="152" height="168" valign="top"> <% call ShowVote() %> </TD>
        </TR>
        <TR> 
          <TD> <IMG SRC="images/pic1_13.jpg" WIDTH=152 HEIGHT=69 ALT=""></TD>
        </TR>
        <TR> 
          <TD width="152" height="167" valign="top"> <% call ShowHot(8,14) %> </TD>
        </TR>
        <TR> 
          <TD> <IMG SRC="images/pic1_15.jpg" WIDTH=152 HEIGHT=71 ALT=""></TD>
        </TR>
        <TR> 
          <TD width="152" height="145" align="center" valign="top"> <div align="center"> 
              <% call ShowFriendSite(1,10,1,1) %>
              <br>
              <% call ShowFriendSite(2,10,1,3) %>
              <br>
              <a href='FriendSiteReg.asp'> 申请</a>&nbsp;&nbsp;<a href='FriendSite.asp'>更多&gt;&gt;&gt;</a> 
            </div></TD>
        </TR>
        <TR> 
          <TD> <IMG SRC="images/pic1_17.jpg" WIDTH=152 HEIGHT=13 ALT=""></TD>
        </TR>
      </TABLE>
      <TABLE WIDTH=189 BORDER=0 CELLPADDING=0 CELLSPACING=0>
        <TR> 
          <TD COLSPAN=3> <IMG SRC="images/pc_1.gif" WIDTH=190 HEIGHT=61 ALT=""></TD>
        </TR>
        <TR> 
          <TD width="13" ROWSPAN=3 valign="top"> <IMG SRC="images/pc_2.gif" WIDTH=13 HEIGHT=406 ALT=""></TD>
          <TD width="163" height="97" align="center" valign="top"> 
            <div align="right"><br>
              <br>
              <img src="Images/ad.gif" width="149" height="83"><br>
              <br>
            </div></TD>
          <TD width="14" ROWSPAN=3 align="left" valign="top"> <IMG SRC="images/pc_4.gif" WIDTH=12 HEIGHT=400 ALT=""></TD>
        </TR>
        <TR> 
          <TD height="243" valign="top"> 
            <div align="center">QQ联系:8119544<br>
              <img src="http://www.3niao.com/home/logo.gif" alt="本站logo.gif"><br>
              <a href="http://www.3niao.com/home/link/"><br>
              <img src="http://www.3niao.com/home/link/image/1.gif" alt="本站的评测!" border="0"></a><br>
              <br>
              <a href="http://www.3niao.com/home/gbooks/?action=registration&user=admin" target="_blank">免费留言本</a><br>
              <a href="http://www.3niao.com/home/count2/reg.asp" target="_blank">免费统计器</a><br>
              <a href="http://www.3niao.com/home/count1/" target="_blank">免费计数器</a><br>
              　<a href="http://www.3niao.com/home/link" target="_blank">免费网站推广 
              </a> </div></TD>
        </TR>
        <TR> 
          <TD height="51" valign="top"> <IMG SRC="images/pc_5.gif" WIDTH=163 HEIGHT=16 ALT=""></TD>
        </TR>
      </TABLE></td>
    <td width="522" rowspan="2" valign="top"><table border="0" align="center" cellspacing="0">
        <tr> 
          <td height="29">&nbsp; &nbsp; &nbsp; &nbsp; <script language=javascript src=http://www.3niao.com/ad/ads.asp?priceid=2&place=1></script> 
          </td>
        </tr>
        <tr> 
          <td background="Skin\1/title_main.gif">　　　[<a href="http://www.3niao.com/news" target="_blank">新闻中心</a>] 
            | <a href="http://www.3niao.com/news/china.asp" target="_blank">国内新闻</a> 
            |<a href="http://www.3niao.com/news/world.asp"> 国际新闻</a> | <a href="http://www.3niao.com/news/ent.asp" target="_blank">娱乐新闻</a> 
            | <a href="http://www.3niao.com/news/society.asp">社会新闻</a> | <a href="http://www.3niao.com/news/finance.asp" target="_blank">财经新闻</a>| 
            　<a href="http://www.3niao.com/news" target="_blank">more...</a></td>
        </tr>
        <tr> 
          <td><div align="center"> 
              <table width="522" height="20" border="0" align="center" cellspacing="0">
                <tr> 
                  <TD ID="joynews" width="371" VALIGN="TOP" HEIGHT="241" ROWSPAN="2"  style="margin-left: 15"> 
                    　 
                    <SCRIPT SRC="http://www.3niao.com/news/topx.asp"></SCRIPT> 
                  </TD>
                  <TD width="147" ROWSPAN="2" VALIGN="TOP" ID="joynews"  style="margin-left: 15"> 
                    <div align="center" style="border: 1 solid #3D5A83"> 
                      <p><font color="#336699">〖+++本站统计+++〗</font><br>
                        论坛版块9个<br>
                        <% call ShowSiteCount() %>
                        <br>
                        3鸟设社[色彩连视版] </p>
                    </div></TD>
                </tr>
              </table>
            </div></td>
        </tr>
        <tr> 
          <td height="672"> <table width="525" height="634" border="0" align="center" cellspacing="0">
              <tr> 
                <td width="523"><div align="center"> 
                    <table border="0" cellpadding="0" cellspacing="0" width="517">
                      <% 
	dim sqlRoot,rsRoot,trs,arrClassID,TitleStr 
	sqlRoot="select C.ClassID,C.ClassName,C.RootID,L.LayoutFileName,L.LayoutID,C.Child From ArticleClass C inner join Layout L on C.LayoutID=L.LayoutID where C.ParentID=0 and C.IsElite=True and C.LinkUrl='' and C.BrowsePurview>=" & UserLevel & " order by C.RootID" 
	Set rsRoot= Server.CreateObject("ADODB.Recordset") 
	rsRoot.open sqlRoot,conn,1,1 
	if rsRoot.bof and rsRoot.eof then  
		response.Write("还没有任何栏目，请首先添加栏目。") 
	else 
		do while not rsRoot.eof 
%>
                      <tr> 
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td><table width="100%" height="21" border="0" cellpadding="0" cellspacing="0" class="title_main">
                                  <tr> 
                                    <td width="40">&nbsp;</td>
                                    <td width="484" 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,C.LinkUrl 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
						if trs(4)<>"" then
							response.write "&nbsp;&nbsp;<a href='" & trs(4) & "'>" & trs(1) & "</a>"
						else
							response.write "&nbsp;&nbsp;<a href='" & trs(3) & "?ClassID=" & trs(0) & "'>" & trs(1) & "</a>"
						end if
						trs.movenext
					loop
					set trs=conn.execute("select ClassID from ArticleClass where RootID=" & rsRoot(2) & " 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></td>
                            </tr>
                            <tr> 
                              <td><table width="100%" border="0" cellpadding="3" cellspacing="0" class="border">
                                  <tr> 
                                    <td width="134" height="100" align="center" valign="top"> 
                                      <%
sql="select top 1 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 & ") and DefaultPicUrl<>'' order by A.OnTop,A.ArticleID desc"
rsPic.open sql,conn,1,1
if rsPic.bof and  rsPic.eof then
	response.write "<img src='nopic.jpg' width=135 height=100 border=0><br>没有任何图片文章"
else
	strPic=""
	call GetPicArticleTitle(20,135,100)
	response.write strPic
end if
rsPic.close
				%> </td>
                                    <td width="4">&nbsp;</td>
                                    <td width="365" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr valign="top"> 
                                          <td height="100"> <%
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(26,True,True,False,0,False,True)
end if
rsArticle.close
				%> </td>
                                        </tr>
                                        <tr> 
                                          <td align="right"> <%response.write "<a href='" & rsRoot(3) & "?ClassID=" & rsRoot(0) & "'>more...</a>"%> </td>
                                        </tr>
                                      </table></td>
                                  </tr>
                                </table></td>
                            </tr>
                          </table>
                          <table width="523" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td width="457"  height="15" align="center" valign="top"> 
                                <table width="525" 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>
                          </table></td>
                      </tr>
                      <% 
			rsRoot.movenext 
		loop 
	end if 
	rsRoot.close 
	set rsRoot=nothing 
%>
                    </table>
                  </div></td>
              </tr>
              <tr  class="title_main"> 
                <td width="523"> 　　　热点广告影片</td>
              </tr>
              <tr> 
                <td ></td>
              </tr>
              <tr> 
                <td></td>
              </tr>
              <tr> 
                <td valign="top"><table width="524" height="78" border="0" cellspacing="0" class="border">
                    <tr> 
                      <td width="522" height="46"> <div align="center"><br>
                          <a href="http://www.3niao.com/home/rm/1.ram"><img src="http://www.3niao.com/home/images/img3.jpg" border="0"></a> 
                          <a href="http://www.3niao.com/home/rm/11.ram"><img src="http://www.3niao.com/home/images/img4.jpg" border="0"></a> 
                          <a href="http://www.3niao.com/home/rm/11.ram"><img src="http://www.3niao.com/home/images/img5.jpg" border="0"></a> 
                          <a href="http://www.3niao.com/home/rm/2.ram"><img src="http://www.3niao.com/home/images/img6.jpg" border="0"></a></div>
                        <div align="right"><a href="rm" target="_blank">morm...</a></div></td>
                    </tr>
                    <tr> 
                      <td height="2"></td>
                    </tr>
                    <tr> 
                      <td height="18">&nbsp;</td>
                    </tr>
                  </table>
                  <div align="right"></div></td>
              </tr>
              <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="rm" target="_blank">morm...</a>　</td>
              </tr>
              <tr> 
                <td valign="top"><table width="524" height="148" border="0" cellspacing="0" class="border">
                    <tr> 
                      <td width="259" height="148"> <div align="center"> 
                          <iframe frameborder=0 name=tong scrolling=no src="http://www.3niao.com/home/download/news.asp" 
            width=260 HEIGHT=150 >插入层 </iframe>
                        </div>
                        <div align="right"></div></td>
                      <td width="0" bgcolor="E0E9F7">&nbsp;</td>
                      <td width="257"><div align="left"> 
                          <p><a href="http://www.3niao.com/v2/down1/show.asp?id=495" target="_blank"><img src="article_common.gif" width="4" height="6" border="0">100个ASP学习小程序</a><br>
                            <a href="http://www.3niao.com/v2/down1/show.asp?id=482" target="_blank"><img src="article_common.gif" width="4" height="6" border="0"></a><a href="http://www.3niao.com/v2/down1/show.asp?id=494" target="_blank">105个设计英文字体</a><br>
                            <a href="http://www.3niao.com/v2/down1/show.asp?id=482" target="_blank"><img src="article_common.gif" width="4" height="6" border="0"></a><a href="http://www.3niao.com/v2/down1/show.asp?id=493" target="_blank">漂亮经典的图标库</a> 
                            <br>
                            <a href="http://www.3niao.com/v2/down1/show.asp?id=482" target="_blank"><img src="article_common.gif" width="4" height="6" border="0"></a><a href="http://www.3niao.com/v2/down1/show.asp?id=492" target="_blank">网站建设常用细小可爱小图标</a><a href="http://www.3niao.com/v2/down1/show.asp?id=482" target="_blank"><br>
                            <img src="article_common.gif" width="4" height="6" border="0"></a><a href="http://www.3niao.com/v2/down1/show.asp?id=487" target="_blank">动画宝库下载区[1]</a> 
                            <br>
                            <a href="http://www.3niao.com/v2/down1/show.asp?id=482" target="_blank"><img src="article_common.gif" width="4" height="6" border="0"></a><a href="http://www.3niao.com/v2/down1/show.asp?id=485" target="_blank">一千多首MIDI集锦下载</a><br>
                            <a href="http://www.3niao.com/v2/down1/show.asp?id=482" target="_blank"><img src="article_common.gif" width="4" height="6" border="0"></a><a href="http://www.3niao.com/v2/down1/show.asp?id=485">50套网页模版打包下载</a><br>
                            <a href="http://www.3niao.com/v2/down1/show.asp?id=482" target="_blank"><img src="article_common.gif" width="4" height="6" border="0"></a><a href="http://www.3niao.com/v2/down1/show.asp?id=484" target="_blank">小小flash部分原文件 
                            </a><br>
                          </p>
                          </div></td>
                    </tr>
                  </table>
                  <div align="right"></div></td>
              </tr>
              <tr> 
                <td  height="15" align="center" valign="top"> <table width="525" 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  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/download/" target="_blank">morm...</a>　 
                  </div></td>
              </tr>
              <tr> 
                <td><table width="524" height="110" border="0" cellspacing="0" class="border">
                    <tr> 
                      <td width="259" 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="0" bgcolor="E0E9F7">&nbsp;</td>
                      <td width="257" 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  height="15" align="center" valign="top"> <table width="525" 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> </tr>
            </table>
            <table width="527" border="0" cellspacing="0">
              <tr  class="title_main"> 
                <td> 　　　设计图库</td>
              </tr>
              <tr> 
                <td height="126"> <table width="524" height="128" border="0" cellspacing="0" class="border">
                    <tr> 
                      <td height="55"> <div align="center"> </div>
                        <div align="right"></div>
                        <div align="left"> 
                          <p align="center"><a href="http://www.3niao.com/home/img1/display.asp?id=107" target="_blank"><img src="http://www.3niao.com/home/images/img3.jpg" border="0"></a> 
                            <a href="http://www.3niao.com/home/img1/display.asp?id=102" target="_blank"><img src="http://www.3niao.com/home/images/img1.jpg" border="0"></a> 
                            <a href="http://www.3niao.com/home/img1/display.asp?id=98" target="_blank"><img src="http://www.3niao.com/home/images/s7img2.jpg" border="0"></a> 
                            <a href="http://www.3niao.com/home/img1/display.asp?id=57" target="_blank"><img src="http://www.3niao.com/home/images/s8img2.jpg" border="0"></a></p>
                        </div></td>
                    </tr>
                    <tr> 
                      <td height="18"> <div align="right"><a href="images" target="_blank">more... 
                          </a></div></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td><table width="525" 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  class="title_main"> 
                <td> 　　　图文教程</td>
              </tr>
              <tr> 
                <td><table width="524" height="128" border="0" cellspacing="0" class="border">
                    <tr> 
                      <td height="55"> <div align="center"> </div>
                        <div align="right"></div>
                        <div align="left"> 
                          <p align="center"><iframe frameborder=0 name=tong scrolling=no src="1.asp" 
            width=460 HEIGHT=89 >层</iframe> </p>
                        </div></td>
                    </tr>
                    <tr> 
                      <td height="18"> <div align="right"><a href="ShowClass2.asp?ClassID=2" target="_blank">more... 
                          </a></div></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td><table width="525" 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>&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table></td>
    <td width="40" rowspan="2" background="images/bg1.gif">&nbsp;</td>
  </tr>
  <tr> 
    <td align="center" valign="top">&nbsp;</td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td height="71" colspan="4"> 
      <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 10.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>
