<%@ page language="C#" autoeventwireup="true" inherits="admin_Collection_CollectionList, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Import Namespace="D.Common" %>
<%@ 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" />
</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> >> <a href="collectionlist.aspx">采集项目列表</a><asp:Literal ID="LitStyleClass" runat="server"></asp:Literal>
            </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="20%" class="t1">
                        项目名称
                    </td>
                    <td width="20%">
                        采集网站名称
                    </td>
                    <td width="12%">
                        所属模型
                    </td>
                    <td width="8%">
                        可采集
                    </td>
                    <td width="40%">
                        操作
                    </td>
                </tr>
                <asp:Repeater ID="RepCollectionClass" runat="server" OnItemCommand="RepCollectionClass_ItemCommand">
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                            <td align="center" class="t1">
                                <img src="../images/folder.gif" />
                            </td>
                            <td colspan="3">
                                <a href='collectionList.aspx?ParentId=<%#Eval("Id") %>'><%#Eval("Name") %></a>
                            </td>
                            <td align="center">
                            <a href='collectionclass.aspx?Id=<%#Eval("Id") %>'>修改</a> ┊ <asp:LinkButton ID="lnkDelete" runat="server" Text="移除" CommandName="delete" CommandArgument='<%#Eval("Id") %>' OnClientClick="return confirm('确定移除该采集分类吗?')"></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
                <asp:Repeater ID="RepCollectionItem" runat="server" OnItemCommand="RepCollectionItem_Delete">
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                            <td align="center" class="t1">
                                <%#Eval("Name") %>
                            </td>
                            <td align="center">
                                <%#Eval("WebSite") %>
                            </td>
                            <td align="center">
                                <%#Eval("ModelName") %>
                            </td>
                            <td align="center">
                                <%#Function.GetStyleTrue(GetIsCollection(Eval("ItemId", "{0}")))%>
                            </td>
                            <td align="center"><a href="SetCollection.aspx?ItemId=<%#Eval("ItemId") %>">项目</a> ┊ <a href="SetCollection2.aspx?ItemId=<%#Eval("ItemId") %>">列表</a> ┊ <a href="SetCollection3.aspx?ItemId=<%#Eval("ItemId") %>">字段</a> ┊ <a href="Collection.aspx?ItemId=<%#Eval("ItemId") %>">开始采集</a>  ┊ <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Copy" CommandArgument='<%# Eval("ItemId") %>'>复制</asp:LinkButton> ┊ <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" CommandArgument='<%# Eval("ItemId") %>' 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>
    </form>
</body>
</html>
