<%@ Page Title="生成网站" Language="C#" MasterPageFile="~/Masters/Sys.Master" AutoEventWireup="true" CodeBehind="BuildPages.aspx.cs" Inherits="yueyaCMS.Admin.Site.BuildPages" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<ul class="breadcrumb">
<li><i class="icon-tags"></i> 您当前的位置：<a href="/Admin/Site/Default.aspx">系统首页</a></li>
<li><span class="divider">/</span> <span>生成网站</span></li>
</ul>
    <form id="form1" runat="server">
        <div style="margin-bottom:10px;">
                <div class="btn-group">
    <a class="btn btn-warning" href="BuildPages.aspx">查看全部</a>
    <button class="btn dropdown-toggle  btn-warning" data-toggle="dropdown">
    <span class="caret"></span>
    </button>
    <ul class="dropdown-menu"><%foreach(var v in pageTypes){ %>
    <li><a href="BuildPages.aspx?s=<%=v.ID %>"><%=v.Name %></a></li><%} %>
    </ul>
    </div>&nbsp;&nbsp;<a href="/Admin/Page/BuildSchedule.aspx" class="btn btn-success">生成任务进度</a>
        </div>
     <table class="table table-bordered table-hover">
     <tr><th colspan="5">系统可自动生成的页面</th></tr>
         <tr>
             <th>编号</th>
             <th>模板名称</th>
             <th>保存路径</th>
             <th>文件名称</th>
             <th>操作</th>
         </tr>
     <% Int32 i = 1; foreach (var v in BuildPageList)
        { %>
     <tr>
     <td><%=i %></td>
     <td title="<%=v.Summary %>"><a href="/Admin/Page/Edit.aspx?id=<%=v.ID %>"><%=v.PageName %></a></td>
     <td><%=v.SavePath %></td>
     <td><%=v.ExtensionName %></td>
     <td><a href="/Admin/Page/Builder.aspx?id=<%=v.ID %>&dataid=1" target="_blank" class="btn btn-success btn-mini">生成</a></td>
     </tr>
     <% i++;} %>

    
         <%if (Master_NewsInfo.ID!=0){ %>
     <tr>
         <td><%=i %></td>
         <td><a href="/Admin/Page/Edit.aspx?id=<%=Master_NewsInfo.ID %>"><%=Master_NewsInfo.PageName %></a></td>
         <td><%=Master_NewsInfo.SavePath %></td>
         <td><%=Master_NewsInfo.ExtensionName %></td>
         <td><a href="/Admin/Site/Setting.aspx" class="btn btn-warning btn-mini">配置</a></td>
     </tr>
         <%} %>
         <%if (Master_ProductInfo.ID!=0){ %>
     <tr>
        <td><%=++i %></td>
         <td><a href="/Admin/Page/Edit.aspx?id=<%=Master_ProductInfo.ID %>"><%=Master_ProductInfo.PageName %></a></td>
         <td><%=Master_ProductInfo.SavePath %></td>
         <td><%=Master_ProductInfo.ExtensionName %></td>
         <td><a href="/Admin/Site/Setting.aspx" class="btn btn-warning btn-mini">配置</a></td>
     </tr><%} %>


     </table>
     <div class="form-actions">
         <asp:Button ID="subBtn" runat="server" Text="一键生成" OnClientClick="return confirm('是否确认提交？')" CssClass="btn btn-primary btn-large" OnClick="subBtn_Click" />
         &nbsp;
         
     </div>

     </form>
    
</asp:Content>
