<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MakeHTML.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.ContentRelease.MakeHTML" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>发布内容</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="no-cache" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <link rel="stylesheet" type="text/css" href="../Style.css" />

    <script language="javascript" type="text/javascript" src="../../Images/skysoft.js"></script>

    <style type="text/css">
        fieldset
        {
            margin-bottom: 10px;
        }
        .main
        {
            width: 500px;
            margin-left: auto;
            margin-right: auto;
        }
        .RowTitle
        {
            width: 100px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="90000"
        EnableScriptGlobalization="True" EnableScriptLocalization="True">
    </asp:ScriptManager>
 
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Wizard ID="Wizard1" runat="server" BackColor="#EFF3FB" BorderColor="#B5C7DE"
                OnNextButtonClick="Wizard1_NextButtonClick" Width="100%" ActiveStepIndex="2">
                <StepStyle ForeColor="#333333" />
                <WizardSteps>
                    <asp:WizardStep runat="server" Title="第一步">
                        <asp:RadioButtonList ID="RBL_MakeType" runat="server" OnSelectedIndexChanged="RBL_MakeType_SelectedIndexChanged">
                            <asp:ListItem Value="1" Selected="True">Ajax式生成</asp:ListItem>
                            <asp:ListItem Value="2">自定义多线程并发生成</asp:ListItem>
                        </asp:RadioButtonList>
                        <table class="WorkArea" style="width: 100%">
                            <tr>
                                <td rowspan="2" class="RowTitle" style="width: 100px; vertical-align: top;">
                                    Ajax式生成
                                </td>
                                <td>
                                    优点，通过浏览器进行控制生成，能实时显示进度，能随时停止，节省服务器资源。<br />
                                    能回避虚拟主机商苛刻的应用程序池回收设置。
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    缺点，生成速度慢，需要开着页面。
                                </td>
                            </tr>
                            <tr>
                                <td rowspan="2" class="RowTitle" style="width: 100px; vertical-align: top;">
                                    自定义多线程并发生成
                                </td>
                                <td>
                                    优点，纯服务端生成，速度非常快，可以关闭浏览器
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    缺点，通过多线程并发生成，只能亚实时显示进度，没有停止开关，单位时间内耗费服务器资源多。<br />
                                    虚拟主机商苛刻的应用程序池回收设置，会导致它被强行停止。
                                </td>
                            </tr>
                        </table>
                    </asp:WizardStep>
                    <asp:WizardStep runat="server" Title="第二步">
                        <asp:RadioButtonList ID="RBL_DataType" runat="server">
                            <asp:ListItem Selected="True" Value="0">内容页</asp:ListItem>
                            <asp:ListItem Value="1">栏目页</asp:ListItem>
                            <asp:ListItem Value="2">专题页</asp:ListItem>
                            <asp:ListItem Value="3">整站/频道首页</asp:ListItem>
                            <asp:ListItem Value="4">以上全部页面</asp:ListItem>
                        </asp:RadioButtonList>
                    </asp:WizardStep>
                    <asp:WizardStep runat="server" Title="第三步">
                        <asp:Literal ID="Li_Err" runat="server"></asp:Literal>
                        <div id="main" class="main">
                            <fieldset runat="server" id="ContentPage">
                                <legend>内容页</legend>
                                <table cellspacing="10" style="width: 650px;">
                                    <tr>
                                        <td class="RowTitle">
                                            生成最新
                                        </td>
                                        <td>
                                            <asp:TextBox ID="NTB_ZuiXin" runat="server" Text="5"></asp:TextBox>
                                            <asp:Label ID="LB_ContentUnit" runat="server"></asp:Label>
                                            <asp:Label ID="LB_ContentName" runat="server"></asp:Label>
                                            <asp:Button ID="BT_MakeNew" runat="server" CssClass="btn" OnClick="BT_MakeNew_Click"
                                                Text="生成" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="RowTitle">
                                            按ID范围
                                        </td>
                                        <td>
                                            从
                                            <asp:TextBox ID="TB_MinID" runat="server" Width="104px" />
                                            到
                                            <asp:TextBox ID="TB_MaxID" runat="server" Width="120px" />
                                            <asp:Button ID="BT_MakeNewForID" runat="server" CssClass="btn" OnClick="BT_MakeNewForID_Click"
                                                Text="生成" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="RowTitle">
                                            按日期
                                        </td>
                                        <td>
                                            <asp:TextBox ID="TB_MinDate" runat="server"></asp:TextBox>
                                            ---
                                            <asp:TextBox ID="TB_MaxDate" runat="server"></asp:TextBox>
                                            <asp:Button ID="BT_MakeForDate" runat="server" CssClass="btn" OnClick="BT_MakeForDate_Click"
                                                Text="生成" />
                                        </td>
                                    </tr>
                                </table>
                                <div id="div_Progress1" runat="server" visible="false" style="text-align: center;
                                    cursor: pointer; margin-top: 10px; font-weight: bold">
                                    查看生成进度</div>
                            </fieldset>
                            <fieldset runat="server" id="ClassPage">
                                <legend>栏目页</legend>
                                <table cellspacing="10" style="width: 650px;">
                                    <tr>
                                        <td class="RowTitle">
                                            生成栏目：
                                        </td>
                                        <td>
                                            <asp:ListBox ID="LTB_Class" runat="server" Height="200px" Rows="8" SelectionMode="Multiple">
                                            </asp:ListBox>
                                            <asp:Button ID="BT_MakeClass" runat="server" CssClass="btn" EnableViewState="False"
                                                OnClick="BT_MakeClass_Click" Text="生成选定项" />
                                            <div id="div_Progress2" runat="server" visible="false" style="text-align: center;
                                                cursor: pointer; margin-top: 10px; font-weight: bold">
                                                查看生成进度</div>
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                            <fieldset runat="server" id="SpecialPage">
                                <legend>专题页</legend>
                                <table cellspacing="10" style="width: 650px;">
                                    <tr>
                                        <td class="RowTitle">
                                            生成专题：
                                        </td>
                                        <td>
                                            <asp:ListBox ID="LTB_Special" runat="server" Height="200px" Rows="8" SelectionMode="Multiple">
                                            </asp:ListBox>
                                            <asp:Button ID="BT_MakeSpecial" runat="server" CssClass="btn" EnableViewState="False"
                                                OnClick="BT_MakeSpecial_Click" Text="生成选定项" />
                                            <div id="div_Progress3" runat="server" visible="false" style="text-align: center;
                                                cursor: pointer; margin-top: 10px; font-weight: bold">
                                                查看生成进度</div>
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                            <fieldset runat="server" id="IndexPage">
                                <legend>首页</legend>
                                <table cellspacing="10" style="width: 100%;">
                                    <tr>
                                        <td class="RowTitle">
                                            生成频道首页：
                                        </td>
                                        <td>
                                            <asp:Button ID="BT_ChannelIndex" runat="server" CssClass="btn" OnClick="BT_ChannelIndex_Click"
                                                Text="生成" />
                                            <asp:CheckBox ID="CB_AllChannel" runat="server" Text="全部频道" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="RowTitle">
                                            生成整站首页：
                                        </td>
                                        <td>
                                            <asp:Button ID="BT_Index" runat="server" CssClass="btn" OnClick="BT_Index_Click"
                                                Text="生成" />
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                            <fieldset runat="server" id="AllPage">
                                <legend>生成该模型全部静态页</legend>
                                <div style="text-align: center;">
                                    <asp:Button ID="BT_ALL" runat="server" CssClass="btn" OnClick="BT_ALL_Click" Text="生成全部" />
                                </div>
                                <div id="div_Progress4" runat="server" visible="false" style="text-align: center;
                                    cursor: pointer; margin-top: 10px; font-weight: bold">
                                    查看生成进度</div>
                                <br />
                            </fieldset>
                        </div>
                    </asp:WizardStep>
                </WizardSteps>
                <SideBarButtonStyle BackColor="#507CD1" Font-Names="Verdana" ForeColor="White" />
                <NavigationButtonStyle CssClass="btn" />
                <SideBarStyle BackColor="#507CD1" Font-Size="0.9em" VerticalAlign="Top" Width="100px" />
                <HeaderStyle BackColor="#284E98" BorderColor="#EFF3FB" BorderStyle="Solid" BorderWidth="2px"
                    Font-Bold="True" Font-Size="0.9em" ForeColor="White" HorizontalAlign="Center" />
            </asp:Wizard>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
