<%@Page Language="C#" Inherits="IWMS.Pages.Default" EnableSessionState="false" EnableViewState="false" %>
<!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" lang="zh">
<head>
<!--#include file="../inc/html_head.inc"-->
<link rel="alternate" type="application/rss+xml" title="<%=htmlTitle%>" href="rssFeed.aspx"/>
</head>
<body>

<!--#include file="../head.inc" -->
<div id="navbar">
<div class="l"></div>
<div class="r"></div>
<div class="m">
	<!--#include file="../inc/navclass.inc"-->
</div>
</div>

<div id="navsub">
<div class="l"></div>
<div class="r"></div>
<div class="m">
<script type="text/javascript">
bRoll.init(<%=GetBulletin("js")%>);
</script>
</div>
</div>

<div id="middle">
<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>
	<div class="<%=GetFrameCss(style.CssHeadline,"mframe")%> mR">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm">
		<div class="moreR">&nbsp;<a href="rssFeed.aspx" target="_blank"><img src="pic/b.gif" class="icoRss" alt="rss订阅"/></a> <a href="wap.aspx" target="_blank"><img src="pic/b.gif" class="icoWap" alt="手机访问"/></a></div>
		<%=GetTitlePic(style.PicHeadline,"头条新闻")%>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<table width="100%">
		<tr valign="top"><td width="300">
			<script type="text/javascript">
			imgSlide.init(280,210,<%=ImgHeadline(4,"js",22,2,false,false)%>,33);
			</script>
			<div class="<%=GetFrameCss(style.CssDayHot,"lframe")%>" style="margin:3px 10px;clear:both;width:280px;">
			<div class="tl"></div>
			<div class="tr"></div>
			<div class="tm">
				<%=GetTitlePic(style.PicDayHot,"今日热门")%>
			</div>
			<div class="wrapper">
			<div class="ml"></div>
			<div class="mr"></div>
			<div class="mm">
				<%=TopList("dayhot",5,33,false,false,false,false,false)%>
			</div>
			</div>
			<div class="bl"></div>
			<div class="br"></div>
			<div class="bm"></div>
			</div>
		</td><td>
			<%=Headline(14,45,false,false,false,1,true)%>
		</td></tr>
		</table>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
</td><td width="250">
	<div class="<%=GetFrameCss(style.CssWeekHot,"lframe")%>">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm">
		<%=GetTitlePic(style.PicWeekHot,"本周热门")%>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<%=TopList("weekhot",12,34,false,false,false,false,false)%>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>

	<div class="lframe">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm">
		<span class="tt">网站搜索</span>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<form method="get" action="search.aspx" style="text-align:center">
			搜索：
			<input type="text" name="keyword" class="inputbg" size="20"/>
			<div style="padding:5px">
			<%if(config.SearchCol.IndexOf("title")!=-1){%><input type="radio" name="where" value="title" checked="checked"/>标题<%}%>
			<%if(config.SearchCol.IndexOf("content")!=-1){%><input type="radio" name="where" value="content"/>内容<%}%>
			<%if(config.SearchCol.IndexOf("author")!=-1){%><input type="radio" name="where" value="author"/>作者<%}%>
			　<button type="submit">搜索</button>
			</div>
		</form>
		<div class="hr"></div>
		<%=HotTags(10,"num")%>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	
</td></tr>
</table>

