printarticlepanel.ascx

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

ASCX
37
字号
<%@ Import namespace='Interspire.ArticleLive' %>
<%@ Import namespace='Interspire.ArticleLive.Web' %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="PrintArticlePanel.ascx.cs" Inherits="Interspire.ArticleLive.Web.Templates.SlickFixed.Panels.PrintArticlePanel" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
	<% if (CurrentArticle != null) { %>
				<LINK href='<%# Config.Current.CurrentTemplatePath + "/WindowStyles.css" %>' type="text/css" rel="stylesheet">
			<div class="Header"><b><%# Config.Current.WebSiteName %></b>&nbsp;-
				<%# Config.Current.WebSiteUrl %>
			</div>
			<div class="Container">
				<div class="Heading"><%# CurrentArticle.Title %></div>
				<div class="Url"><%# LinkHelper.CreateArticleLink(CurrentArticle, true) %></div>
				<div class="Box" style="float:right; width: 200px">
				<div class="Title"><%# CurrentArticle.Author.Name %></div>
				<div class="Content"><img	class=Picture 
	  src='<%# (CurrentArticle.Author.Picture == String.Empty) ? Config.Current.CurrentTemplatePath	+ "/Images/NoPicture.gif" :	Config.Current.AuthorPicturesPath +	"/"	+ CurrentArticle.Author.Picture	%>'	
	  ><%# CurrentArticle.Author.Biography %>&nbsp;</div></div>
				<div class="Author"><%# ResourceHelper.GetString("By") %>&nbsp;<%# CurrentArticle.Author.Name %></div>
				<div class="Date"><%# ResourceHelper.GetString("PublishedOn") %>&nbsp;<%# CurrentArticle.StartDate.ToShortDateString() %></td>
				<div>&nbsp;</div>
				<div class="Summary"><%# CurrentArticle.Summary %></div>
				<% if (CurrentArticle.Type != ArticleTypeEnum.SummaryOnly) { %>
				<div class="Content"><asp:Repeater Runat=server ID="Pages" DataSource="<%# CurrentArticle.Pages %>">
							<ItemTemplate>
							<hr>
								<div class="Page">
									<div class="Heading"><%# DataBinder.Eval(Container.DataItem, "Title") %></div>
									<div class="Content"><%# DataBinder.Eval(Container.DataItem, "Content") %></div>
									<div>&nbsp;</td>
									</div>
							</ItemTemplate>
						</asp:Repeater></div>
				<% } %>
			</div>
		<script language="javascript">
	window.print();
		</script>
	<% } %>

⌨️ 快捷键说明

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