<%@ Page Title="模板标签管理" Language="C#" StylesheetTheme="AdminSkin" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="TemplateLabelManage.aspx.cs" Inherits="Web.Admin.Contents.TemplateLabelManage" %>

<%@ 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="ObjectDataSourceArticle" runat="server" EnablePaging="True"
            SelectMethod="List" TypeName="Web.Admin.Contents.TemplateLabelManage" SelectCountMethod="Count">
            <SelectParameters>
                <asp:QueryStringParameter Name="name" QueryStringField="name" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <div class="DivRightCenter">
            <div class="listdiv">
                <div class="grid-title">
                    <div class="grid-title-text">
                        <h4>
                            <span>模板标签管理</span>
                        </h4>
                    </div>
                </div>
                <div class="grid-list">
                    <cc1:ExtendedGridView ID="ExtendedGridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        CssClass="grid" PageSize="20" DataSourceID="ObjectDataSourceArticle" EnableTheming="False" ItemName="模板标签管理" CheckBox="False" CheckBoxDataIndex="0" DisableShortcuts="False">
                        <AlternatingRowStyle CssClass="tr2"></AlternatingRowStyle>
                        <Columns>
                            <asp:BoundField DataField="Name" HeaderText="名称" />
                            <asp:BoundField DataField="CreateTime" HeaderText="创建时间">
                                <ItemStyle Width="150px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ModifyTime" HeaderText="更新时间">
                                <ItemStyle Width="150px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <a href='<%#"TemplateLabelEdit.aspx?name="+Server.UrlEncode(DataBinder.Eval(Container.DataItem,"Name").ToString())+"&templateName="+Server.UrlEncode(DataBinder.Eval(Container.DataItem,"TemplateName").ToString()) %>'>修改</a>
                                    <a href='<%#"TemplateLabelManage.aspx?cmd=delete&name="+Server.UrlEncode(DataBinder.Eval(Container.DataItem,"Name").ToString())+"&templateName="+Server.UrlEncode(DataBinder.Eval(Container.DataItem,"TemplateName").ToString()) %>' onclick="return confirm('确定删除?');">删除</a>
                                </ItemTemplate>
                                <ItemStyle Width="200px" Wrap="False" />
                            </asp:TemplateField>
                        </Columns>

                        <HeaderStyle HorizontalAlign="Center" Wrap="False" CssClass="gridhead"></HeaderStyle>

                        <RowStyle HorizontalAlign="Center" CssClass="tr1"></RowStyle>
                    </cc1:ExtendedGridView>
                </div>
            </div>
            <br />
            <div class="FormButtonArea">
                <asp:Button ID="btnAddLabel" runat="server" UseSubmitBehavior="false"
                    Text="添加新标签" OnClick="btnAddLabel_Click" />&nbsp;&nbsp;
                <asp:Button ID="Button1" runat="server" UseSubmitBehavior="false"
                    Text="返回模板页" OnClientClick="document.location.href='TemplateManage.aspx';return false;"/>
            </div>
        </div>
        <br />
        <br />
    </form>
</asp:Content>
