<%
    //-----------------------------------------------------------
    // 文件名称: Advertisement_AdsCategory_Manage.aspx
    // 描    述: 广告分类管理页面
    // 修改标识: Modify By 吕鑫 2008-11-05
    // 修改内容: 1,广告分类为空时头部标题显示空白
    //-----------------------------------------------------------
%>
<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Advertisement_AdsCategory_Manage, V5Shop.Shop.Advertisement" 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/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" ></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">
                <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()" meta:resourcekey="btnEditResource2">
                <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()" meta:resourcekey="btnDelResource2">
                <img src="images/icon/key_delete.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="AdsCategory">
                    <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 HeaderText="广告分类名称">
                            <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)" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'"/>
                                <%#Eval("Name") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Description" SortExpression="Description" 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>
        <uc2:PageBottom ID="PageBottom1" runat="server" />
    </div>
    
    <script language="javascript">
        FormatStatus("GridViewShow");
    </script>
    </form>
</body>
</html>