<%@Page Language="C#" Inherits="IWMS.Pages.Thread" 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"-->
</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">

</div>
</div>


<table id="middle" width="100%" cellspacing="0" cellpadding="0" style="table-layout:fixed">
<tr><td valign="top">
	<asp:Literal id="ltStepBack" runat="server"/>

	<div class="psFrm mR">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="tm">
		<div class="psR">点击：<asp:Literal id="ltHits" runat="server"/></div>
		<strong>
		<span class="tt">› 查看帖子</span></strong>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<div class="psCont" id="psContainer">
				<asp:Repeater id="myRepeater" runat="server" >
				<ItemTemplate>
					<div id="ps<%#Eval("id")%>">
					<div class="psTitle"><%#Eval("title")%></div>
					<div style="text-align:right">
					<span class="psName<%#Eval("memberid").ToString()=="0" ? " gray\"" : "\" title=\""+Eval("memberid")+"\""%>><%#Eval("membername").ToString().Length==0 ? "游客" : Eval("membername")%></span> 
					<span class="psDate" title="<%#((DateTime)Eval("postDate")).ToString("r")%>"></span>
					<span class="psSort"><%#Eval("sortid")%></span>
					</div>
					<div class="psBody">
					<%#Eval("content")%>
					</div>
					<div class="psFun"><a href="###" onclick="post.disp(this,<%#Eval("id")%>)">回复</a> <a href="###" onclick="post.vote(this,<%#Eval("id")%>,1)">支持</a><span> (<%#Eval("support")%>)</span> <a href="###" onclick="post.vote(this,<%#Eval("id")%>,0)">反对</a><span> (<%#Eval("discourage")%>)</span>
						<span class="psJson" title="{'id':<%#Eval("id")%>,'pid':<%#Eval("pid")%>}"></span>
					</div>
					</div>
				</ItemTemplate>
				</asp:Repeater>
		</div>	
		<asp:Literal id="ltPage" runat="server" />
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>

</td><td width="250" valign="top">
	<div class="<%=GetFrameCss(style.CssWeekHot,"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">
		<asp:DataList id="dlSorts"
			CssClass="sList"
			RepeatLayout="Flow"
			RepeatColumns="1"
			RepeatDirection="Horizontal"
			runat="server">
			<ItemTemplate>
				<a href="<%#GetUrlPosts((int)Eval("id"))%>"<%#(int)Eval("id")==sid ? " class='sOpen'" : ""%>><%#Eval("name")%></a>
			</ItemTemplate>
		</asp:DataList>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	
	<div class="<%=GetFrameCss(style.CssWeekHot,"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">
		<%=TopPosts(id, "reply", false, 8, 7, 34)%>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
</td></tr>
</table>
<script type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="inc/post.js"></script>

<script type="text/javascript">
post.maxLength=<%=config.PostMaxLength%>;
post.rewriteExt="<%=config.UrlRewrite?config.UrlRewriteExt:""%>";
post.userOnly=<%=config.PostMemberOnly.ToString().ToLower()%>;
iwms.setTimeDiff("<%=DateTime.Now.ToString("r")%>");
iwms.vCode="<%=config.IwmsVcode%>";
</script>
<!--#include file="foot.inc" -->
</body>
</html>