<%@ Page Title="" Language="C#" MasterPageFile="~/Master/UserMaster.master" CodeBehind="LoginHistory.aspx.cs" Inherits="WAP2P.Web.PC.User.Info.LoginHistory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="m-userbox">
        <dl class="ui-tab">
            <dt><a href="/User/Info/SafeCenter<%= PageExt %>">安全中心</a></dt>
            <dt><a href="javascript:void(0);" class="on">登录历史</a></dt>
            <dd>
                <div class="m-prompt mt20 pl10 pr10">
                    <div class="prompt-left g-left mt10">
                        您上次登录情况：
                        <span class="fcred-3 g-fbold fs16 mt10 mb5 g-fcenter g-block"><%= WAP2P.Sys.Area.GetLocation(CurrentUser.PreLoginIP).Item2 %></span>
                        <span class="fs12 ff-songti g-fcenter g-block"><%= CurrentUser.PreLoginAt.ToDateTimeString() %></span>
                    </div>
                    <div class="prompt-small g-right">
                        <p>系统将根据您上次登录所在地的IP地址，推断出具体所在省市，如果你发现地点或登陆时间不熟悉，请联系客服人员，并及时的修改<a href="/User/Info/ModifyPassword<%= PageExt %>">登录密码</a>。以免造成不必要的损失。</p>
                        <p>详细情况具体请查看 <a href="/Help/" target="_blank">帮助中心</a>。</p>
                    </div>
                </div>
                <form action="?action=search" method="get" class="search"></form>
                <table class="table-normal mt25 js-ajaxlist">
                    <tr>
                        <th class="g-fleft pl10" style="width: 40%;">登录地址</th>
                        <th style="width: 30%;">登录IP</th>
                        <th style="width: 30%;">操作时间</th>
                    </tr>
                </table>
            </dd>
        </dl>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
    <ruson:Repater runat="server" ID="rptList" ItemType=" WAP2P.Member.LoginHistory">
        <ItemTemplate>
            <tr>
                <td class="g-fleft"><%# Item.Address %></td>
                <td><%# Item.LoginIP %></td>
                <td><%# Item.LoginAt.ToDateTimeString() %></td>
            </tr>
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="3" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="3">
            <div class="ui-pages g-fright">
                <ruson:Pager runat="server" ID="pages" CssClass="pages" /><a href="<% =Request.RawUrl.UrlEncodeParam() %>" class="g-hide"></a>
            </div>
        </td>
    </tr>
</asp:Content>
