<%@ Page Language="C#" EnableTheming="false" Title="Subtext 管理 - 导入 导出" MasterPageFile="~/Admin/WebUI/AdminPageTemplate.Master" Codebehind="ImportExport.aspx.cs" AutoEventWireup="false" MaintainScrollPositionOnPostback="true" Inherits="Subtext.Web.Admin.Pages.ImportExportPage" %>

<asp:Content ID="actions" ContentPlaceHolderID="actionsHeading" runat="server"></asp:Content>

<asp:Content ID="categoryListTitle" ContentPlaceHolderID="categoryListHeading" runat="server"></asp:Content>

<asp:Content ID="categoriesLinkListing" ContentPlaceHolderID="categoryListLinks" runat="server"></asp:Content>

<asp:Content ID="importExportContent" ContentPlaceHolderID="pageContent" runat="server">
	<st:MessagePanel id="Messages" runat="server"></st:MessagePanel>
	<st:AdvancedPanel id="Action" runat="server" BodyCssClass="Edit" DisplayHeader="true" HeaderCssClass="CollapsibleHeader"
		HeaderText="导入/导出" Collapsible="False">
		<fieldset>
			<legend>导入/导出BlogML文件</legend>
			<h4>导出到BlogML</h4>
			<p>
                此功能将使用BlogML导出你的博客,它作为一个xml文件.BlogML之后,你将获一个文件链接.
			</p>
			<p>
				<asp:CheckBox id="chkEmbedAttach" runat="server" Text="嵌入附件" Checked="True"></asp:CheckBox>
			</p>
			<p>
				<asp:Button id="btnSave" runat="server" Text="导出" CssClass="buttonSubmit" CausesValidation="false"></asp:Button>&nbsp;&nbsp;
				<asp:HyperLink id="hypBlogMLFile" runat="server" Visible="False">下载BlogML文件</asp:HyperLink>
			</p>
			<hr />
			<!-- BlogML Reader -->
			<h4>导入来自BlogML</h4>
			<p>
				请输入一个现有博客的BlogML内容.<br /><br />
				<label class="block">BlogML文件:
					<asp:RequiredFieldValidator id="blogMLFileRequired" runat="server" ForeColor="#990066" Display="Dynamic" ControlToValidate="importBlogMLFile"
						ErrorMessage="You must select a valid BlogML file to import."></asp:RequiredFieldValidator></label>
			</p>
			<p>
				<asp:FileUpload ID="importBlogMLFile" runat="server" runat="server" />
				<asp:RequiredFieldValidator ID="fileRequired" runat="server" ControlToValidate="importBlogMLFile" ErrorMessage="Please specify a BlogML File" ValidationGroup="importGroup" />
			</p>
			<p>
				<asp:Button id="btnLoad" runat="server" Text="导入" CssClass="buttonSubmit" ValidationGroup="importGroup"></asp:Button>
			</p>
			<hr />
			<h4>清除Blog内容</h4>
			<p>
                这将删除博客的所有内容(日志,文章,评论,Pingbacks,统计,等等… …).
                <br /> 
                如果这样做,所有的内容将永远消失!
			</p>
			<asp:Panel id="uppnlClearContent" runat="server">
			    <st:MessagePanel id="msgpnlClearContent" runat="server"></st:MessagePanel>
				<p>
					<asp:CheckBox id="chkClearContent" runat="server" Text="清除内容" Checked="false" />
				</p>
				<p>
					<asp:Button id="btnClearContent" runat="server" Text="清除" CssClass="buttonSubmit" CausesValidation="false" OnClick="btnClearContent_Click"/>
				</p>
			</asp:Panel>
		</fieldset>
	</st:AdvancedPanel>
</asp:Content>
