sitemenupanel.ascx

来自「Portal C# Article Live」· ASCX 代码 · 共 37 行

ASCX
37
字号
<%@ Import namespace="Interspire.ArticleLive.Web" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="SiteMenuPanel.ascx.cs" Inherits="Interspire.ArticleLive.Web.Templates.BrightLightFixed.Panels.SiteMenuPanel" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Import namespace="Interspire.ArticleLive" %>
<%@ Import namespace="Interspire.ArticleLive.Web.Security" %>
<TABLE class="Panel SiteMenuPanel" id="Table2">
	<TBODY>
		<TR>
			<TD class="Heading"><%= ResourceHelper.GetString("SiteMenu") %></TD>
		</TR>
		<TR>
			<TD class="Content">
							<div>
					<img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_Blogs.gif" align=absmiddle>&nbsp;<A href="<%= Config.Current.BlogsPagePath %>"><%= ResourceHelper.GetString("ViewBlogs") %></A>
				</div>
				<div><img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_Authors.gif" align=absMiddle>&nbsp;<A href='<%= Config.Current.AuthorsPagePath %>?a=ViewAuthors'><%= ResourceHelper.GetString("ViewAuthors") %></A></div>
				<% if (Config.Current.EnableAuthorRegistration && !Request.IsAuthenticated){ %>
				<div><img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_Author.gif" align=absMiddle>&nbsp;<A href='<%= Config.Current.AuthorsPagePath %>?a=Register'><%= ResourceHelper.GetString("BecomeAnAuthor") %></A></div><% } %>
				<% if (Config.Current.EnableAuthorLogin){ %>
				<% if (!Request.IsAuthenticated) { %>
				<div><img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_Login.gif" align=absMiddle>&nbsp;<A href='<%= Config.Current.AuthorsPagePath %>?a=LogIn'><%= ResourceHelper.GetString("AuthorLogin") %></A></div><% } else { %>
				<div>
					<img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_Login.gif" align=absMiddle>&nbsp;<A href="<%= Config.Current.AuthorsPagePath %>?a=LogOut"><%= ResourceHelper.GetString("Logout") %></A> (<%= ((Identity)Page.User.Identity).Username %>)
				</div>
				<% } %><% } %>
				<% if (Request.IsAuthenticated && Authorisation.UserHasPermission(UserPermissionsEnum.SubmitArticle | UserPermissionsEnum.CreateContent)) { %>
				<div>
					<img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_Article.gif" align=absMiddle>&nbsp;<A href="<%= Config.Current.ArticlesPagePath %>?a=SubmitArticle"><%= ResourceHelper.GetString("SubmitArticle") %></A>
				</div>
				<div>
					<img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_MyArticles.gif" align=absMiddle>&nbsp;<A href="<%= Config.Current.AuthorsPagePath %>?a=ViewAccount"><%= ResourceHelper.GetString("MyArticles") %></A>
				</div>
				<% } %>
			</TD>
		</TR>
	</TBODY>
</TABLE>

⌨️ 快捷键说明

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