<%@ Page Language="C#" EnableTheming="false"  Title="Subtext 管理 - 评论选项" MasterPageFile="~/Admin/WebUI/AdminPageTemplate.Master" Codebehind="Comments.aspx.cs" AutoEventWireup="True" Inherits="Subtext.Web.Admin.Pages.Comments" %>

<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="entryEditor" ContentPlaceHolderID="pageContent" runat="server">
    <st:MessagePanel id="Messages" runat="server"></st:MessagePanel>
    <st:AdvancedPanel id="Edit" runat="server" DisplayHeader="true" BodyCssClass="Edit" HeaderCssClass="CollapsibleHeader"
	    HeaderText="评论和Trackbacks" Collapsible="False">

		<fieldset title="feedback experience">
			<legend>评论选项</legend>
			<p class="Valuelabel">
				<asp:CheckBox id="chkEnableComments" runat="server" />
				<label for="chkEnableComments">
					允许评论 
					<st:HelpToolTip id="HelpToolTip1" runat="server" HelpText="If checked, enables comments." ImageUrl="~/images/icons/help-small.png" ImageWidth="16" ImageHeight="16" />
				</label>
			</p>
			
			<p class="Valuelabel">
				<asp:CheckBox id="chkEnableTrackbacks" runat="server"></asp:CheckBox>
				<label for="chkEnableTrackbacks">
					允许TrackBacks
					<st:HelpToolTip id="Helptooltip5" runat="server" HelpText="If checked, enables trackbacks and pingbacks." ImageUrl="~/images/icons/help-small.png" ImageWidth="16" ImageHeight="16" />
				</label>
			</p>
			
			<p class="Valuelabel">
				<asp:CheckBox id="chkCoCommentEnabled" runat="server"></asp:CheckBox>
				<label for="chkCoCommentEnabled">
					允许重复评论
					<st:HelpToolTip id="Helptooltip6" runat="server" HelpText="如果选中, 将允许重复评论." ImageUrl="~/images/icons/help-small.png" ImageHeight="16" />
				</label>
			</p>
		</fieldset>
	    
	    <fieldset title="spamcontrols">
			<legend>垃圾控制</legend>

			<p class="Valuelabel block">
				<label for="txtAkismetAPIKey">
					Akismet API
					<st:HelpToolTip id="hlpAkismet" runat="server" HelpText="Specify your Akismet API Key to use <a href='http://akismet.com/' target='_blank' title='Akismet Comment Spam Filter Service'>Akismet</a> for spam filtering. Leave blank otherwise." ImageUrl="~/images/icons/help-small.png" ImageWidth="16" ImageHeight="16" />
				</label>
				<asp:TextBox id="txtAkismetAPIKey" runat="server" Columns="2" /> (如果使用<a href="http://akismet.com/" title="Akismet" target="_blank">Akismet</a>, 将禁用ReverseDOS)
			</p>

			<p class="Valuelabel block">
				<asp:CheckBox id="chkEnableCommentModeration" runat="server" />
				<label for="chkEnableCommentModeration">
					审核评论
					<st:HelpToolTip id="helpCommentModeration" runat="server" HelpText="If checked, enables comment moderation.  Does nothing if comments are not enabled." ImageUrl="~/images/icons/help-small.png" ImageWidth="16" ImageHeight="16" />
				</label>
			</p>
			<p class="Valuelabel block">
				<asp:CheckBox id="chkEnableCaptcha" runat="server" />
				<label for="chkEnableCaptcha">
					允许上传
					<st:HelpToolTip id="helpCaptcha" runat="server" HelpText="If checked, displays a CAPTCHA control in the comment form." ImageUrl="~/images/icons/help-small.png" ImageWidth="16" ImageHeight="16" />
				</label>
			</p>
			<p class="Valuelabel block">
				<asp:CheckBox id="chkAllowDuplicates" runat="server"></asp:CheckBox>
				<label for="chkAllowDuplicates">
					允许重复评论
					<st:HelpToolTip id="Helptooltip4" runat="server" HelpText="If checked, duplicate comments are allowed.  If unchecked, duplicate comments are not allowed.  Not checking this can help prevent some comment spam, but at the cost that short 搈e too?style comments may be blocked." ImageUrl="~/images/icons/help-small.png" ImageWidth="16" ImageHeight="16" />
				</label>
			</p>
			<p class="Valuelabel">
				<label for="txtCommentDelayIntervalMinutes" class="Block">
					评论间隔时间
					<st:HelpToolTip id="HelpToolTip2" runat="server" HelpText="Enter the number of minutes the delay between comments originating from the same source should be.  This helps prevent spam bombing attacks via automated scripts." ImageUrl="~/images/icons/help-small.png" ImageWidth="16" ImageHeight="16" />
				</label>
				<asp:TextBox id="txtCommentDelayIntervalMinutes" runat="server" Columns="2" />
			</p>
			<p class="Valuelabel">
				<label for="txtDaysTillCommentsClosed" class="Block">
					每天关闭评论时间
					<st:HelpToolTip id="Helptooltip3" runat="server" HelpText="If Comments are enabled, this setting allows you to specify whether comments will be disallowed on a post after a certain number of days.  For example, you may wish to have comments close on an item after 30 days." ImageUrl="~/images/icons/help-small.png" ImageWidth="16" ImageHeight="16" />
					(如果为空就表示从不关闭评论)
				</label>
				<asp:TextBox id="txtDaysTillCommentsClosed" runat="server" Columns="2" />
			</p>
		</fieldset>
		
	    <fieldset title="Recent Comments Display" class="clear">
			<legend>评论显示</legend>
			<p class="Valuelabel">
				<label for="txtNumberOfRecentComments" class="Block">
					最近评论显示字数
					<st:HelpToolTip id="Helptooltip7" runat="server" HelpText="This sets how many recent comments are displayed in the sidebar. This is an integer from 1-99." ImageUrl="~/images/icons/help-small.png" ImageWidth="16" ImageHeight="16" />
				</label>
				<asp:TextBox id="txtNumberOfRecentComments" runat="server" Columns="2" />
			</p>
			<p class="Valuelabel">
				<label for="txtRecentCommentsLength" class="Block">
					最近评论显示长度(字符数)
				<st:HelpToolTip id="Helptooltip8" runat="server" HelpText="This controls how many characters of recent comments are displayed in the sidebar. This is an integer from 1-99." ImageUrl="~/images/icons/help-small.png" ImageWidth="16" ImageHeight="16" />
				</label>
				<asp:TextBox id="txtRecentCommentsLength" runat="server" Columns="2" />
			</p>
	    </fieldset>
	    <div>
			<asp:Button id="lkbPost" runat="server" Text="保存" CssClass="buttonSubmit" />
		</div>
    </st:AdvancedPanel>
</asp:Content>