<%@ Page Language="C#" MasterPageFile="BloggerAdmin.master" AutoEventWireup="true" Inherits="Ruiao.WebSite.Blogger.Admin.ReferersManage" Codebehind="ReferersManage.aspx.cs" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<asp:Content ID="MyContent" ContentPlaceHolderID="cphMainAdmin" Runat="Server">
<form id="MainForm" runat="server">
<div id="ContentTitle"><%=MyTitle %></div>
<div id="ContentBody">
    <asp:Repeater ID="rpReferers" runat="server">
    <HeaderTemplate>
    <table id="ReferersList" class="MainContentTable" cellpadding="3" cellspacing="1">
	<tr class="MainContentList_HeadTR">
		<td class="MainContentList_HeadTD" style="width:30px;">ID</td>
		<td class="MainContentList_HeadTD" style="width:auto;">来源地址</td>
		<td class="MainContentList_HeadTD" style="width:auto;">本地路径</td>
		<td class="MainContentList_HeadTD" style="width:40px;">访问</td>
		<td class="MainContentList_HeadTD" style="width:120px;">更新时间</td>
		<td class="MainContentList_HeadTD" style="width:30px;">选择</td>
		
	</tr>
    </HeaderTemplate>
    <ItemTemplate>
    	<tr class="MainContentList_ItemTR">
		<td class="MainContentList_ItemTD"><asp:Label ID="lbID" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ID")%>' /></td>
		<td class="MainContentList_ItemTD"><%# String.IsNullOrEmpty(DataBinder.Eval(Container, "DataItem.ReferingUrl").ToString()) ? "书签或者直接访问" : DataBinder.Eval(Container, "DataItem.ReferingUrl")%></td>
		<td class="MainContentList_ItemTD"><%# DataBinder.Eval(Container, "DataItem.LocalUrl")%></td>
		<td class="MainContentList_ItemTD"><%# DataBinder.Eval(Container, "DataItem.Hits") %></td>
		<td class="MainContentList_ItemTD"><%# DataBinder.Eval(Container, "DataItem.UpdateTime") %></td>
		<td class="MainContentList_ItemTD"><asp:CheckBox ID="cbxSelect" runat="server" /></td>
	</tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
    </asp:Repeater>
    <div>
    <div style="float:left;">
    <cc1:aspnetpager id="Pager" runat="server" AlwaysShow='true' OnPageChanged="Pager_PageChanged" PageSize="25"></cc1:aspnetpager>
    </div>
    <div style="float:right; padding:5px">
    <asp:Button ID="btDelete" runat="server" OnClick="btDelete_Click" Text="删除所选引用" CssClass="SubmitButton" />
    <asp:Button ID="btClean" runat="server" OnClick="btClean_Click" Text="清除全部" CssClass="SubmitButton" />
    </div>
    </div>
</div>
<div id="ContentBottom"></div>
</form>
</asp:Content>