<%@ page language="C#" autoeventwireup="true" inherits="admin_collection_CollectionHistoryList, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Import Namespace="D.Common" %>
<%@ Import Namespace="D.BLL" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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 src="../../js/<%=B_Lang.getLang() %>/SelectCheckBox.js" language="javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <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> >> 采集历史记录
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table align="center" cellpadding="2" cellspacing="1" width="99%" class="border">
                <tr class="title">
                    <td width="5%" class="t1">
                        选择
                    </td>
                    <td width="15%">
                        项目名称
                    </td>
                    <td width="10%">
                        所属模型
                    </td>
                    <td width="10%">
                        采集Url
                    </td>
                    <td width="5%">
                        结果
                    </td>
                    <td>
                        备注
                    </td>
                    <td width="15%">
                        操作
                    </td>
                </tr>
                <asp:Repeater ID="RepCollectionHistory" runat="server" OnItemCommand="RepCollectionHistory_Delete">
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                            <td align="center" class="t1">
                                <asp:CheckBox ID="CheckBox1" runat="server" /><asp:TextBox ID="TextBox1" runat="server"
                                    Text='<%#Eval("url") %>' Style="display: none"></asp:TextBox><asp:TextBox ID="TextBox2"
                                        runat="server" Text='<%#Eval("ItemId") %>' Style="display: none"></asp:TextBox><asp:TextBox ID="TextBox3"
                                        runat="server" Text='<%#Eval("Id") %>' Style="display: none"></asp:TextBox>
                            </td>
                            <td align="center">
                                <%#Eval("ItemName") %>
                            </td>
                            <td align="center">
                                <%#Eval("ModelName") %>
                            </td>
                            <td align="center">
                                <a href="<%#Eval("url") %>" target="_blank">浏览地址</a>
                            </td>
                            <td align="center">
                                <%#Function.GetStyleTrue(Eval("IsSucceed","{0}"))%>
                            </td>
                            <td align="center">
                                <%#Eval("Content") %>
                            </td>
                            <td align="center">
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Collection" CommandArgument='<%# Eval("url") %>'>重新采集</asp:LinkButton>
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" CommandArgument='<%# Eval("Id") %>'
                                    OnClientClick="return confirm('确定删除该条记录吗?')">删除</asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <table cellpadding="0" cellspacing="1" class="dh2" align="center">
                <tr>
                    <td>
                        <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页"
                            LastPageText="尾页" NextPageText="下一页" PageSize="20" HorizontalAlign="Right" PrevPageText="上一页"
                            showinputbox="Never" UrlPageIndexName="p" UrlPaging="True" ShowCustomInfoSection="Left"
                            Width="99%">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <table cellpadding="0" cellspacing="1" class="dh2" align="center">
        <tr>
            <td height="30">
                <input id="checkDel" onclick="CheckDelBox(this)" type="checkbox"><span id="ShowA">选择全部</span>
                <asp:Button ID="Button1" runat="server" Text="采集选择URL" CssClass="btn" Style="margin-left: 10px"
                    OnClick="Button1_Click"></asp:Button><asp:Button ID="Button2" 
                    runat="server" Text="删除选中记录"
                        CssClass="btn" Style="margin-left: 10px" onclick="Button2_Click" />
                <asp:Button ID="Button3" runat="server"
                            Text="清空所有记录" CssClass="btn" Style="margin-left: 10px" 
                    onclick="Button3_Click" /><asp:Button ID="Button4"
                                runat="server" Text="删除所有成功记录" CssClass="btn" 
                    Style="margin-left: 10px" onclick="Button4_Click" /><asp:Button
                                    ID="Button5" runat="server" Text="删除所有失败记录" CssClass="btn" 
                    Style="margin-left: 10px" onclick="Button5_Click" />
            </td>
        </tr>
    </table>
    <table cellpadding="0" cellspacing="1" class="dh2" align="center">
        <tr>
            <td>
                重新采集：是将现有URL地址内容重新采集到数据库中，建议只对采集失败URL地址进行重新采集
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
