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

<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="China315" %>
<!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="style/index.css" />

    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <div class="title">
            <asp:Label ID="LabelTitle" runat="server" Text="产品分类添加"></asp:Label></div>
        <table cellpadding="0" cellspacing="1" width="100%">
            <tr>
                <td align="right" style="width: 20%;">
                    &nbsp;
                </td>
                <td align="left">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%;">
                    <asp:Label ID="LabelName" runat="server" Text="分类名称："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="TextBoxName" runat="server" CssClass="input2"></asp:TextBox>
                    <asp:Label ID="Label3" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" runat="server" ControlToValidate="TextBoxName"
                        Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorName" runat="server"
                        ControlToValidate="TextBoxName" Display="Dynamic" ErrorMessage="名称最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%;">
                    <asp:Label ID="LabelFatherID" runat="server" Text="上级分类："></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="DropDownListFatherID" runat="server" CssClass="select2">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%;">
                    <asp:Label ID="LabelKeywords" runat="server" Text="分类关键字："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="TextBoxKeywords" runat="server" Height="60px" TextMode="MultiLine"
                        Width="440"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorKeywords" runat="server"
                        ControlToValidate="TextBoxKeywords" Display="Dynamic" ErrorMessage="支付方式最多200个字符"
                        ValidationExpression="^[\s\S]{0,200}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%;">
                    <asp:Label ID="LabelDescription" runat="server" Text="分类描述："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="TextBoxDescription" runat="server" Height="60px" TextMode="MultiLine"
                        Width="440"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorDescription" runat="server"
                        ControlToValidate="TextBoxDescription" Display="Dynamic" ErrorMessage="支付方式最多150个字符"
                        ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%;">
                    <asp:Label ID="LabelOrderID" runat="server" Text="分类排序："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="TextBoxOrderID" runat="server" CssClass="input2"></asp:TextBox>
                    <asp:Label ID="Label4" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidatorOrderID" runat="server" ControlToValidate="TextBoxOrderID"
                        Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorOrderID" runat="server"
                        ControlToValidate="TextBoxOrderID" ErrorMessage="只能输入数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%;">
                    <asp:Label ID="LabelIsShow" runat="server" Text="是否前台显示："></asp:Label>
                </td>
                <td align="left">
                    <asp:CheckBox ID="CheckBoxIsShow" runat="server" Text="前台显示" Checked="True" />
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 20%;">
                    &nbsp;
                </td>
                <td align="left">
                    &nbsp;
                </td>
            </tr>
            <tr style="background-color: rgb(238, 238, 238);">
                <td align="right">
                </td>
                <td>
                    <div class="bottomLine">
                        <asp:Button ID="ButtonConfirm" runat="server" Text="确定" CssClass="bnt1" OnClick="ButtonConfirm_Click"
                            ToolTip="Submit" />
                        <input id="Reset1" type="reset" value="重置" class="bnt1" /><asp:Button ID="Button1"
                            runat="server" CssClass="bt3" 
                            Text="返回列表" CausesValidation="False" onclick="Button1_Click" />
                        <China315:MessageShow ID="MessageShow" Visible="false" runat="server" />
                        <br />
                        <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
