<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Product_FittingType_Operate, V5Shop.Shop.Category" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register TagPrefix="V5Shop" Namespace="V5Shop.Control" Assembly="V5Shop.Control" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc1" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<!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></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript" src="js/Common.js"></script>

    <script type="text/javascript" language="javascript" src="js/Control_Calendar.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblAdd" runat="server" Text="【 配件类型添加 】"></asp:Label>
                <asp:Label ID="lblEdit" runat="server" Text="【 配件类型编辑 】" Visible="false"></asp:Label>
                <a href="Product_FittingType_Manage.aspx?id=<%=typeid%>" title="返回配件类型列表">返回列表</a>
            </div>
        </div>
        <div>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="OperateTable">
                <tr id="hidden" runat="server" visible="false">
                    <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
                        <asp:Label ID="lblStartDate" runat="server" Text="商品类型："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px">
                        <asp:DropDownList ID="ddlFittingTypeId" runat="server">
                        </asp:DropDownList>&nbsp; <span class="NeedMsg">*</span>
                    </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
                        <V5Shop:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="配件类型名称" ImageURL="images/help.gif"
                            Text="如电脑包、内存卡等。" />
                        <asp:Label ID="lblTitle" runat="server" Text="配件类型名称："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px">
                        <asp:TextBox ID="txtName" runat="server" MaxLength="50"></asp:TextBox>
                        <span class="NeedMsg">*</span>&nbsp;
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                            ErrorMessage="不能为空"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 23px; width: 20%;">
                        <V5Shop:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="选择类型" ImageURL="images/help.gif"
                            Text="单选是该类型下的商品配件只能选择其中一个。多选则可以选择多个。" />
                        <asp:Label ID="lblIsSingle" runat="server" Text="配件选择类型："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 23px">
                        <asp:RadioButtonList ID="rblIsSingle" runat="server" CssClass="radioaspx" RepeatDirection="Horizontal">
                        </asp:RadioButtonList>
                   </td>
                </tr>
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="width: 20%; height: 30px;">
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px">
                        <asp:Button ID="btnAdd" runat="server" Text="确定" OnClick="btnAdd_Click" CssClass="button" />
                        <asp:Button ID="btnEdit" runat="server" Text="更新" OnClick="btnEdit_Click" Visible="False"
                            CssClass="button" />
                        <input id="iptReset" runat="server" type="reset" value="重置" class="button" />
                        <input id="btnReturn" type="button" value="返回列表" onclick="window.location.href='Product_FittingType_Manage.aspx?id=<%=typeid%>'"
                            class="button" />
                    </td>
                </tr>
            </table>

            <script type="text/javascript">
            //加TABLE样式
            InitTrClass();
            </script>

        </div>
        <font color="#009900">&nbsp;<br />
            &nbsp;注意:当选择为单选时，前台选择后无法取消<br>
</font><br>
    </form>
    <uc1:PageBottom ID="PageBottom1" runat="server" />
</body>
</html>
