<%@ Page Title="友情链接分类管理" StylesheetTheme="AdminSkin" Language="C#" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="FriendLinksCategoryList.aspx.cs" Inherits="Solution.Admin.Contents.FriendLinksCategoryList" %>

<%@ Register Assembly="BX.Common" Namespace="Common" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentCenter" runat="server">
    <form id="Form1" runat="server">
        <asp:ObjectDataSource ID="ObjectDataSourceFriendLink" runat="server" EnablePaging="True"
            SelectCountMethod="Count" SelectMethod="List" TypeName="Logic.FriendLinkCategory"
            OldValuesParameterFormatString="original_{0}"></asp:ObjectDataSource>
        <div class="DivRightCenter">
            <div class="listdiv">
                <div class="grid-title">
                    <div class="grid-title-text">
                        <h4>
                            <span>友情链接分类</span>
                        </h4>
                    </div>
                    <div class="grid-title-menu"></div>
                </div>
                <div class="grid-list">
                    <cc1:ExtendedGridView ID="ExtendedGridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        CssClass="grid" DataSourceID="ObjectDataSourceFriendLink"
                        ItemName="友情链接分类" CheckBox="False" EnableTheming="False">
                        <Columns>
                            <asp:BoundField DataField="CategoryID" HeaderText="ID">
                                <ItemStyle Width="50px" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CategoryName" HeaderText="链接类别名称">
                                <ItemStyle Wrap="False" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <a href='<%#"FriendLinksCategoryList.aspx?cmd=delete&id="+DataBinder.Eval(Container.DataItem,"CategoryID") %>'
                                        onclick="return confirm('确定删除?');">删除</a> <a href='<%#"FriendLinksCategoryInfo.aspx?id="+DataBinder.Eval(Container.DataItem,"CategoryID") %>'>修改</a>
                                </ItemTemplate>
                                <ItemStyle Width="150px" Wrap="False" />
                            </asp:TemplateField>
                        </Columns>
                    </cc1:ExtendedGridView>
                </div>
            </div>
            <div class="FormButtonArea">
                <asp:Button ID="Button2" runat="server" Text="添加分类" OnClientClick="window.location.href='FriendLinksCategoryInfo.aspx';return false;" />&nbsp;&nbsp;
            <asp:Button ID="Button1" runat="server" Text="添加链接" OnClientClick="window.location.href='FriendLinkInfo.aspx';return false;" />&nbsp;&nbsp;
            <asp:Button ID="Button3" runat="server" Text="链接管理" OnClientClick="window.location.href='FriendLinkList.aspx';return false;" />
            </div>
        </div>
    </form>
</asp:Content>
