<%@ Page Title="" Language="C#" MasterPageFile="~/Master/UserMaster.master" CodeBehind="RewardLogList.aspx.cs" Inherits="WAP2P.Web.PC.User.Reward.RewardLogList" %>
<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>
            </table>
        </form>
        <table class="table-normal mt25  js-ajaxlist">
            <tr>
                <th width="20%" class="g-fleft pl10">参与活动</th>
                <th width="20%">奖励金额/已使用</th>
                <th width="30%" class="g-fleft pl10">奖励说明</th>
                <th width="15%">奖励时间</th>
                <th width="15%">到期时间</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.BorrowLoan.PromotionLog">
        <ItemTemplate>
            <tr>
                <td class="g-fleft pl10"><%# Item.ListName %></td>
                <td><%# Item.RewardMoney.ToMoneyString() %>元/<%# Item.RewardMoneyUsed.ToMoneyString() %>元</td>
                <td class="g-fleft pl10"><%# Item.RewardDescription %></td>
                <td><%# Item.CreateAt.ToDateString() %></td>
                <td><%# Item.Expires.ToDateString("长期") %></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>
