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

📄 skin-whoisonline.ascx

📁 cnForums是功能强大的论坛。开发语言c#,三层结构。模块设计很值得学习
💻 ASCX
字号:
<%@ Control Language="C#" %>
<%@ Import Namespace="AspNetForums.Components" %>
<!-- ********* Skin-WhoIsOnline.ascx:End ************* //-->          
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td>
			<table class="tableBorder" cellspacing="1" cellpadding="3" width="100%">
				<tr>
					<td width="100%" class="column">
<!--
	EAD 6/3/2004: Disabled the link for now,
	as the formatter is causing a memory leak for this.<%= ResourceManager.GetString("WhoIsOnline_Title") %>
					</td>	
//-->				<a href="<%=Globals.GetSiteUrls().WhoIsOnline%>" target="_blank"><%=ResourceManager.GetString("WhoIsOnline_Title")%></a>
					</td>
				</tr>
				<tr>
					<td class="fh" valign="top">
						<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td width="*" class="txt4" valign="top">
									<table width="100%" cellpadding="0" cellspacing="0">
										<tr>
											<td align="left" width="*" class="txt4">
												&nbsp;<asp:Image id="StatsImg" runat="server" /> <% = ResourceManager.GetString("WhoIsOnline_Inline1") %>
												<asp:Literal ID="GuestUsers" Runat="server"/>
											</td>
											<td colspan="2" nowrap align="right" width="50" class="txt4">
												<span class="userOnlineLink"><%= ResourceManager.GetString("WhoIsOnline_Inline2") %></span>&nbsp;
											</td>
										</tr>
									</table>
									<br />
									<asp:Literal id="UsersOnlineCount" runat="server" />:
<asp:Repeater Id="UsersOnline" Runat="server">
	<ItemTemplate><a title='<%# Formatter.FormatLocation( (string) DataBinder.Eval(Container.DataItem, "LastAction"), false ) %>' 
									 class='<%# ( (bool) DataBinder.Eval(Container.DataItem, "IsAdministrator") ) ? "" : "" %><%#  ( (bool) DataBinder.Eval(Container.DataItem, "IsModerator") && !(bool) DataBinder.Eval(Container.DataItem, "IsAdministrator") ) ? "" : "" %>'
									 href='<%# Globals.GetSiteUrls().UserProfile( (int) DataBinder.Eval(Container.DataItem, "UserID")) %>'><%# DataBinder.Eval(Container.DataItem, "Nickname") %></a></ItemTemplate>
	<SeparatorTemplate>, </SeparatorTemplate>
</asp:Repeater>
								</td>
								<td width="1"><img height="90" width="1" src="<%= Globals.GetSkinPath() + "/images/spacer.gif"%>"></td>													
							</tr>
						</table>				
					</td>
				</tr>
			</table>
		</td>    
    </tr>
</table>			
<!-- ********* Skin-WhoIsOnline.ascx:End ************* //-->              

⌨️ 快捷键说明

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