⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 skin-statistics.ascx

📁 cnForums是功能强大的论坛。开发语言c#,三层结构。模块设计很值得学习
💻 ASCX
字号:
<%@ Control Language="C#" %>
<%@ Import Namespace="AspNetForums.Components" %>
<!-- ********* Skin-Statistics.ascx:Start ************* //-->
<script runat="server">
	int i = 1;
</script>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td width="*" alignt="top" style="padding-right: 12px;">
			<table class="tableBorder" cellspacing="1" cellpadding="3" width="100%">
				<tr>
					<td colspan="2" class="column"><%= ResourceManager.GetString("SearchView_Title") %></td>
				</tr>
				<tr>
					<td class="fh" valign="top">
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td class="fh" valign="top" width="*">
									&nbsp;<asp:Image id="StatsImg" runat="server" />
									<b><asp:label id="TotalUsers" runat="server" />&nbsp;</b><%= ResourceManager.GetString("SearchView_Inline1") %>
									<b><asp:label id="TotalThreads" runat="server" />&nbsp;</b><%= ResourceManager.GetString("SearchView_Inline2") %>
									<b><asp:label id="TotalPosts" runat="server" />&nbsp;</b><%= ResourceManager.GetString("SearchView_Inline3") %>
									<br />
									<br />
									<%= ResourceManager.GetString("SearchView_Inline4") %>
									<b><asp:label id="NewThreadsInPast24Hours" runat="server" /></b>&nbsp;<%= ResourceManager.GetString("SearchView_Inline5") %>
									<b><asp:label id="NewPostsInPast24Hours" runat="server" /></b>&nbsp;<%= ResourceManager.GetString("SearchView_Inline6") %>
									<b><asp:label id="NewUsersInPast24Hours" runat="server" /></b>&nbsp;<% = ResourceManager.GetString("SearchView_Inline7") %>.
									<br />
									<br />
									<%= ResourceManager.GetString("SearchView_Past3days") %> 
									<%= ResourceManager.GetString("SearchView_Inline8") %>&quot;<asp:hyperlink id="MostViewedThread" runat="server" />&quot;.
									<%= ResourceManager.GetString("SearchView_Inline10") %>&quot;<asp:hyperlink id="MostReadThread" runat="server" />&quot;.						
									<%= ResourceManager.GetString("SearchView_Inline9") %>&quot;<asp:hyperlink id="MostActiveThread" runat="server" />&quot;.
									<br />
									<br />					
									<%= ResourceManager.GetString("SearchView_Inline12") %>&nbsp;<b><asp:hyperlink id="NewestUser" runat="server" /></b>.
									<asp:Panel ID="BirthdaysPanel" Runat="server">
									<br />
									<asp:Image ID="imgHappyBirthday" runat="server" ImageAlign="AbsMiddle"/>
									<%= ResourceManager.GetString("SearchView_Birthdays") %>&nbsp;
									<asp:Repeater id="Birthdays" runat="server">
										<ItemTemplate>
											<a 
												title="<%# ( (bool) DataBinder.Eval(Container.DataItem, "IsOnline") ? DataBinder.Eval(Container.DataItem, "Nickname") + ResourceManager.GetString("User_UserOnlineStatus_isOnline") + Formatter.FormatDate( (DateTime) DataBinder.Eval(Container.DataItem, "LastActivity"), true ) : DataBinder.Eval(Container.DataItem, "Nickname") + ResourceManager.GetString("User_UserOnlineStatus_isNotOnline") + Formatter.FormatDate( (DateTime) DataBinder.Eval(Container.DataItem, "LastActivity"), true ) ) %>" 
												href="<%# Globals.GetSiteUrls().UserProfile( (int) DataBinder.Eval(Container.DataItem, "UserID") ) %>">
												<%# DataBinder.Eval(Container.DataItem, "Nickname") %>
											</a>
										</ItemTemplate>
										<SeparatorTemplate>, </SeparatorTemplate>
									</asp:Repeater>
									</asp:Panel>
									
								</td>
								<td width="1"><img height="150" width="1" src="<%= Globals.GetSkinPath() + "/images/spacer.gif"%>"></td>													
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
		<td width="200" valign="top">
			<table class="tableBorder" cellspacing="1" cellpadding="3" width="100%">
				<tr>
					<td class="column" nowrap><%= ResourceManager.GetString("SearchView_Inline11") %></td>
				</tr>
				<tr>
					<td class="fh" valign="top">
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td width="*" valign="top">
									<table width="100%" cellpadding="0" cellspacing="0">
<asp:Repeater id="TopUsers" runat="server">
	<ItemTemplate>
										<tr>
											<td class="fh2" align="center">
												<%# (i++).ToString() %>)
											</td>
											<td class="fh2" align="left" nowrap>
												<a 
													title="<%# ( (bool) DataBinder.Eval(Container.DataItem, "IsOnline") ? DataBinder.Eval(Container.DataItem, "Nickname") + ResourceManager.GetString("User_UserOnlineStatus_isOnline") + Formatter.FormatDate( (DateTime) DataBinder.Eval(Container.DataItem, "LastActivity"), true ) : DataBinder.Eval(Container.DataItem, "Nickname") + ResourceManager.GetString("User_UserOnlineStatus_isNotOnline") + Formatter.FormatDate( (DateTime) DataBinder.Eval(Container.DataItem, "LastActivity"), true ) ) %>" 
													href="<%# Globals.GetSiteUrls().UserProfile( (int) DataBinder.Eval(Container.DataItem, "UserID") ) %>">
													<%# DataBinder.Eval(Container.DataItem, "Nickname") %>
												</a>
												(<%# ((int)DataBinder.Eval(Container.DataItem, "TotalPosts")).ToString("n0") %>)
											</td>
										</tr>
	</ItemTemplate>
</asp:Repeater>
									</table>
								</td>
								<td width="1"><img height="150" width="1" src="<%= Globals.GetSkinPath() + "/images/spacer.gif"%>"></td>													
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
    </tr>
</table>			
<!-- ********* Skin-Statistics.ascx:End ************* //-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -