<%@ Page Title="添加/修改wap类别" Language="C#" MasterPageFile="~/Admin/MasterPage.master"
    AutoEventWireup="true" CodeBehind="WapCategoryAdd.aspx.cs" Inherits="PowerEasy.Module.Wap.WebSite.Admin.Wap.WapCategoryAdd" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="server">
    <pe:ExtendedSiteMapPath ID="SmpNavigator" SiteMapProvider="AdminMapProvider" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="server">
    <asp:ScriptManager ID="scriptManage1" runat='server'>
    </asp:ScriptManager>
    <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
        <tr align="center" class="spacingtitle">
            <td colspan="2">
                <b>
                    <pe:AlternateLiteral ID="LblTitle" Text="添加WAP类别" AlternateText="修改WAP类别" runat="Server" />
                </b>
            </td>
        </tr>
        <tr>
            <td class="tdbgleft" style="width: 30%;">
                <strong>类别名称：</strong>
            </td>
            <td class="tdbg">
                <asp:TextBox ID="txtWapCategoryName" runat="server" MaxLength="50" Width="180px"></asp:TextBox>
                <pe:ExtendedLiteral ID="ltrMes" runat="server" HtmlEncode="false"></pe:ExtendedLiteral>
                <pe:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic"
                    SetFocusOnError="true" ErrorMessage="类别名称不能为空！" ControlToValidate="txtWapCategoryName"></pe:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="tdbgleft" style="width: 30%;">
                <strong>指定类别页模板：</strong>
            </td>
            <td class="tdbg">
                <pe:TemplateSelectControl ID="FileTemplate" Width="50%" Text="/Wap模板/Wap列表页模板.html"
                    runat="server"></pe:TemplateSelectControl>
                <pe:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic"
                    SetFocusOnError="true" ErrorMessage="类别模板不能为空！" ControlToValidate="FileTemplate"></pe:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="tdbgleft" style="width: 30%;">
                <strong>是否允许评论：</strong>
            </td>
            <td class="tdbg">
                <asp:UpdatePanel ID="upd1" runat="server">
                    <ContentTemplate>
                        <asp:RadioButtonList ID="radlCommentPurviewType" OnSelectedIndexChanged="radlCommentPurviewType_SelectedIndexChanged"
                            AutoPostBack="true" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="不允许评论" Value="0">
                            </asp:ListItem>
                            <asp:ListItem Text="允许用户评论" Value="1">
                            </asp:ListItem>
                            <asp:ListItem Text="允许游客评论" Value="2" Selected="True">
                            </asp:ListItem>
                        </asp:RadioButtonList>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr id="trNeedCheck">
            <td class="tdbgleft" style="width: 30%;">
                <strong>评论是否需要审核：</strong>
            </td>
            <td class="tdbg">
                <asp:UpdatePanel ID="upd2" runat="server">
                    <ContentTemplate>
                        <asp:RadioButtonList ID="radNeedCheck" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="是" Value="1" Selected="True">
                            </asp:ListItem>
                            <asp:ListItem Text="否" Value="0">
                            </asp:ListItem>
                        </asp:RadioButtonList>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr class="tdbgbottom">
            <td colspan="2">
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" />
                <asp:Button ID="btnCancel" runat="server" Text="返回" ValidationGroup="2" OnClick="btnCancel_Click" />
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hdnName" runat="server" />
</asp:Content>
