📄 view-myforums.ascx
字号:
<%@ Control Language="C#" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="CSD" Namespace="CommunityServer.Discussions.Controls" Assembly="CommunityServer.Discussions" %>
<%@ Import Namespace="CommunityServer.Components" %>
<%@ Import Namespace="CommunityServer.Controls" %>
<%@ Import Namespace="CommunityServer.Discussions.Components" %>
<%@ Import Namespace="CommunityServer.Discussions.Controls" %>
<script language="Javascript">
function OpenWindow (target) {
window.open(target, "test", "toolbar=no,scrollbars=yes,resizable=yes,width=300,height=300");
}
</script>
<div class="CommonContentArea">
<div class="CommonBreadCrumbArea"><CSD:BreadCrumb ShowHome="true" runat="server" id="Breadcrumb1" /></div>
<h2 class="CommonTitle"><span id="ForumName" Runat="server" ><CS:ResourceLabel runat="server" ResourceName="ViewMyForumsThreads_Title" /></span></h2>
<div class="CommonContent">
<div class="CommonDescription"><span id="ForumDescription" Runat="server" ><CS:ResourceLabel runat="server" ResourceName="ViewMyForumsThreads_Description" /></span></div>
<div class="CommonFormArea">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td class="CommonFormField">
<CSD:ForumImageButton ButtonType="NewPost" runat="server" id="Forumimagebutton1"/>
</td>
</tr>
</table>
</div>
<CSD:ForumRepeater runat="server" id="Forumrepeater1">
<HeaderTemplate>
<div class="CommonListArea">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<thead>
<tr>
<th class="CommonListHeaderLeftMost ForumThreadImageAndNameHeader" colspan=2><CS:ResourceLabel runat="server" ResourceName="ViewThreads_TitleForums" /></th>
<th class="CommonListHeader ForumThreadTotalThreadsHeader"><CS:ResourceLabel runat="server" ResourceName="ViewThreads_TitleThreads" /></th>
<th class="CommonListHeader ForumThreadTotalPostsHeader"><CS:ResourceLabel runat="server" ResourceName="ViewThreads_TitlePosts" /></th>
<th class="CommonListHeader ForumThreadLastPostHeader"><CS:ResourceLabel runat="server" ResourceName="ViewThreads_TitleLastPost" /></th>
</tr>
</thead>
<tbody>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td class="ForumListCellLeftMostImageOnly ForumThreadImageColumn">
<%# ForumFormatter.StatusIcon( (Forum) Container.DataItem ) %>
</td>
<td class="CommonListCell ForumThreadNameColumn">
<a href="<%# ForumUrls.Instance().Forum( ((Forum) Container.DataItem).SectionID ) %>"><%# DataBinder.Eval(Container.DataItem, "Name") %></a>
<br />
<%# DataBinder.Eval(Container.DataItem, "Description") %><%# ForumFormatter.FormatSubForum( (Forum) Container.DataItem ) %>
</td>
<td class="CommonListCell ForumThreadTotalThreadsColumn">
<%# Formatter.FormatNumber( ((Forum) Container.DataItem).TotalThreads ) %>
</td>
<td class="CommonListCell ForumThreadTotalPostsColumn">
<%# Formatter.FormatNumber( ((Forum) Container.DataItem).TotalPosts ) %>
</td>
<td class="CommonListCell ForumThreadLastPostColumn">
<%# ForumFormatter.FormatLastPost( (Forum) Container.DataItem ) %>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</tbody>
</table>
</div>
</FooterTemplate>
</CSD:ForumRepeater>
<div class="CommonListArea">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<thead>
<tr>
<th class="CommonListHeaderLeftMost ForumMyImageAndNameHeader" colspan=2><CS:ResourceLabel runat="server" ResourceName="ViewThreads_TitleThread" /></th>
<th class="CommonListHeader ForumMyRepliesHeader"><CS:ResourceLabel runat="server" ResourceName="ViewThreads_TitleReplies" /></th>
<th class="CommonListHeader ForumMyViewsHeader"><CS:ResourceLabel runat="server" ResourceName="ViewThreads_TitleViews" /></th>
<th class="CommonListHeader ForumMyLastPostHeader"><CS:ResourceLabel runat="server" ResourceName="ViewThreads_TitleLastPost" /></th>
</tr>
</thead>
<tbody>
<asp:Repeater EnableViewState="False" id="Announcements" runat="server">
<HeaderTemplate>
<tr>
<td colspan="5" class="CommonListCellLeftMost">
<CS:ResourceLabel runat="server" ResourceName="ViewThreads_FaqsAnnouncements" />
</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td class="ForumListCellLeftMostImageOnly ForumMyImageColumn" nowrap="true">
<%# ForumFormatter.StatusIcon( (Thread) Container.DataItem ) %>
<%# Formatter.GetEmotionMarkup( ((Thread) Container.DataItem).EmoticonID ) %>
</td>
<td class="CommonListCell ForumMyNameColumn">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="ForumSubListCellLeftMost">
<a class="ForumNameRead" href="<%# Globals.GetSiteUrls().Post( (int) DataBinder.Eval(Container.DataItem, "PostID") ) %> "><%# Formatter.CheckStringLength(DataBinder.Eval(Container.DataItem, "Subject").ToString(), 65) %></a>
</td>
<td class="ForumSubListCell">
<CSD:RatePost IsReadOnly="true" Thread='<%# (Thread) Container.DataItem %>' runat="server" CssClass="CommonRateControl" ReadOnlyCssClass="CommonRateControlReadOnly" ActiveCssClass="CommonRateControlActive" ImagesBaseUrl="~/Themes/default/images/common/" runat="server" />
</td>
</tr>
<tr>
<td colspan="2" class="ForumSubListCellLeftMost">
<%# Formatter.FormatUsername( (int) DataBinder.Eval(Container.DataItem, "AuthorID"), DataBinder.Eval(Container.DataItem, "Username").ToString() ) %> <%# ForumFormatter.ForumNameInThreadView( (Thread) Container.DataItem ) %>
</td>
</tr>
</table>
</td>
<td class="CommonListCell ForumMyRepliesColumn">
<%# Formatter.FormatNumber( ((Thread) Container.DataItem).Replies ) %>
</td>
<td class="CommonListCell ForumMyViewsColumn">
<%# Formatter.FormatNumber( ((Thread) Container.DataItem).Views ) %>
</td>
<td class="CommonListCell ForumMyLastPostColumn">
<%# ForumFormatter.FormatLastPost( (Thread) Container.DataItem ) %>
<CSD:ThreadPager runat="server" ThreadID='<%# DataBinder.Eval(Container.DataItem, "PostID") %>' Replies='<%# DataBinder.Eval(Container.DataItem, "Replies") %>' />
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
<asp:Repeater EnableViewState="False" id="Threads" runat="server">
<HeaderTemplate>
<tr>
<td colspan="5" class="CommonListCellLeftMost">
<CS:ResourceLabel runat="server" ResourceName="ViewThreads_Posts" />
</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td class="ForumListCellLeftMostImageOnly ForumMyImageColumn">
<%# ForumFormatter.StatusIcon( (Thread) Container.DataItem ) %>
</td>
<td class="CommonListCell ForumMyNameColumn">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td class="ForumSubListCellLeftMost><%# Formatter.GetEmotionMarkup( ((Thread) Container.DataItem).EmoticonID ) %></td>
<td class="ForumSubListCell">
<a class="ForumNameRead" href="<%# Globals.GetSiteUrls().Post( (int) DataBinder.Eval(Container.DataItem, "PostID") ) %> "><%# Formatter.CheckStringLength(DataBinder.Eval(Container.DataItem, "Subject").ToString(), 65) %></a>
</td>
<td class="ForumSubListCell">
<CSD:RatePost IsReadOnly="true" Thread='<%# (Thread) Container.DataItem %>' CssClass="CommonRateControl" ReadOnlyCssClass="CommonRateControlReadOnly" ActiveCssClass="CommonRateControlActive" ImagesBaseUrl="~/Themes/default/images/common/" runat="server" />
<CSD:ThreadStatusImage Thread='<%# (Thread) Container.DataItem %>' runat="server" />
</td>
</tr>
<tr>
<td colspan="3" class="ForumSubListCellLeftMost">
<%# Formatter.FormatUsername( (int) DataBinder.Eval(Container.DataItem, "AuthorID"), DataBinder.Eval(Container.DataItem, "Username").ToString() ) %> <%# ForumFormatter.ForumNameInThreadView( (Thread) Container.DataItem ) %>
</td>
</tr>
</table>
</td>
<td class="CommonListCell ForumMyRepliesColumn">
<%# Formatter.FormatNumber( ((Thread) Container.DataItem).Replies ) %>
</td>
<td class="CommonListCell ForumMyViewsColumn">
<%# Formatter.FormatNumber( ((Thread) Container.DataItem).Views ) %>
</td>
<td class="CommonListCell ForumMyLastPostColumn">
<%# ForumFormatter.FormatLastPost( (Thread) Container.DataItem ) %>
<CSD:ThreadPager runat="server" ThreadID='<%# DataBinder.Eval(Container.DataItem, "PostID") %>' Replies='<%# DataBinder.Eval(Container.DataItem, "Replies") %>' />
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
<span id="NoThreadsToDisplay" runat="server" class="noTopics">
<tr>
<td colspan="5" class="CommonListCellLeftMost">
<CS:ResourceLabel runat="server" ResourceName="ViewThreads_NoTopics" />
</td>
</tr>
</span>
</tbody>
</table>
</div>
<div class="CommonPagingArea">
<CS:CurrentPage Cssclass="columnText" id="CurrentPage" runat="server" />
<CSD:ForumPager id="Pager" runat="server" />
</div>
<div class="CommonFormArea">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td align="left" class="CommonFormField" nowrap="true">
<CS:ResourceLabel runat="server" ResourceName="ViewThreads_SortedBy" />
</td>
<td align="left" class="CommonFormField">
<CSD:ThreadSortDropDownList id="SortThreads" runat="server" />
<CS:ResourceLabel runat="server" ResourceName="ViewThreads_In" />
<CS:SortOrderDropDownList id="SortOrder" runat="server" />
<CS:ResourceLabel runat="server" ResourceName="ViewThreads_OrderFrom" />
</td>
</tr>
<tr>
<td align="left" class="CommonFormField" nowrap="true">
<CS:ResourceLabel runat="server" ResourceName="ViewThreads_FilterByDate" />
</td>
<td align="left" class="CommonFormField">
<CS:DateFilter id="DateFilter" runat="server" AddText="false" AppendLineBreak="false" />
</td>
</tr>
<tr>
<td align="left" class="CommonFormField" nowrap="true">
<CS:ResourceLabel runat="server" ResourceName="ViewThreads_FilterByTopic" />
</td>
<td align="left" class="CommonFormField">
<CSD:HideReadPostsDropDownList runat="server" id="HideReadPosts" />
</td>
</tr>
<tr>
<td align="right" class="CommonFormField" nowrap="true" colspan="2">
<asp:Button id="SortThreadsButton" runat="server" /> <asp:Button id="RememberSettingsButton" runat="server" /> <CSD:MarkAllRead runat="server" id="Markallread1" NAME="Markallread1" />
</td>
</tr>
</table>
</div>
<div class="CommonJumpArea">
<CSD:JumpDropDownList runat="server" />
</div>
</div>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -