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

<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register TagPrefix="V5Shop" Namespace="V5Shop.Control" Assembly="V5Shop.Control" %>

<!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>
    <base target="_self" />
    <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" />

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div id="content">
                <div style="padding: 3px 25px; color: #4B6888; border-bottom: 1px #CCCCCC solid">
                    <a style="color: #4B6888; cursor: pointer;" onclick="return InitSelectValue('0')">
                        <img src="images/key_detail.gif" style="border: 0px" alt="Read/Write Property" />选择</a>
                        
                     <a style="color: #4B6888; cursor: pointer;" onclick="return InitSelectValue('-1')">   
                        <img src="images/key_detail.gif" style="border: 0px" alt="Read/Write Property" />一级分类</a>
                </div>
                <div style="width:542px;height:460px;overflow:auto;" class="listborder">
                    <V5Shop:V5ShopGridView id="GridViewShow" runat="server" Width="520px" PageSize="999999" PagerSettings-Visible="false" allowsorting="True" autogeneratecolumns="False" cssclass="datalist" headerstyle-height="18px" headerstyle-forecolor="#000" emptydatatext="没有查询到任何记录" tablename="Categroy">
                    <Columns>
                        <asp:TemplateField  ItemStyle-Width="5%">
                            <ItemTemplate>
                                <input class="checkbox" runat="server" value='<%# Eval("ID").ToString() + "|" + Eval("Name").ToString() %>' id="CheckBoxID" type="checkbox"
                                    onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField >
                            <HeaderTemplate>商品分类</HeaderTemplate>
                            <ItemTemplate>
                                <input type="hidden" value="<%#Eval("Level") %>" />
                                <input type="hidden" value="<%#Eval("headid") %>" />
                                <input type="hidden" value="<%#Eval("ID") %>" />
                                <input type="hidden" value="<%#Eval("family") %>" />
                                <img src="images/minus.gif" style="cursor:pointer; text-align:center" onclick="ShowChilds(this)" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" />
                                <%#Eval("Name") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:boundfield DataField="ID" HeaderText="ID" />
                        <asp:BoundField DataField="Description" HeaderText="分类描述" />
                        <asp:boundfield DataField="OrderID" SortExpression="OrderID" HeaderText="商品排序" />
                    </Columns>
                </V5Shop:V5ShopGridView>
                </div>
            </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>

        <script language="javascript" type="text/javascript">
        FormatStatus("GridViewShow");
        </script>
    </form>
</body>
</html>
