<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ShowUserHitHistory.ascx.cs"
    Inherits="PowerEasy.Module.General.WebSite.Admin.Controls.Contents.ShowUserHitHistory" %>
<tr>
    <td colspan="2">
        <asp:ScriptManager ID="scriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="upd1" runat="server">
            <ContentTemplate>
                <pe:ExtendedGridView ID="egvHitHistory" runat="server" AutoGenerateColumns="False"
                    AllowPaging="True" DataSourceID="OdsHitHistory" DataKeyNames="ID">
                    <Columns>
                        <pe:BoundField DataField="ID" HeaderText="ID">
                        </pe:BoundField>
                        <pe:BoundField DataField="UserName" HeaderText="用户名">
                        </pe:BoundField>
                        <pe:BoundField DataField="Hits" HeaderText="浏览次数">
                        </pe:BoundField>
                        <pe:BoundField DataField="ScanIP" HeaderText="最后浏览IP">
                        </pe:BoundField>
                        <pe:BoundField DataField="HitTime" HeaderText="浏览时间">
                        </pe:BoundField>
                        <pe:BoundField DataField="LastHitTime" HeaderText="最后浏览时间">
                        </pe:BoundField>
                    </Columns>
                </pe:ExtendedGridView>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:ObjectDataSource ID="OdsHitHistory" runat="server" SelectMethod="GetHitHistoryList"
            TypeName="PowerEasy.Module.General.BusinessLogic.Contents.UserHitHistory" EnablePaging="True"
            SelectCountMethod="GetTotalOfHistory" MaximumRowsParameterName="maxNumberRows"
            StartRowIndexParameterName="startRowIndexId">
            <SelectParameters>
                <asp:QueryStringParameter Name="generalId" DefaultValue="0" QueryStringField="GeneralID" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </td>
</tr>
<tr class="tdbg">
    <td colspan="2">
        <br />
        <table border="0" width="100%">
            <tr>
                <td>
                    <strong>未浏览该内容的会员：</strong>
                </td>
                <td align="right">
                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                        <ContentTemplate>
                            <asp:DropDownList ID="dropUserGroup" runat="server" AutoPostBack="true" OnSelectedIndexChanged="dropUserGroup_Changed" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </table>
    </td>
</tr>
<tr>
    <td valign="top" colspan="2">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div id="DivUserName" runat="server" align="center" visible="false" class="tdbg">
                    未找到任何用户！</div>
                <asp:Repeater ID="RepUser" runat="server" OnItemDataBound="RepUser_ItemDataBound">
                    <HeaderTemplate>
                        <table width="100%" border="0" cellspacing="1" cellpadding="1" class="border">
                            <tr class="tdbg">
                    </HeaderTemplate>
                    <ItemTemplate>
                        <td align="center">
                            <%# Container.DataItem%>
                        </td>
                        <% 
                            i++;
                            if (i == pagerecordCount)
                            {
                                for (int k = 0; k < missingCount; k++)
                                {
                        %>
                        <td>
                        </td>
                        <%}
                            }%>
                        <% if (i % 8 == 0 && i > 1)
                           {%>
                        </tr><tr class="tdbg">
                            <%} %>
                    </ItemTemplate>
                    <FooterTemplate>
                        </tr></table>
                    </FooterTemplate>
                </asp:Repeater>
            </ContentTemplate>
        </asp:UpdatePanel>
    </td>
</tr>
<tr calss="tdbg">
    <td align="center" colspan="2">
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <pe:AspNetPager ID="Pager" PageSize="40" runat="server" OnPageChanged="Pager_PageChanged"
                    CssClass="tdbg">
                </pe:AspNetPager>
            </ContentTemplate>
        </asp:UpdatePanel>
    </td>
</tr>