<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top"><td>
	<table cellspacing="0" cellpadding="0" width="100%">
	<tr><td width="330" valign="top" style="padding-right:5px">
		<div class="mframe">
		<div class="tl"></div>
		<div class="tr"></div>
		<div class="tm">
			<%=GetTitlePic(style.PicImgNews,"图片内容")%>
		</div>
		<div class="wrapper">
		<div class="ml"></div>
		<div class="mr"></div>
		<div class="mm">
			<%=ImgTopList(0,10,2,"normal",24,false,false,false)%>
		</div>
		</div>
		<div class="bl"></div>
		<div class="br"></div>
		<div class="bm"></div>
		</div>
	</td><td valign="top">
		<!-- 所有分类的最新新闻 -->
		<%BindAllNew();%>
		<asp:DataList id="dlAll"
			RepeatDirection="Horizontal"
			RepeatColumns="1"
			CellPadding="0"
			CellSpacing="0"
			Width="100%"
			DataKeyField="classid"
			runat="server">
			<ItemStyle Width="50%" />
			<ItemTemplate>
				<div class="<%#GetSortCss((System.Data.DataRowView)Container.DataItem,"mframe")%> mR" style="verticle-align:top;height:100%">
				<div class="tl"></div>
				<div class="tr"></div>
				<div class="tm">
					<div class="moreR">&nbsp;<a href="<%#Eval("cUrl")==DBNull.Value ? GetUrlSort((int)Eval("classid"),Eval("sdir").ToString()) : Eval("cUrl").ToString()+"\" target=\"_blank"%>"><img src="pic/b.gif" class="icoMore" alt="更多"/></a></div>
					<%#GetSortPic((System.Data.DataRowView)Container.DataItem)%>
				</div>
				<div class="wrapper">
				<div class="ml"></div>
				<div class="mr"></div>
				<div class="mm">
					<%#(bool)Eval("isPost") ? TopPosts((int)Eval("classid"),"new",true,config.BindNum,0,33,true,true,true) : TopList((int)Eval("classid"),"sort","new",config.BindNum,33,false,false,true,config.ShowNew,false)%>
				</div>
				</div>
				<div class="bl"></div>
				<div class="br"></div>
				<div class="bm"></div>
				</div>
			</ItemTemplate>
		</asp:DataList>
	</td></tr>
	</table>
	
	<%=config.FootAd%>

</td>
<td width="250">
	<%=config.SideAd%>

	<div class="lframe">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm">
		<span class="tt">Digg排行</span>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<%=TopList("digg",10,30,false,false,false,false,false)%>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	
	<div class="<%=GetFrameCss(style.CssPoll,"lframe")%>">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm">
		<%=GetTitlePic(style.PicPoll,"网站调查")%>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<%=GetPoll()%>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	
	<div class="<%=GetFrameCss(style.CssSiteInfo,"lframe")%>">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm">
		<%=GetTitlePic(style.PicSiteInfo,"网站信息")%>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<div class="conInfo">
		新闻总数： <%=sState.NewsNum%> <span class="gray" title="图片,待审">(<%=sState.ImgNewsNum%>,<%=sState.UncheckNewsNum%>)</span><br/>
		软件总数： <%=sState.SoftNum%> <span class="gray">(<%=sState.UncheckSoftNum%>)</span><br/>
		帖子总数： <%=sState.PostNum%> <span class="gray">(<%=sState.PostRootNum%>)</span><br/>
		评论总数： <%=sState.RemarkNum%> <span class="gray">(<%=sState.UncheckRemarkNum%>)</span><br/>
		注册会员： <%=sState.MemberNum%> <span class="gray">(<%=sState.UncheckMemberNum%>)</span><br/>
		专题总数： <%=sState.TopicNum%>
		</div>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
</td>
</tr>
</table>

<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top"><td>
	<div class="<%=GetFrameCss(style.CssSortNav,"mframe")%> mR">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm">
		<%=GetTitlePic(style.PicSortNav,"内容分类导航")%>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<%=SiteNav()%>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
</td><td width="250">
	<div class="<%=GetFrameCss(style.CssLink,"lframe")%>">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm">
		<%=GetTitlePic(style.PicLink,"友情链接")%>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm" style="text-align:center">
		<div id="oRollV" style="height:50px">
		<%=GetLinks("v",true)%>
		<%=GetLinks("v",false)%>
		</div>
		<a href="javascript:iwms.addLink()">申请链接</a>
		&nbsp; 
		<a href="links.aspx">更多链接...</a>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
</td></tr>
</table>

</div>

<!--#include file="../foot.inc" -->
<script type="text/javascript">linkSize();StartRollV();</script>
</body>
</html>
