<%@ Page Language="c#" Inherits="TopWinCMS.WebUI.Admin.ArticleGather_Main" CodeBehind="ArticleGather_Main.aspx.cs" %>

<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<!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">
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="no-cache" http-equiv="Pragma" />
    <title>采集任务</title>
    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>
    <link rel="stylesheet" type="text/css" href="../Style.css" />
    <script language="javascript" src="../../Images/skysoft.js" type="text/javascript"></script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table id="NavigationPath" border="0" cellpadding="4" cellspacing="0" width="100%">
                <tr>
                    <td>
                        <img src='../../Images/arrow.gif' alt="" />
                        您现在的位置：&nbsp;
                        <asp:Label ID="LB_Path" runat="server"></asp:Label>
                    </td>
                     <td style="width: auto; text-align: right">
                        搜索：&nbsp;
                        <asp:TextBox ID="TB_KeyWord" runat="server"></asp:TextBox>&nbsp;
                        <asp:Button ID="BT_Search" runat="server" Text="搜索" EnableViewState="False" CssClass="btn"
                            OnClick="BT_Search_Click"></asp:Button>
                    </td>
                </tr>
            </table>
            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                OnRowDataBound="GV_List_RowDataBound" OnRowDeleting="GV_List_RowDeleting" EnableModelValidation="True">
                <Columns>
                    <asp:TemplateField HeaderText="任务别名">
                        <ItemTemplate>
                            <a href="ArticleGather_Add.aspx?ModelID=<%=Request["ModelID"] %>&ID=<%# Eval("ID") %>">
                                【<%# Eval("Name") %>】</a>
                            <div>
                                <a href="<%# Eval("StartUrl") %>" target="_blank">
                                    <%# Eval("StartUrl")%></a></div>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="采集">
                        <ItemTemplate>
                              <a href="#" onclick="return NewTabPage('采集','采集','ArticleGather/ArticleGather_WrokConfig.aspx?ModelID=<%=Request["ModelID"] %>&ID=<%# Eval("ID") %>');">采集</a>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="规则节点">
                        <ItemTemplate>
                            <a href="RuleNode.aspx?ModelID=<%=Request["ModelID"] %>&PID=<%# Eval("ID") %>">规则节点</a>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="60px" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="ClassName" HeaderText="栏目">
                        <ItemStyle HorizontalAlign="Center" Width="120px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="LastWork" DataFormatString="{0:yy-MM-dd HH:mm:ss}" HeaderText="最后采集"
                        HtmlEncode="False">
                        <ItemStyle HorizontalAlign="Center" Width="110px" />
                    </asp:BoundField>
                    <asp:CommandField HeaderText="删除" ShowDeleteButton="True">
                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                    </asp:CommandField>
                </Columns>
                <HeaderStyle CssClass="HeaderStyle" />
            </asp:GridView>
            <div class="pagefield">
                <cc1:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging"
                    EnableViewState="False" SubmitButtonClass="btn">
                </cc1:PageNavigation>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
