<%@ page title="" language="C#" masterpagefile="../../Common/MasterPage.master" autoeventwireup="true" inherits="Admin_Modules_UI_Default, App_Web_52exx4on" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="../../images/site.css" rel="stylesheet" type="text/css" /> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">
 <asp:Label runat="server" ID="lbl_result" Visible="false" ForeColor="Red" Font-Bold="true"></asp:Label>
  <asp:DataGrid runat="server" ID="grid_PageList" AllowCustomPaging="false" AllowPaging="false" Width="97%" AutoGenerateColumns="false" Caption="模板列表" CaptionAlign="Left">
    <Columns>
      <asp:TemplateColumn> 
      <HeaderTemplate>名称</HeaderTemplate>
      <ItemTemplate><a href="Detail.Aspx?Folder=<%# DataBinder.Eval(Container.DataItem, "Folder")%>"><%# DataBinder.Eval(Container.DataItem, "Name")%></a></ItemTemplate>
      </asp:TemplateColumn>
      <asp:HyperLinkColumn HeaderText="作者" DataNavigateUrlField="Link" DataTextField="Author"></asp:HyperLinkColumn>
      <asp:TemplateColumn> 
      <HeaderTemplate>目录名</HeaderTemplate>
      <ItemTemplate><%# DataBinder.Eval(Container.DataItem, "Folder")%></ItemTemplate>
      </asp:TemplateColumn>
      <asp:TemplateColumn> 
      <HeaderTemplate>样式数</HeaderTemplate>
      <ItemTemplate><%# System.IO.Directory.GetDirectories(Server.MapPath("~/UI/")+DataBinder.Eval(Container.DataItem, "Folder")+"/Themes").Length.ToString()%></ItemTemplate>
      </asp:TemplateColumn>
      <asp:TemplateColumn> 
      <HeaderTemplate>状态</HeaderTemplate>
      <ItemTemplate><%# DataBinder.Eval(Container.DataItem, "Folder").ToString().ToLower()==Aspxsite.Objects.SiteConfig.Template.ToLower()?"<font color=\"red\">当前模板</font> | ":"" %> <%# Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "Broken"))?"XML错误或目录不完整":"正常" %></ItemTemplate>
      </asp:TemplateColumn>
     
    </Columns>
  </asp:DataGrid>
</asp:Content>

