<%@ Control Language="C#" EnableTheming="false"  AutoEventWireup="false" Inherits="Subtext.Web.UI.Controls.PostComment" %>
<div id="comments">
<div id="commentform">
<h3>发表评论:</h3>
<div id="comment-fields">
<div class="label">
	<label for="PostComment_ascx_tbTitle">标题:</label>
</div>

<div class="input">
	<asp:TextBox id="tbTitle" runat="server" CssClass="fixed" ValidationGroup="SubtextComment" />
	<br/>
	<asp:RequiredFieldValidator id="vldTitleRequired" runat="server" ErrorMessage="请输入标题" ControlToValidate="tbTitle" Display="Dynamic" EnableClientScript="true" ValidationGroup="SubtextComment" />
</div>

<div class="label">
	<label for="PostComment_ascx_tbName">名称:</label>
</div>
<div class="input">
	<asp:TextBox id="tbName" runat="server" CssClass="fixed" ValidationGroup="SubtextComment" />
	<br/>
	<asp:RequiredFieldValidator id="vldNameRequired" runat="server" ErrorMessage="请输入名称" ControlToValidate="tbName" Display="Dynamic" EnableClientScript="true" ValidationGroup="SubtextComment" />
</div>

<div class="label">
	<label for="PostComment_ascx_tbEmail">邮件地址:</label>
</div>
<div class="input">
	<asp:TextBox id="tbEmail" runat="server" CssClass="fixed" ValidationGroup="SubtextComment" />&nbsp;(将不被显示)
	<br/>
	<asp:RegularExpressionValidator ID="vldEmail" runat="server" ControlToValidate="tbEmail" ValidationExpression="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$" Display="dynamic" ErrorMessage="请输入正确的邮件地址" EnableClientScript="true" ValidationGroup="SubtextComment" />
</div>

<div class="label">
	<label for="PostComment_ascx_tbUrl">网站地址:</label>
</div>
<div class="input">
	<asp:TextBox id="tbUrl" runat="server" CssClass="fixed" ValidationGroup="SubtextComment" /><br />
	<asp:RegularExpressionValidator ID="vldUrl" runat="server" ControlToValidate="tbUrl" ValidationExpression="^(https?://)?([\w-]+\.)+[\w-]+([\w-./?%&=:]*)?$" Display="dynamic" ErrorMessage="请输入正确的网站地址" EnableClientScript="true" ValidationGroup="SubtextComment" />
</div>

<div class="label">
	<label for="PostComment_ascx_tbComment">内容:</label>
</div>
<div class="input">
	<asp:TextBox id="tbComment" runat="server" rows="7" cols="55" CssClass="fixed" TextMode="MultiLine" onkeyup="reloadPreviewDiv();" ValidationGroup="SubtextComment" />
	<asp:RequiredFieldValidator id="vldContentBody" runat="server" ErrorMessage="请输入内容" ControlToValidate="tbComment" ValidationGroup="SubtextComment" />
</div>

<div class="label">&nbsp;</div>
<div class="input">
	<asp:CheckBox id="chkRemember" runat="server" Text="记住?" Visible="True" ValidationGroup="SubtextComment" />
</div>

<div class="clear"></div>

<div class="label">&nbsp;</div>
<div class="input">
	<asp:Button id="btnSubmit" runat="server" Text="发表评论" CssClass="button" ValidationGroup="SubtextComment" /><input type="reset" name="reset" value="重置" class="button" /><asp:Label id="Message" runat="server" ForeColor="Red" />
</div>

<div class="clear"></div>

<div class="label">&nbsp;</div>
<div class="input">
	<h4>评论预览:</h4>
	<div id="commentPreview">&nbsp;</div>
</div>
</div>
</div>
</div>