<%@ page language="C#" autoeventwireup="true" inherits="Admin_ProductAttribute_Operate, ShopNum1Deploy" %>

<%@ 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 id="Head1" 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 cellpadding="0" cellspacing="0" border="0" style="width:100%">

            <tr>
                <td align="right" >
                &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>
                    <font color="red">
        <asp:Label ID="Label3" runat="server" ForeColor="#FF0066" 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" ErrorMessage="只能输入50个字符" 
                        ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelProductTypeGuid" runat="server" Text="所属商品类型："></asp:Label>
                </td>
                <td align="left" >
                    <asp:DropDownList ID="DropDownListProductTypeGuid" runat="server" 
                        AutoPostBack="True" 
                        onselectedindexchanged="DropDownListProductTypeGuid_SelectedIndexChanged" CssClass="select2">
                    </asp:DropDownList>
        <asp:Label ID="Label4" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                        <asp:CompareValidator ID="CompareValidatorProductTypeGuid" runat="server" 
                            ControlToValidate="DropDownListProductTypeGuid" Display="Dynamic" ErrorMessage="该值必需选择" 
                            Operator="NotEqual" ValueToCompare="-1"></asp:CompareValidator>
                </td>
            </tr>
            <tr style="display:<%=(AttributeGroup)?"":"none"%>">
                <td align="right"style="width:20%;" >  
                    <asp:Label ID="LabelAttributeGroup" runat="server" Text="属性分组："></asp:Label>
                </td>
                <td align="left" >
                    <asp:DropDownList ID="DropDownListAttributeGroup" runat="server" CssClass="select2">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelIsMultiSelect" runat="server" Text="属性是否可选："></asp:Label>
                </td>
                <td align="left" >
                    <asp:DropDownList ID="DropDownListIsMultiSelect" runat="server" CssClass="select2">
                        <asp:ListItem Value="0">唯一属性</asp:ListItem>
                        <asp:ListItem Value="1">单选属性</asp:ListItem>
                        <asp:ListItem Value="2">复选属性</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelInputType" runat="server" Text="属性的录入方式："></asp:Label>
                </td>
                <td align="left" >
                    <asp:DropDownList ID="DropDownListInputType" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="DropDownListInputType_SelectedIndexChanged" CssClass="select2">
                        <asp:ListItem Value="0">手工录入</asp:ListItem>
                        <asp:ListItem Value="1">从下面的列表中选择</asp:ListItem>
                        <asp:ListItem Value="2">多行文本框</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr style="display:<%=(AttrValue)?"":"none"%>">
                <td align="right"style="width:20%;" >
    
                    <asp:Label ID="LabelAttrValue" runat="server" Text="可选值列表："></asp:Label>
                </td>
                <td align="left" >
                    <asp:TextBox ID="TextBoxAttrValue" runat="server" Height="60px" TextMode="MultiLine" 
                        Width="440"></asp:TextBox>
                </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="Label5" 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" >
    &nbsp;
                    </td>
                <td align="left">
                    &nbsp;</td>
            </tr>
            <tr style="background-color:#EEEEEE;">
             <td align="right"style="width:20%;" >
                 &nbsp;</td>
                <td align="left" >
                     <div style="width:60%;margin:4px;">
        <asp:Button ID="ButtonConfirm" runat="server" onclick="ButtonConfirm_Click" Text="确定" 
            ToolTip="Submit"  CssClass="bt2"/>
                         <input ID="inputReset" runat="server"  type="reset" value="重置"  class="bt2"/>
                          <a href="ProductAttribute_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="hiddenGuid" runat="server" Value="0" />
        <asp:HiddenField ID="HiddenFieldAttributeGroup" runat="server" />
        <asp:HiddenField ID="HiddenFieldAttrValue" runat="server" />
    </form>
</body>
</html>
