<%
    //-----------------------------------------------------------
    // 文件名称: Article_ArticleCategory_Manage.aspx
    // 页面名称: 文章分类管理
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-05-28
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Article_ArticleCategory_Manage, V5Shop.Shop.Article" 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" meta:resourcekey="btnAddResource2" Width="60px"><img src="images/icon/key_add.gif" alt=""/> 添加</asp:LinkButton>
                    <asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" OnClick="btnEdit_Click" OnClientClick="return CheckEdit()" meta:resourcekey="btnEditResource2" Width="60px"><img src="images/icon/key_edit.gif" alt=""/> 编辑</asp:LinkButton>
                    <asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClick="btnDel_Click" OnClientClick="return CheckDel()" meta:resourcekey="btnDelResource2"><img src="images/icon/key_delete.gif" alt=""/> 删除</asp:LinkButton>
                </div>
                <div class="listborder">
                    <V5Shop:V5ShopGridView ID="GridViewShow" runat="server" meta:resourcekey="GridViewShowResource1" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" EmptyDataText="没有查询到任何记录" TableName="ArticleCategory">
                        <Columns>
                            <asp:TemplateField meta:resourcekey="TemplateFieldResource1" 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 meta:resourcekey="TemplateFieldResource1" ItemStyle-Width="20%">
                                <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="" />
                                <%#Eval("Name") %>
                            </itemtemplate>
                            </asp:TemplateField>
                            <asp:boundfield DataField="ID" HeaderText="ID" ItemStyle-Width="10%" />
                            <asp:boundfield DataField="Number" HeaderText="商品数量" ItemStyle-Width="10%" />
                            <asp:BoundField DataField="Description" HeaderText="分类描述" ItemStyle-Width="45%" />
                            <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>
