<%@ page language="C#" autoeventwireup="true" inherits="Admin_ArticleCategory_Operate, GroupTGWeb_deploy" %>

<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>新增文章分类</title>
    <link rel="stylesheet" type="text/css" href="css/index.css" />
</head>
<body style="padding: 0; background-image: url(images/Bg_right.gif); background-repeat: repeat;
    font-size: 12px"">
    <form id="form1" runat="server">
    <div class="navigator">        
        <asp:Label ID="LabelPageTitle" runat="server" Font-Bold="True" Text="【新增文章分类】"></asp:Label>
        </div>
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td align="right">
                &nbsp;
            </td>
            <td align="left">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" width="20%">
                <asp:Label ID="LabelName" runat="server" Text="分类名称："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxName" runat="server" Width="300"></asp:TextBox>
                <asp:Label ID="Label3" runat="server" ForeColor="red" Text="*"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" runat="server" ControlToValidate="TextBoxName"
                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorTitle" runat="server"
                    ControlToValidate="TextBoxName" Display="Dynamic" ErrorMessage="标题最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelFatherID" runat="server" Text="上级分类："></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="DropDownListFatherID" runat="server" Width="300">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelKeywords" runat="server" Text="分类关键字："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxKeywords" runat="server" TextMode="MultiLine" Width="300"
                    Height="60"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorTitle0" runat="server"
                    ControlToValidate="TextBoxKeywords" Display="Dynamic" ErrorMessage="关键字最多200个字符"
                    ValidationExpression="^[\s\S]{0,200}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelDescription" runat="server" Text="分类描述："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxDescription" runat="server" Height="60px" TextMode="MultiLine"
                    Width="300"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorTitle1" runat="server"
                    ControlToValidate="TextBoxDescription" Display="Dynamic" ErrorMessage="描述最多150个字符"
                    ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelOrderID" runat="server" Text="分类排序："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxOrderID" runat="server" Width="300"></asp:TextBox>
                <asp:Label ID="Label4" runat="server" ForeColor="red" Text="*"></asp:Label>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorOrderID" runat="server"
                    ControlToValidate="TextBoxOrderID" Display="Dynamic" ErrorMessage="只能输入数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorOrderID" runat="server" ControlToValidate="TextBoxOrderID"
                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelIsShow" runat="server" Text="是否前台显示：" Width="300"></asp:Label>
            </td>
            <td align="left">
                <asp:CheckBox ID="CheckBoxIsShow" runat="server" Text="是" Checked="True" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr style="background-color: #EEEEEE;">
            <td align="right">
                &nbsp;
            </td>
            <td align="left">
                <div class="bottomLine">
                    <asp:Button ID="ButtonConfirm" runat="server" OnClick="ButtonConfirm_Click" Text="确定"
                        ToolTip="Submit" CssClass="bt2" />
                    <input id="inputReset" runat="server" type="reset" value="重置" class="bt2" />&nbsp;
                    <a href="ArticleCategory_List.aspx">
                        <img src="images/back.png" border="0" align="top" /></a>
                    <uc1:MessageShow ID="MessageShow" runat="server" Visible="false" />
                </div>
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
    </form>
</body>
</html>
