<%@ page language="C#" autoeventwireup="true" inherits="admin_collection_collectionlistdata, 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 type="text/javascript" language="javascript" src="../../js/Common.js"></script>
    <script type="text/javascript" src="../../js/<%=B_Lang.getLang() %>/Collection.js"></script>
</head>
<body>
    <form id="form1" runat="server" method="post">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick" Interval="300">
    </asp:Timer>
    <asp:Timer ID="Timer2" runat="server" OnTick="Timer2_Tick" Interval="100">
    </asp:Timer>
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> <a href="listdata.aspx">采集项目列表</a>
                >> <asp:Literal ID="LitItem" runat="server"></asp:Literal>
            </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="UpdatePanel1" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        采集总数：<asp:Literal ID="LitCount" runat="server" Visible="false"></asp:Literal><asp:Image
                            ID="ImgCount" runat="server" ImageUrl="../images/loading.gif" />
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="Timer1" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td>
                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        已采集数：<asp:Literal ID="LitProgValue" runat="server"></asp:Literal>
                        <span style="margin-left: 20px;">完成比例：<asp:Label ID="lblPercent" runat="server"></asp:Label></span><span
                            style="margin-left: 20px;">执行时间：<asp:Label ID="LabTime" runat="server"></asp:Label></span>
                        <asp:Panel HorizontalAlign="Left" ID="panelBarSide" runat="server" Width="600px"
                            BorderWidth="1px" ForeColor="Silver">
                            <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>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="Timer2" EventName="Tick" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td><input id="Button2" type="button" value="终止任务" onclick="AbortThreadToListData()" class="btn radius30 pad_0_30" /><input id="Button1" type="button" value="暂停任务" onclick="SuspendThreadToListData()" class="btn radius30 pad_0_30" style="margin-left:10px;" /><input id="Button3" type="button" value="继续任务" onclick="ResumeThreadToListData()" class="btn radius30 pad_0_30" style="margin-left:10px;" /></td>
        </tr>
    </table>
    </form>
</body>
</html>
