<%@ Control Language="C#" EnableTheming="false"  AutoEventWireup="false" Inherits="Subtext.Web.UI.Controls.PostComment" %>
<div class="section" id="comment-reply-form">
    <div id="preview" style="display: none" class="normal-comment">
    </div>
    <div class="comment-box">
        <fieldset id="respond">
            <legend>发表评论</legend>
            <div id="errors"> </div>
            <div class="notes">
                <p>带"<em>*</em>"是必须填写的.</p>
            </div>
            <div class="required clearfix">
                <label for="PostComment.ascx_tbName"><em>*</em>昵称:</label>
                <asp:TextBox ID="tbName" runat="server" CssClass="fixed" />
                <asp:RequiredFieldValidator ID="vldNameRequired" runat="server" ErrorMessage="昵称不能为空!"
                    ControlToValidate="tbName" Display="Dynamic" />
            </div>
            <div class="required clearfix">
                <label for="PostComment.ascx_tbTitle"><em>*</em>标题:</label>
                <asp:TextBox ID="tbTitle" runat="server" CssClass="fixed"></asp:TextBox>
                <asp:RequiredFieldValidator ID="vldTitleRequired" runat="server" ErrorMessage="标题不能为空!"
                    ControlToValidate="tbTitle" Display="Dynamic" EnableClientScript="true" />
            </div>
            <div>
                <small>你也可能想填写自己的<a href="/pages/javascript-error" onclick="toggleCommentForm(); return false;">电子邮件或网站.</a></small>
                <div id="guest_url" class="clearfix" style="display: none;">
                    <label for="PostComment.ascx_tbUrl">你的Blog:</label>
                    <asp:TextBox ID="tbUrl" runat="server" CssClass="fixed" />
                    <asp:RegularExpressionValidator ID="vldUrl" runat="server" ControlToValidate="tbUrl"
                        ValidationExpression="^(https?://)?([\w-]+\.)+[\w-]+([\w-./?%&=:]*)?$" Display="dynamic"
                        ErrorMessage="BLog网址不正确,请重新输入." EnableClientScript="true" />
                </div>
                <div id="guest_email" class="clearfix" style="display: none;">
                    <label for="PostComment.ascx_tbEmail">你的Email:<br />(不会被显示)</label>
                    <asp:TextBox ID="tbEmail" runat="server" CssClass="fixed" />
                  <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="Email不正确,请重新输入."
                        EnableClientScript="true" />
                </div>
            </div>
            <div class="required clearfix">
                <label for="PostComment.ascx_tbComment"><em>*</em>内容:</label>
                <asp:TextBox ID="tbComment" runat="server" Rows="7" cols="55" CssClass="fixed livepreview" TextMode="MultiLine" />
                <br />
                <asp:RequiredFieldValidator ID="Requiredfieldvalidator4" runat="server" ErrorMessage="评论内容不能为空!"
                    ControlToValidate="tbComment" />
            </div>
            <asp:CheckBox ID="chkRemember" runat="server" Text="记住我" Visible="false"
                Checked="true" />
            <div id="frm-btns" class="buttons">
                <asp:Button ID="btnSubmit" runat="server" Text="发表评论" CssClass="button" />
            </div>
		    <div id="commentPreview" class="preview-comment"><div class="livepreview comment-body" >&nbsp;</div></div>
        </fieldset>
    </div>
</div> 