<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ Import Namespace="Hishop.SystemServices" %>
<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div> 
            <div class="PageTitleArea">
                <div class="PageTitle">
                    <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:Attributes,IDS_PageTitle %>"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:Attributes,IDS_PageDesc %>"></asp:Literal>
                </div>
            </div>
            <Hishop:Attributes ID="Attributes" runat="server">
            <SkinTemplate>
<Hishop:StatusMessage id="Status" runat="server" Visible="False" />
<fieldset class="AdminSearchform">
    <legend><asp:Literal ID="litSelectQuery" runat="server" Text="<%$ Resources:Resources, Utilty_Search_Title %>"></asp:Literal></legend>      
     <table width="65%" border="0" cellspacing="0" cellpadding="0" style="margin-left:18px">
        <tr>
            <td class="searchTableLeftTD">
                <nobr> <asp:Label ID="lblProductType" runat="server" Text="<%$ Resources:ProductTypes, IDS_Lable_TypeName %>"></asp:Label>：</nobr>
            </td>
            <td class="searchTableControlTD">
               <Hishop:ProductTypeDownList ID="dropProductTypeSeach" runat="server"  /></td>
            <td class="searchTableLeftTD">
                <nobr> <asp:Label ID="lblGiftType" runat="server" Text="<%$ Resources:Resources, Utilty_Search_PageSize %>"></asp:Label>：</nobr>
                </td>
            <td class="searchTableControlTD">
             <Hishop:PageSizeDropDownList ID="dropPageSize" runat="server"  />
            </td>
             <td>
                <asp:Button ID="btnSearchButton" runat="server"  Text="<%$ Resources:Resources, IDS_Button_ChaXun %>" CssClass="inp_L1"></asp:Button>
            </td>
        </tr>    
    </table>          
</fieldset>
<div class="grdHeaderStyle">
    <ul>
        <li class="_return"><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_ProductType")%>'>
            <asp:Label ID="lblReturn" runat="server" Text="<%$ Resources:Attributes,IDS_FromField_lblReturn %>"></asp:Label></a></li>
        <li class="spirtLines">|</li>
        <li class="userGroupCheckAll"><a href="#" onclick="CheckClickAll()">
            <asp:Label ID="lblCheckAll" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckAll %>"></asp:Label></a></li>
        <li class="spirtLines">|</li>
        <li class="userGroupReverseCheck"><a href="#" onclick="CheckReverse()">
            <asp:Label ID="lblCheckReverse" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckReverse %>"></asp:Label></a></li>
        <li class="spirtLines">|</li>
        <li class="userGroupDelCheck">
            <Hishop:DeleteImageLinkButton ID="lkbDelectCheck" runat="server" Text="<%$ Resources:Resources, IDS_Button_DeleteCheck %>" /></li>
    </ul>
</div>
<div class="grdGroupFormList">
            <Hishop:CustomGridView ID="grdAttribute" runat="server" AutoGenerateColumns="false" ShowHeader="true" DataKeyNames="AttributeId" CssClass="GridViewStyle" GridLines="None" RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle">
                <Columns>
                    <Hishop:CheckBoxColumn ReadOnly="true" />
                    <asp:TemplateField HeaderText="<%$ Resources:Attributes,IDS_FromField_lblName %>">
                        <ItemTemplate>
		                    <asp:Label ID="lblAttributeName" runat="server" Text='<%# Eval("AttributeName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:ProductTypes, IDS_Lable_TypeName %>">
                        <ItemTemplate>
                            <asp:Label ID="lblTypeName" runat="server" Text='<%# Eval("TypeName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Attributes,IDS_Lable_UserMode %>">
                        <ItemTemplate>
                            <asp:Label ID="lblUsageMode" runat="server" Text='<%# Eval("UsageMode") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Attributes,IDS_FromField_lblValuesTitle %>">
                        <ItemTemplate>
                            <asp:Label ID="lblRemark" runat="server" Text='<%# Eval("ValuesString") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <Hishop:SortImageColumn HeaderText="<%$Resources:Attributes,IDS_Header_HelpCategoryDisplay  %>"  ReadOnly="true" />
                             <asp:TemplateField HeaderText="<%$ Resources:Resources, IDS_Header_Options %>" ItemStyle-Width="20%">
                                 <ItemStyle CssClass="handleRightSelect"/>
                                 <ItemTemplate>
			                         <asp:LinkButton ID="lkbEdit" runat="server" CssClass="SmallCommonTextButton" CommandName="Edit" Text="<%$ Resources:Resources, IDS_Button_Edit%>"></asp:LinkButton>
			                         <Hishop:DeleteImageLinkButton ID="lkbDelete" CssClass="SmallCommonTextButton" runat="server" CommandName="Delete"  Text="<%$ Resources:Resources, IDS_Button_Delete %>" />
                                 </ItemTemplate>
                             </asp:TemplateField> 
                </Columns>
            </Hishop:CustomGridView>
