<!--#include file="Inc/syscode.asp"-->
<!--#include file="top.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()%>
<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 bgcolor="#FFFFFF" width="762" height="2040" valign="top" border="0" align="center" cellspacing="0" > 
<tr> <td  bgcolor="#FFFFFF" width="35" rowspan="2"  background="images/bg1.gif">&nbsp;</td><td  bgcolor="#FFFFFF"  width="194" height="1892" align="center" valign="top"> 
<TABLE  bgcolor="#FFFFFF" 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 bgcolor="#FFFFFF"  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="logo/" target="_blank">相关业务</a>　<a href="me1/" target="_blank">本站简介</a> 
<br> 　
业务联系:web@3niao.com <br> 　<a href="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,25,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=400 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" border="0" usemap="#Map"><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"><br>
              <a href="http://www.cn-media.com" target="_blank"><img src="http://www.cn-media.com/logo.gif" alt="媒体中国" border="0"></a><br>
              <br>
              <a href="http://www.cn-media.com" target="_blank"><img src="http://www.cn-media.com/2004.gif" alt="媒体中国" border="0"></a><br> 
<br> <a href="gbooks/?action=registration&user=admin" target="_blank">免费留言本</a><br> 
<a href="count2/reg.asp" target="_blank">免费统计器</a><br> 
<a href="count1/" target="_blank">免费计数器</a><br> 　<a href="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.cn-media.com/ad_web/ad.asp?i=23></script>
</td></tr> <tr> <td background="Skin\1/title_main.gif">　　　[<a href="news" target="_blank">新闻中心</a>] 
| <a href="news/china.asp" target="_blank">国内新闻</a> |<a href="news/world.asp"> 
国际新闻</a> | <a href="news/ent.asp" target="_blank">娱乐新闻</a> 
| <a href="news/society.asp">社会新闻</a> | <a href="news/finance.asp" target="_blank">财经新闻</a>| 
　<a href="http://www.cn-media.com" target="_blank">more...</a></td>
</tr> <tr> 
<td><div align="center"> <table width="522" height="20" border="0" align="center" cellspacing="0"> 
<tr> <TD ROWSPAN="2"><script src="http://www.cn-media.com/images.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 7 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="rm/1.ram"><img src="images/img3.jpg" width="120" height="80" border="0"></a> 
<a href="rm/11.ram"><img src="images/img4.jpg" width="120" height="80" border="0"></a> 
<a href="rm/11.ram"><img src="images/img5.jpg" width="120" height="80" border="0"></a> 
<a href="rm/2.ram"><img src="images/img6.jpg" width="120" height="80" 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="download/" target="_blank">morm...</a>　　　　　设计资源库下载　　　　　　　　<a href="../v2/down1/" target="_blank">morm...</a>　</td></tr> 
<tr> <td valign="top" HEIGHT="148"><table width="524" height="130" border="0" cellspacing="0" class="border"> 
<tr> <td width="259" height="132" VALIGN="TOP"> <iframe frameborder=0 name=tong scrolling=no src="download/news.asp" 
            width=260 HEIGHT=150 >插入层 </iframe> <div align="right"></div></td><td width="0" bgcolor="E0E9F7" HEIGHT="132">&nbsp;</td><td width="257" VALIGN="TOP" HEIGHT="132"><div align="left"> 
<p ALIGN="LEFT"><script language="JavaScript" src="down2/zoom.asp?name=alldown&wz=1"></script><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"> 　　　媒体社区新贴子　　　　　<a href="http://www.cn-media.com/bbs" target="_blank">morm...</a>　　　　　最新加盟评测网站 
                    　　 　　　　<a href="http://www.cn-media.com/pick/join.asp" 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="../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="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/down1/display.asp?id=23" target="_blank"><img src="images/img2.jpg" width="120" height="80" border="0"></a> 
<a href="http://www.3niao.com/home/down1/display.asp?id=23" target="_blank"><img src="images/img1.jpg" width="120" height="80" border="0"></a> 
<a href="http://www.3niao.com/home/down1/display.asp?id=38" target="_blank"><img src="images/s7img2.jpg" width="120" height="80" border="0"></a> 
<a href="http://www.3niao.com/home/down1/display.asp?id=39" target="_blank"><img src="images/s8img2.jpg" width="120" height="80" border="0"></a></p>
</div></td></tr> 
<tr> <td height="18"> <div align="right"><a href="down1" 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">媒体中国 - cn-media.com </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="down1/images/foot.jpg" width="250" height="60"></div></td></tr> 
</table></td></tr> </table>
<%
call CloseConn()
%>
<map name="Map">
  <area shape="rect" coords="60,49,111,65" href="http://www.cn-media.com" target="_blank">
</map>
