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

<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ 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 runat="server">
    <title>商品分类管理</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <uc3:ManageHeader ID="ManageHeader1" runat="server" />
            <div id="content">
                <div id="tool">
                    <input class="checkbox" type="checkbox" id="CheckAllBox" onclick="CheckAll()" />
                    全选
　
                    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" OnClick="btnAdd_Click"> <img src="images/icon/key_add.gif" alt="Read/Write Property"/> 添加</asp:LinkButton>
　
<asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" OnClick="btnEdit_Click"
                        OnClientClick="return CheckEdit()">
                    <img src="images/icon/key_edit.gif" alt="Read/Write Property"/> 编辑</asp:LinkButton>
　
<asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClick="btnDel_Click"
                        OnClientClick="return CheckDel()">
                    <img src="images/icon/key_delete.gif" alt="Read/Write Property"/> 删除</asp:LinkButton>
　
<asp:LinkButton ID="btnCategoryBrand" runat="server" ForeColor="#4B6888" OnClientClick="return CheckEdit()" OnClick="btnCategoryBrand_Click">
                    <img src="images/icon/key_copy.gif" alt="Read/Write Property"/> 相关品牌</asp:LinkButton>
                </div>
                <div class="listborder">
                    <V5Shop:V5ShopGridView  ID="GridViewShow" runat="server" meta:resourcekey="GridViewShowResource1" 
                    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" 
                    HeaderStyle-Height="18px" HeaderStyle-ForeColor="#000" EmptyDataText="没有查询到任何记录" TableName="Category">
                        <Columns>
                            <asp:TemplateField ItemStyle-Width="5%">

                                <itemtemplate>
                                <input class="checkbox" runat="server" value='<%# Eval("ID") %>' id="CheckBoxID" type="checkbox"
                                    onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" />
                            
							</itemtemplate>
                            <itemstyle horizontalalign="Center"  /></asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="25%">
                                <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/plus.gif" style="cursor:pointer; text-align:center" onclick="ShowChilds(this)" alt="Read/Write Property" />-->
                                    <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="Description" HeaderText="分类描述" ItemStyle-Width="50%" />
                            <%--<asp:TemplateField HeaderText="是否显示" ItemStyle-Width="10%">
                                <itemtemplate>
									<asp:Label runat="server" Text='<%# FormartStatus(DataBinder.Eval(Container,"DataItem(IsShow)","{0}")) %>' id="Label1"></asp:Label>
							    </itemtemplate>
                            </asp:TemplateField>--%>
                            <asp:boundfield DataField="OrderID" HeaderText="分类排序" ItemStyle-Width="10%" />
                        </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>
            <uc2:PageBottom ID="PageBottom1" runat="server" />
        </div>

        <script type="text/javascript">
        FormatStatus("GridViewShow");
        </script>

    </form>
</body>
</html>