</div>
<div class="grdGroupTabhead">
    <UI:Pager runat="server" ListToPaging="grdAttribute" ID="pager" />
</div>
<!--添加扩展属性开始-->
<div class="grdHeaderStyle" style="cursor: pointer;" onclick="expItemsTable('addItemsTable');">
    <ul>
        <li class="addProductTmpt">
            <asp:Literal ID="litAddAttrbute" Text="<%$ Resources:Attributes,IDS_FromField_lblAddAttribute %>"
                runat="server"></asp:Literal>
        </li>
    </ul>
</div>

        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="formTableList" id="addItemsTable">
            <tr>
                <td class="leftTD">
                    <asp:Label ID="lblName" runat="server" Text="<%$ Resources:Attributes,IDS_FromField_lblName %>"></asp:Label>：</td>
                <td class="rightTD">
                    <!--属性名称-->
                    <asp:TextBox ID="txtName" runat="server" Width="220" MaxLength="50"></asp:TextBox>
                </td>
                <td class="rightTD">
                    <div id="txtNameTip" runat="server">
                    </div>
                    <Hishop:ValidateTarget ID="ValidateTargetName" runat="server" ControlToValidate="txtName"
                        ContainerId="ValidatorContainer" Description="<%$ Resources:Attributes,IDS_Message_Name_Description %>"
                        Nullable="false">
                        <Validators>
                            <Hishop:InputStringClientValidator ErrorMessage="<%$ Resources:Attributes,IDS_Message_Name_Description %>"
                                LowerBound="1" UpperBound="25" />
                        </Validators>
                    </Hishop:ValidateTarget>
                </td>
            </tr>
            <tr>
                <!--所属商品类型-->
                <td class="leftTD">
                    <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Attributes,IDS_Lable_Type %>"></asp:Label>：</td>
                <td class="rightTD">
                    <Hishop:ProductTypeDownList ID="dropProductType" runat="server"  AllowNull="false" />
                </td>
                <td class="rightTD">
                    <div class="msgNormal">
                        <asp:Label ID="Label2" runat="server" Text=""></asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <!--属性的使用方式-->
                <td class="leftTD">
                    <asp:Label ID="lblAllowSearch" runat="server" Text="<%$ Resources:Attributes,IDS_Lable_UserMode %>"></asp:Label>：</td>
                <td class="rightTD">
                    <Hishop:AttributeUseageModeRadioButtonList ID="radAttributeUseageMode" RepeatDirection="Horizontal" runat="server"  />
                </td>
                <td class="rightTD">
                    <div class="msgNormal">
                        <asp:Label ID="lblAttributeUseageMode" runat="server" Text=""></asp:Label>
                    </div>
                </td>
            </tr>
            <tr id="trValues" runat="server">
                <td class="leftTD">
                    <asp:Label ID="lblValues" runat="server" Text="<%$ Resources:Attributes,IDS_FromField_lblValue %>"></asp:Label>：</td>
                <td class="rightTD">
                    <asp:TextBox ID="txtValues" runat="server" Width="300" Height="100" TextMode="MultiLine"></asp:TextBox>
                </td>
                <td class="rightTD">
                    <div class="msgNormal">
                        <asp:Label ID="lblValuesHelp" runat="server" Text="<%$ Resources:Attributes,IDS_FromField_lblValueHelp %>"></asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="bottonLeftTD">
                    &nbsp;</td>
                <td class="rightTD">
                    <asp:Button ID="btnCreate" runat="server" Text="<%$ Resources:Attributes,IDS_Button_Create %>" CssClass="inp_L1" OnClientClick="return PageIsValid();" />
                    <asp:Button ID="btnCancel" runat="server" Text="<%$ Resources:Resources, IDS_Button_Cancel%>" CssClass="inp_L1" />
                </td>
                <td class="rightTD">
                    &nbsp;</td>
            </tr>
        </table>        
            </SkinTemplate>
            </Hishop:Attributes>
            
        </div>
        <br />
        <div style="text-align:center">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>