<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Product_Property_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_Property_Manage.aspx?id=<%=typeid%>" title="返回商品属性列表">返回列表</a>
            </div>
        </div>
        <div>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="OperateTable">
                <tr>
                    <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
                        <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;
                    </td>
                </tr>
                <tr>
                    <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="ddlPropertyId" runat="server">
                        </asp:DropDownList>&nbsp; <span class="NeedMsg">*</span>
                    </td>
                </tr>
                <tr>
                    <td width="20%" align="right" bgcolor="#FFFFFF" style="height: 30px">
                        <asp:Label ID="lblOrderId" runat="server" Text="排序："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px">
                        <asp:TextBox ID="txtOrderId" runat="server"></asp:TextBox>&nbsp; <span style="color: #ff0000">
                            *</span></td>
                </tr>
                <tr>
                    <td width="20%" align="right" bgcolor="#FFFFFF" style="height: 30px">
                        <V5Shop:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="录入方式" ImageURL="images/help.gif"
                            Text="手动输入：是指在添加商品时手动输入属性的值。下拉选择：是指在添加商品时在已设定的属性中进行选择。" />
                        <asp:Label ID="lblInputType" runat="server" Text="属性值录入方式："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px">
                        <asp:RadioButtonList ID="rblInputType" runat="server" RepeatDirection="Horizontal"
                            AutoPostBack="True" OnSelectedIndexChanged="rblInputType_SelectedIndexChanged"
                            CssClass="radioaspx">
                        </asp:RadioButtonList></td>
                </tr>
                <asp:Panel ID="pDefaultValue" Visible="false" runat="server">
                    <tr>
                        <td width="20%" align="right" bgcolor="#FFFFFF" style="height: 30px">
                            <asp:Label ID="lblDefaultValue" runat="server" Text="默认值："></asp:Label>
                        </td>
                        <td bgcolor="#FFFFFF" align="left" style="height: 30px">
                            <asp:TextBox ID="txtDefaultValue" runat="server" MaxLength="100"></asp:TextBox></td>
                    </tr>
                </asp:Panel>
                <asp:Panel ID="AreaPropertyValue" Visible="false" runat="server">
                    <tr>
                        <td align="right" bgcolor="#ffffff" style="width: 20%; height: 30px" valign="top">
                            <asp:Label ID="lblPropertyValue" runat="server" Text="属性值："></asp:Label></td>
                        <td align="left" bgcolor="#ffffff" style="height: 30px">
                            <div class="listborder">
                                <V5Shop:V5ShopGridView ID="GridViewShow" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                    CssClass="datalist" HeaderStyle-Height="18px" HeaderStyle-ForeColor="#000" EmptyDataText="请添加属性值"
                                    TableName="PropertyValue" BorderWidth="0px" CacheName="PropertyValue" GridLines="None"
                                    PageSize="12" Width="50%" AllowPaging="True">
                                    <Columns>
                                        <asp:TemplateField>
                                            <itemstyle width="2%" />
                                            <itemtemplate>
                                <input runat="server" Value='<%# Eval("Id") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out" class="checkbox">
                            
</itemtemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="Id" HeaderText="ID" visible="false">
                                            <itemstyle width="4%" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Value" HeaderText="属性值">
                                            <itemstyle width="10%" />
                                        </asp:BoundField>
                                    </Columns>
                                    <PagerSettings Mode="NumericFirstLast" />
                                    <HeaderStyle CssClass="category" ForeColor="Black" Height="18px" />
                                </V5Shop:V5ShopGridView>
                            </div>
                            <div id="hiddenfield">
                                <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                                <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                                <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                                <uc1:HiddenField ID="Alert" runat="server" />
                            </div>
                            <div style="padding: 3px 25px; color: #4B6888; border-bottom: 1px #CCCCCC solid">
                                <input type="checkbox" id="CheckAllBox" onclick="CheckAll()" class="checkbox" />
                                全选
                                <asp:LinkButton ID="lbADD" runat="server" ForeColor="#4B6888" OnClick="lbADD_Click"
                                    CausesValidation="false"><img src="images/icon/key_detail.gif" /> 添加</asp:LinkButton>
                                <asp:LinkButton ID="lbEdit" runat="server" ForeColor="#4B6888" OnClientClick="return CheckEdit()"
                                    CausesValidation="False" OnClick="lbEdit_Click"><img src="images/icon/key_edit.gif" /> 编辑</asp:LinkButton>
                                <asp:LinkButton ID="lbDel" runat="server" ForeColor="#4B6888" OnClientClick="return CheckDel()"
                                    CausesValidation="False" OnClick="lbDel_Click"><img src="images/icon/key_delete.gif" /> 删除</asp:LinkButton>&nbsp;</div>
                            <asp:Label ID="lblVotePropertyValue" runat="server" Text="属性值："></asp:Label>
                            <asp:TextBox ID="txtPropertyValue" runat="server" MaxLength="100"></asp:TextBox>
                            <asp:Button ID="btnPropertyValueAdd" runat="server" Text="确定" CssClass="button" CausesValidation="False"
                                OnClick="btnPropertyValueAdd_Click" />
                            <asp:Button ID="btnPropertyValueEdit" runat="server" Text="更新" CssClass="button"
                                CausesValidation="False" OnClick="btnPropertyValueEdit_Click" Visible="False" />
                        </td>
                    </tr>
                </asp:Panel>
                <tr>
                    <td width="20%" align="right" bgcolor="#FFFFFF" style="height: 30px">
                        <V5Shop:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="能否检索" ImageURL="images/help.gif"
                            Text="选中此项，在前台可按已设定的属性值检索商品。否则不能被检索。" />
                        <asp:Label ID="lblSearch" runat="server" Text="能否检索："></asp:Label>
                    </td>
                    <td bgcolor="#FFFFFF" align="left" style="height: 30px">
                        <asp:CheckBox ID="cbSearch_disable" runat="server" CssClass="checkboxaspx" Text="能" />
                    </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"
                            CausesValidation="False" />
                        <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_Property_Manage.aspx?id=<%=typeid%>'"
                            class="button" />
                    </td>
                </tr>
            </table>

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

        </div>
    </form>
    <uc1:PageBottom ID="PageBottom1" runat="server" />
</body>
</html>
