<%@ page language="C#" autoeventwireup="true" inherits="admin_create_createrule, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Import Namespace="D.BLL" %>
<!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>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script>
        function AbortThread() {
            D.BLL.B_Create_Rule.AbortThread();
        }
        function SuspendThread() {
            D.BLL.B_Create_Rule.SuspendThread();
        }
        function ResumeThread() {
            D.BLL.B_Create_Rule.ResumeThread();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Timer ID="Timer2" runat="server" OnTick="Timer2_Tick" Interval="200">
    </asp:Timer>
    <table class="dh4" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> 一键生成
            </td>
        </tr>
    </table>
    <table cellpadding="2" cellspacing="0" border="0" align="center" style="margin-top: 40px;"
        id="Table2" runat="server">
        <tr>
            <td>
                <asp:Literal ID="LitMsg" runat="server"></asp:Literal>
            </td>
        </tr>
    </table>
    <table cellpadding="2" cellspacing="0" border="0" align="center" style="margin-top: 40px;
        display: none" id="Table3" runat="server">
        <tr>
            <td>
                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <div style="line-height: 20px; width: 100%">
                            生成比例：<asp:Label ID="lblPercent" runat="server"></asp:Label><span style="margin-left: 20px;">生成时间：<asp:Label
                                ID="LabTime" runat="server"></asp:Label></span><span style="margin-left: 20px;"><asp:Literal
                                    ID="LitPlayName" runat="server"></asp:Literal></span></div>
                        <asp:Panel HorizontalAlign="Left" ID="panelBarSide" runat="server" Width="600px"
                            BorderWidth="1px" ForeColor="#666666">
                            <asp:Panel ID="panelProgress" runat="server" Height="20" Width="1px">
                            </asp:Panel>
                        </asp:Panel>
                        <asp:TextBox ID="txtUrl" runat="server" TextMode="MultiLine" Style="width: 100%;
                            height: 300px; word-break: break-all; word-wrap: break-word;" Wrap="false"></asp:TextBox>
                        <br />
                        <input id="Button2" type="button" value="终止生成" onclick="AbortThread()" class="btn"
                            runat="server" />
                        <input id="Button1" type="button" value="暂停生成" onclick="SuspendThread()" class="btn"
                            style="margin-left: 10px;display:none" runat="server" />
                        <input id="Button3" type="button" value="继续生成" onclick="ResumeThread()" class="btn"
                            style="margin-left: 10px;display:none" runat="server" />
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="Timer2" EventName="Tick" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
