<%@ Control Language="C#" %>
<%@ Register TagPrefix="CSD" Namespace="CommunityServer.Discussions.Controls" Assembly="CommunityServer.Discussions" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Import Namespace="CommunityServer.Discussions.Controls" %>
<%@ Import Namespace="CommunityServer.Discussions.Components" %>
<%@ Import Namespace="CommunityServer.Components" %>
<%@ Import Namespace="CommunityServer.Controls" %>
<%@ Import Namespace="CommunityServer" %>

<div class="CommonContentArea">
	<div class="CommonBreadCrumbArea"><CSD:BreadCrumb ShowHome="true" runat="server" id="Breadcrumb3"/></div>
	<CS:AdPart runat = "Server" contentname="StandardTop" ID="Adpart1">
	    <CS:Ads Zone="StandardTop" runat="server" id="Ads1" />
	</CS:AdPart>
	<h2 class="CommonTitle"><asp:Label ID="ForumName" Runat="server" /></h2>
	<div class="CommonContent">
		<div class="CommonDescription"><asp:Label CssClass="h2Desc" id="ThreadStats" Runat="server" /></div>
		
		<div class="CommonFormArea">
		<table cellpadding="0" cellspacing="0" border="0" width="100%">
			<tr>
				<td colspan="2" align="right" class="CommonFormField">
					<asp:PlaceHolder runat="server" id="PagingArea2">
						<div class="CommonPagingArea" align="right">
							<CS:CurrentPage id="CurrentPage2" runat="server" Cssclass="columnText"></CS:CurrentPage>
							&nbsp;
							<CSD:ForumPager id="Pager2" runat="server"></CSD:ForumPager>
						</div>
					</asp:PlaceHolder>
				</td>
			</tr>
			<tr>
				<td align="left" class="CommonFormField">
					<CSD:RatePost id="RateThread" runat="server" visible="false" CssClass="ForumThreadRateControl" ReadOnlyCssClass="ForumThreadRateControlReadOnly" ActiveCssClass="ForumThreadRateControlActive" ImagesBaseUrl="~/Themes/default/images/common/" />
					<CS:ThreadSubscribeLinkButton runat="server" id="TrackingButton" UseImages="true" TrackingResourceName="PostFlatView_EnableThreadTrackingOn" NotTrackingResourceName="PostFlatView_EnableThreadTrackingOff" />
				</td>
				<td align="right" class="CommonFormField">
					<CS:ResourceLabel runat="server" ResourceName="PostView_SortPostsLabel" id="Resourcelabel1"/>
					<CS:PostsSortDropDownList runat="server" id="SortOrder" AutoPostBack="True" />
					<CSD:ForumImageButton ButtonType="PreviousTopic" id="PrevThread" runat="server" />
				</td>
				
			</tr>
		</table>
		</div>
		<asp:Repeater id="PostRepeater" Runat="server">
			<HeaderTemplate>
				<ul class="ForumPostList">
			</HeaderTemplate>
			<ItemTemplate>
				<li>
				<div class="ForumPostArea" >
					<h4 class="ForumPostHeader">
						<table cellpadding="0" cellspacing="0" border="0" width="100%">
							<tr valign="middle">
								<td align="left">
									<h4 class="ForumPostTitle">
										<CS:ThemedImage runat="server" border="0" ImageUrl="/images/icon_post_show.gif" id="Themedimage1" />
										<asp:Literal runat="server" id="Emoticon" />
										<asp:Literal runat="server" id="Subject" />
									</h4>
								</td>
								<td align="right">
									<a runat="server" id="PostAnchor"></a>&nbsp;<%# Formatter.FormatAgoDate (((ForumPost) Container.DataItem).PostDate) %></td>
								</td>
							</tr>
						</table>
					</h4>
					<div class="ForumPostBodyArea">
						<div class="ForumPostManagementArea">
							<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td rowspan="2" valign="top">
									<div class="ForumPostUserAvatar"><CS:UserAvatar runat="server" Border="0" PadImage="False" id="Avatar" /></div>
								</td>				
								<td width="70%">
									<div class="ForumPostUserName">
										<asp:Literal runat="server" id="Username" />
									</div>
								</td>
								<td align="right" rowspan="2" valign="top" width="30%">
									<div class="ForumPostRoleIcons">
										<CS:RoleIcons runat="server" id="RoleIcon" EnablePadding="false" />
									</div>
									<div class="ForumPostThreadStatus">
										<CS:ResourceControl runat="server" ResourceName="PostView_ThreadStatusLabel" id="ThreadStatusLabel"/> <CSD:StatusDropDownList runat="server" id="ThreadStatus" />
									</div>
								</td>
							</tr>
							<tr valign="bottom">
							<td>
								<ul class="ForumPostUserPropertyList">
									<li>
										<CS:UserAttribute FormatString="{0}" Attribute="Joined" runat="server" id="JoinedAttribute" />
									</li>
									<li>
										<CS:UserAttribute FormatString="{0}" Attribute="Location" runat="server" id="LocationAttribute" />
									</li>
									<li>
										<CS:UserAttribute FormatString="{0}" Attribute="Posts" runat="server" id="PostsAttribute" />
									</li>
									<li>
										<CS:UserAttribute FormatString="{0}" Attribute="Points" runat="server" id="PointsAttribute" />
									</li>
									<li>
										<CS:PostIcons runat="server" id="PostIcon" />
									</li>
								</ul>
									
								<div class="ForumPostButtons">
									<CSD:ForumImageButton runat="server" ButtonType="Reply" id="ReplyButton" />
									<CSD:ForumImageButton runat="server" ButtonType="Quote" id="QuoteButton" />
									<CSD:ForumImageButton runat="server" ButtonType="Delete" id="DeleteButton" />
									<CSD:ForumImageButton runat="server" ButtonType="Edit" id="EditButton" />
									<CS:FavoritePopupMenu id="FavoritePopupMenu" runat="server" ActiveButtonCssClass="CommonImageTextButtonHighlight" InactiveButtonCssClass="CommonImageTextButton" InnerButtonCssClass="CommonButtonInnerContentDown" />
									<CSD:RatePost id="RatePost" runat="server" visible="false" CssClass="ForumThreadRateControl" ReadOnlyCssClass="ForumThreadRateControlReadOnly" ActiveCssClass="ForumThreadRateControlActive" ImagesBaseUrl="~/Themes/default/images/common/" />
									<CS:ContactPopupMenu id="ContactPopupMenu" runat="server" ActiveButtonCssClass="CommonImageTextButtonHighlight" InactiveButtonCssClass="CommonImageTextButton" InnerButtonCssClass="CommonButtonInnerContentDown" />
									<CSD:ModerationPopupMenu id="ModerationPopupMenu" runat="server" ActiveButtonCssClass="CommonTextButtonHighlight" InactiveButtonCssClass="CommonTextButton" InnerButtonCssClass="CommonButtonInnerContentDown" />
								</div>
							</td>
							</tr>
							</table>
						</div>
						<div class="ForumPostAttachment">
							<CSD:PostAttachment runat="server" id="PostAttachment" />
						</div>
						<table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout: fixed;">
							<tr><td>
							<div class="ForumPostContentArea">
							<div class="ForumPostContentText" id="PostViewWrapper" runat="server">
								<CSD:PostView runat="server" id="PostView" />
							</div>
							</div>
							</td></tr>
						</table>
					</div>
					<div class="ForumPostFooterArea">
						<ul class="ForumPostStatistics">
							<li><asp:Literal runat="server" id="PostPoints" /></li>
							<li><asp:Literal runat="server" id="PostIPAddress" /></li>
							<li><asp:Hyperlink runat="server" id="ReportLink" /></li>
						</ul>
					</div>
				</div>
				</li>
			</ItemTemplate>
			<FooterTemplate>
				</ul>
			</FooterTemplate>
		</asp:Repeater>

		<asp:PlaceHolder runat="server" id="PagingArea">
			<div class="CommonPagingArea" align="right">
				<CS:CurrentPage id="CurrentPage" runat="server" Cssclass="columnText"></CS:CurrentPage>
				&nbsp;
				<CSD:ForumPager id="Pager" runat="server"></CSD:ForumPager>
			</div>
		</asp:PlaceHolder>

		<table cellpadding="0" cellspacing="0" width="100%" border="0">
			<tr>
				<td colspan="2" align="right">
					<div class="CommonWebFeedArea">
						<csd:postrsslink runat="server" id="Postrsslink1" name="Postrsslink1"/>
					</div>
				</td>
			</tr>
		</table>
	</div>		
	<CS:AdPart runat = "Server" contentname="StandardBottom" ID="Adpart2">
	    <CS:Ads Zone="StandardBottom" runat="server" id="Ads3" />
	</CS:AdPart>

</div>
