<%@ Page Title="模板创建" Language="C#" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="CreateTemplate.aspx.cs" Inherits="Solution.Admin.Contents.CreateTemplate" %>

<%@ 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">
        <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">
                    <Columns>
                        <asp:BoundField DataField="TemplateName" HeaderText="模板名称" />
                        <asp:BoundField DataField="TemplateCreateTime" HeaderText="创建时间" />
                        <asp:TemplateField HeaderText="模板用途">
                            <ItemTemplate>
                                <%#Eval("Use")==null || Eval("Use").ToString()=="web"?"主站":"商铺"%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <a href="CreateTemplate.aspx?build=true&name=<%#Eval("TemplateName") %>&use=<%#Eval("Use")%>">生成</a>
                                 <%#Eval("Use")==null || Eval("Use").ToString()=="web"?"<a href=\"CreateTemplate.aspx?cmd=default&name="+Eval("TemplateName")+"\">设为默认</a>":""%>
                                
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </cc1:ExtendedGridView>
            </div>
        </div>
    </form>
</asp:Content>
