<%
    //-----------------------------------------------------------
    // 文件名称: Article_ArticleCategory_Manage_Dialog.aspx
    // 页面名称: 文章分类选择对话框
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-05-28
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Article_ArticleCategory_Manage_Dialog, V5Shop.Shop.Article" 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 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 InitAdsCategory()">
                        <img src="images/key_detail.gif" style="border: 0px" alt="" />选择</a>
                </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="ArticleCategroy">
                    <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>
                        </asp:TemplateField>
                        <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                            <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" />
                        <asp:boundfield DataField="Name" SortExpression="Name" HeaderText="分类名称"  />
                        <asp:boundfield DataField="Number" SortExpression="Number" HeaderText="商品数量"  />
                        <asp:BoundField DataField="Description" HeaderText="分类描述" SortExpression="Description" />
                        <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>
