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

<%@ Register Assembly="ShopNum1.Control" Namespace="ShopNum1.Control" TagPrefix="cc1" %>
<%@ 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 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 cellpadding="0" cellspacing="0" border="0" style="width: 100%; line-height: 30px;">
        <tr>
            <td align="right" width="20%">
                <asp:Label ID="LabelType" runat="server" Text="系统内容："></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="DropDownListType" runat="server" Height="20px" Style="margin-top: 0px"
                    AutoPostBack="True" OnSelectedIndexChanged="DropDownListType_SelectedIndexChanged"
                    CssClass="select1">
                    <asp:ListItem Value="-1">-请选择系统分类-</asp:ListItem>
                    <asp:ListItem Value="Default.aspx">今日团购</asp:ListItem>
                    <asp:ListItem Value="DownLineActive.aspx">线下团购</asp:ListItem>
                    <asp:ListItem Value="ActiveNoticeList.aspx">团购预告</asp:ListItem>
                    <asp:ListItem Value="ActiveList.aspx">团购列表</asp:ListItem>
                    <asp:ListItem Value="HistoryActive.aspx">往期团购</asp:ListItem>
                    <asp:ListItem Value="ScoreProductshowType.aspx">积分商城</asp:ListItem>
                    <asp:ListItem Value="Article.aspx">商城文章</asp:ListItem>
                    <asp:ListItem Value="MemberRegist.aspx">会员注册</asp:ListItem>
                    <asp:ListItem Value="Vip.aspx">VIP通道</asp:ListItem>
                    <asp:ListItem Value="Memberlogin.aspx">会员登录</asp:ListItem>
                    <asp:ListItem Value="HelpList.aspx">帮助中心</asp:ListItem>
                    <asp:ListItem Value="Advice.aspx">留言板</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="DropDownListActiveType" runat="server" Height="20px" Style="margin-top: 0px"
                    AutoPostBack="True" CssClass="select1" Visible="false" OnSelectedIndexChanged="DropDownListActiveType_SelectedIndexChanged">
                    <asp:ListItem Value="-1">-请选择团购类型分类-</asp:ListItem>
                </asp:DropDownList>
                <font color="red">
                    <asp:Label ID="Label1" runat="server" Text="*"></asp:Label>
                </font>
                <br />
            </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" CssClass="input2"></asp:TextBox>
                <font color="red">
                    <asp:Label ID="Label4" runat="server" Text="*"></asp:Label>
                </font>
                <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="LabelLinkAddress" runat="server" Text="链接地址："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxLinkAddress" runat="server" CssClass="input2"></asp:TextBox>
                <font color="red">
                    <asp:Label ID="Label5" runat="server" Text="*"></asp:Label>
                </font>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorLinkAddress" runat="server"
                    ControlToValidate="TextBoxLinkAddress" Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorLinkAddress" runat="server"
                    ControlToValidate="TextBoxLinkAddress" Display="Dynamic" ErrorMessage="链接地址最多150个字符"
                    ValidationExpression="^[\s\S]{0,150}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelShowLocation" runat="server" Text="显示位置："></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="DropDownListShowLocation" runat="server" CssClass="select2">
                </asp:DropDownList>
                <font color="red">
                    <asp:Label ID="Label6" runat="server" Text="*"></asp:Label>
                </font>
                <asp:CompareValidator ID="CompareValidatorShowLocation" runat="server" ControlToValidate="DropDownListShowLocation"
                    Display="Dynamic" ErrorMessage="该值必需选择" Operator="NotEqual" ValueToCompare="-1"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelIfShow" runat="server" Text="是否前台显示："></asp:Label>
                
            </td>
            <td align="left">
                <asp:DropDownList ID="DropDownListIfShow" runat="server" CssClass="select2">
                  <asp:ListItem Text="是" Value="1" Selected="True"></asp:ListItem>
                  <asp:ListItem Text="否" Value="0" ></asp:ListItem>
                </asp:DropDownList>
                <font color="red">
                    <asp:Label ID="Label7" runat="server" Text="*"></asp:Label>
                </font>
                <asp:CompareValidator ID="CompareValidatorIfShow" runat="server" ControlToValidate="DropDownListIfShow"
                    Display="Dynamic" ErrorMessage="该值必需选择" Operator="NotEqual" ValueToCompare="-1"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                是否最热：
            </td>
            <td align="left">
                <asp:DropDownList ID="DropDownListIsHot" runat="server" CssClass="select2">
                    <asp:ListItem Text="是" Value="1"></asp:ListItem>
                    <asp:ListItem Text="否" Value="0" Selected="True"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelIfOpen" runat="server" Text="是否新窗口中打开："></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="DropDownListIfOpen" runat="server" CssClass="select2">
                </asp:DropDownList>
                <font color="red">
                    <asp:Label ID="Label8" runat="server" Text="*"></asp:Label>
                </font>
                <asp:CompareValidator ID="CompareValidatorIfOpen" runat="server" ControlToValidate="DropDownListIfOpen"
                    Display="Dynamic" ErrorMessage="该值必需选择" Operator="NotEqual" ValueToCompare="-1"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="LabelRemark" runat="server" Text="说明："></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBoxRemark" runat="server" Height="60px" Width="298" TextMode="MultiLine"></asp:TextBox>
            </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" CssClass="input2"></asp:TextBox>
                <asp:Label ID="Label9" runat="server" Text="*" ForeColor="red"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorOrderID" runat="server" ControlToValidate="TextBoxOrderID"
                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorOrderID" runat="server"
                    ControlToValidate="TextBoxOrderID" Display="Dynamic" ErrorMessage="只能输入数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
            </td>
            <td align="left">
                &nbsp;
            </td>
        </tr>
        <tr style="background-color: #EEEEEE;" class="btconfig">
            <td align="right">
                &nbsp;
            </td>
            <td align="left">
                <div>
                    <asp:Button ID="ButtonConfirm" runat="server" Text="确定" OnClick="ButtonConfirm_Click"
                        ToolTip="Submit" CssClass="bt2" />
                    <input id="inputReset" runat="server" type="reset" value="重置" class="bt2" />
                    <asp:Button ID="ButtonBack" runat="server" Text="返回列表" CssClass="bt3" OnClick="ButtonBack_Click"
                        CausesValidation="false" />
                    <%--<a href="UserDefinedColumn_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>
