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

<%@ Register Assembly="BX.Common" Namespace="Common" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentHead" runat="server">
    <style type="text/css">

        .selectdisable{color:#d1d1d1;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentCenter" runat="server">
    <form id="form1" runat="server">
        <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" CheckBox="False" CheckBoxDataIndex="0" CssClass="grid" ItemName="_ExtGridView" DisableShortcuts="False">
                    <AlternatingRowStyle CssClass="tr2"></AlternatingRowStyle>
                    <Columns>
                        <asp:BoundField DataField="TemplateName" HeaderText="模板名称" />
                        <asp:BoundField DataField="TemplateCreateTime" HeaderText="创建时间">
                            <ItemStyle Width="150px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ModifyTime" HeaderText="修改时间">
                            <ItemStyle Width="150px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="标签管理">
                            <ItemTemplate>
                                <a href="TemplateLabelManage.aspx?name=<%#Eval("TemplateName") %>">查看</a>
                            </ItemTemplate>
                            <HeaderStyle Width="100px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <a href="TemplateManage.aspx?cmd=build&name=<%#Eval("TemplateName") %>&use=<%#Eval("Use")%>">生成</a>
                                &nbsp;&nbsp;
                                <%#TemplcateSelected(Eval("TemplateName").ToString())%>
                            </ItemTemplate>
                            <ItemStyle Width="220px" />
                        </asp:TemplateField>
                    </Columns>

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

                    <RowStyle HorizontalAlign="Center" CssClass="tr1"></RowStyle>
                </cc1:ExtendedGridView>
            </div>
        </div>
    </form>
</asp:Content>
