<%@ Page Title="" Language="C#" MasterPageFile="~/Master/UserMaster.master" CodeBehind="AccountLogList.aspx.cs" Inherits="WAP2P.Web.PC.User.Account.AccountLogList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="m-userbox m-buserbox">
        <form action="?action=search" method="get" class="search">
            <table class="m-filter js-filter mt20">
                <tr class="filter-date">
                    <th style="width:12%;">日期范围</th>
                    <td>
                        <input type="text" class="text w130 ui-date" name="startAt" id="startAt" value="<% =Request.QueryString["startAt"].UrlEncode() %>" data-maxdate="#endAt" />
                        <span>-</span>
                        <input type="text" class="text w130 ui-date" name="endAt" id="endAt" value="<% =Request.QueryString["endAt"].UrlEncode() %>" data-mindate="#startAt" data-maxdate="<%= DateTime.Now.AddDays(1).ToDateString() %>" />
                        <a href="javascript:void(0);" data-filter-to="#startAt|#endAt" data-filter-value="<%= DateTime.Now.AddDays(-7).ToDateString() %>|<%= DateTime.Now.AddDays(1).ToDateString() %>">近一周</a>
                        <a href="javascript:void(0);" data-filter-to="#startAt|#endAt" data-filter-value="<%= DateTime.Now.AddMonths(-1).ToDateString() %>|<%= DateTime.Now.AddDays(1).ToDateString() %>">近一月</a>
                        <a href="javascript:void(0);" data-filter-to="#startAt|#endAt" data-filter-value="<%= DateTime.Now.AddMonths(-3).ToDateString() %>|<%= DateTime.Now.AddDays(1).ToDateString() %>">近三月</a>
                        <a href="javascript:void(0);" data-filter-to="#startAt|#endAt" data-filter-value="<%= DateTime.Now.AddYears(-1).ToDateString() %>|<%= DateTime.Now.AddDays(1).ToDateString() %>">近一年</a>
                    </td>
                </tr>
                <tr class="filter-style">
                    <th style="width:12%;vertical-align:top">交易类型</th>
                    <td>
                        <a href="javascrip:void(0);" class="on" data-filter-to="#type" data-filter-value="">全部</a>
                        <asp:Repeater runat="server" ID="rptStatusFilter">
                            <ItemTemplate>
                                <a href="javascrip:void(0);" data-filter-to="#type" data-filter-value="<%# Eval("Key") %>"><%# Eval("Value") %></a>
                            </ItemTemplate>
                        </asp:Repeater>
                        <input type="hidden" name="type" id="type" value="<% =Request.QueryString["type"].UrlEncode() %>" />
                    </td>
                </tr>
            </table>
        </form>
        <table class="table-normal mt25 js-ajaxlist">
            <tr>
                <th width="10%">交易方</th>
                <th width="20%">交易类型</th>
                <th width="15%">影响金额</th>
                <th width="35%">详细说明</th>
                <th width="20%">操作时间</th>
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
    <ruson:Repater runat="server" ID="rptList" ItemType="WAP2P.Account.UserAccountLog">
        <ItemTemplate>
            <tr>
                <td class="g-fleft"><%# Item.TargetUserName %></td>
                <td><%# Item.Type.GetDescription() %></td>
                <td class="<%# Item.Money >= 0 ? "fcred-3" : "fcgreen-3" %>" ><span title="<%# Item.Money.ToMoneyString() %> 元"><%# Item.Money.ToMoneyString() %> 元</td>
                <td class="g-fleft"><span title="<%# Item.Remark.HtmlEncode() %>"><%# Item.Remark.LeftX(30) %></td>
                <td><%# Item.CreateAt.ToDateTimeString() %></td>
            </tr>
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="5" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="5">
            <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>