<%@ page language="C#" autoeventwireup="true" inherits="Admin_Menu_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 width="100%" cellpadding="0" cellspacing="0" border="0" style="line-height: 30px;">
        <tr>
            <td>
                &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" CssClass="input2"></asp:TextBox>
                <asp:Label ID="Label1" 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="内容最多20个字符" ValidationExpression="^[\s\S]{0,20}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelCode" runat="server" Text="菜单代码："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="textBoxCode" runat="server" CssClass="input2"></asp:TextBox>
                <asp:Label ID="Label4" 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="Label3" runat="server" Text="排序号："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="textBoxOrderID" runat="server" CssClass="input2"></asp:TextBox>
                <asp:Label ID="Label5" runat="server" Text="*" ForeColor="red"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorCode0" runat="server" ControlToValidate="textBoxOrderID"
                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorName1" runat="server"
                    ControlToValidate="textBoxOrderID" Display="Dynamic" ErrorMessage="只能输入数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelTypeName" runat="server" Text="菜单类别："></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="DropDownListTypeName" runat="server" AutoPostBack="True" CssClass="select2">
                </asp:DropDownList>
                <asp:Label ID="Label6" runat="server" Text="*" ForeColor="red"></asp:Label>
                <asp:CompareValidator ID="CompareValidatorTypeName" runat="server" ControlToValidate="DropDownListTypeName"
                    Display="Dynamic" ErrorMessage="该值必需选择" Operator="NotEqual" ValueToCompare="-1"></asp:CompareValidator>
            </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="Label7" 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>
                &nbsp;
            </td>
        </tr>
        <tr class="btconfig">
            <td align="right">
                &nbsp;
            </td>
            <td align="left">
                <asp:Button ID="buttonSave" runat="server" Text="确定" OnClick="buttonSave_Click" CssClass="bt2" />
                &nbsp;<input id="inputReset" type="reset" value="重置" class="bt2" />&nbsp;
                    <asp:Button ID="ButtonBack" runat="server" Text="返回列表" class="bt3" OnClick="ButtonBack_Click" CausesValidation="false" /><ShopNum1:MessageShow
                        ID="MessageShow" runat="server" Visible="False" />
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
    </form>
</body>
</html>
