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

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="ShopNum1" %>

<!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>Untitled Page</title>
        <link type="text/css" rel="Stylesheet" href="css/index.css" /> 
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">
    
    
       
    <div class="navigator"><asp:Label ID="LabelPageTitle" runat="server" Text="【 新增菜单类别 】"></asp:Label></div>
      <table style="width:100%">
            <tr>
                <td align="right" width="20%">
    
        <asp:Label ID="LabelCode" runat="server" Text="类别代号："></asp:Label>
                </td>
                <td align="left">
        <asp:TextBox ID="textBoxCODE" runat="server" class="input2"></asp:TextBox>
                            <asp:Label ID="Label1" runat="server" Text="*" ForeColor="red"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCode" 
                            runat="server" ControlToValidate="textBoxCODE" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorCode" 
                        runat="server" ControlToValidate="textBoxCODE" Display="Dynamic" 
                        ErrorMessage="标题最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
        <asp:Label ID="LabelName" runat="server" Text="类型名称："></asp:Label>
                </td>
                <td align="left">
        <asp:TextBox ID="textBoxName" runat="server" class="input2"></asp:TextBox>
                            <asp:Label ID="Label4" runat="server" Text="*" ForeColor="red"></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" >
        <asp:Label ID="LabelState" runat="server" Text="可操作状态："></asp:Label>
                </td>
                <td align="left">
        <asp:DropDownList ID="DropDownListState" runat="server" 
            AutoPostBack="True"  CssClass="select2">
        </asp:DropDownList>
                            <asp:Label ID="Label5" runat="server" Text="*" ForeColor="red"></asp:Label>
                    <asp:CompareValidator ID="CompareValidatorState" runat="server" 
                            ControlToValidate="DropDownListState" Display="Dynamic" ErrorMessage="该值必需选择" 
                            Operator="NotEqual" ValueToCompare="-1"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
        <asp:Label ID="Label3" runat="server" Text="描述："></asp:Label>
                </td>
                <td align="left" >
        <asp:TextBox ID="textBoxDescription" runat="server" 
            TextMode="MultiLine" Width="440" Height="60"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorName0" 
                        runat="server" ControlToValidate="textBoxDescription" Display="Dynamic" 
                        ErrorMessage="标题最多250个字符" ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2" >
                 <div style="background:#eeeeee;padding-left:20%;text-align:left" class="btconfig">
        <asp:Button ID="ButtonConfirm" runat="server" Text="确定" 
            onclick="buttonSave_Click" CssClass="bt2"/>
&nbsp;<input id="inputReset" type="reset" value="重置" Class="bt2"/> <a href="MenuType_Manage.aspx"><img src="images/back.png" border="0" align="top" /></a>
 <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
</div></td>
            </tr>
            </table>
    <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
    </form>
</body>
</html>
