<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master"  CodeBehind="UserCreditList.aspx.cs" Inherits="WAP2P.Web.PC.Admin.Member.UserCreditList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <dl class="ui-tabs">
        <dt><a href="javascript:" class="on">会员信用列表</a></dt>        
        <dd>
            <form action="?action=search" method="get" class="m-search">
                <table class="m-criteria" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th>信息筛选:</th>
                        <td>
                            <ruson:Select runat="server" ID="type" FillRequestValue="true">
                                <option value="会员账号">会员账号</option>
                            </ruson:Select>
                            <input type="text" name="key" placeholder="输入搜索条件" value="<% =Request.QueryString["key"].UrlEncode() %>" class="w250" />
                            <span class="ml20 js-inlinesubmit"><input type="submit" class="btn-base c-priority iconfont" value="&#xe60f; 搜索" /><input type="reset" class="btn-base c-normal iconfont" value="&#xe670; 清空条件" /></span>
                        </td>
                    </tr>
                </table>
            </form>
            <div class="m-content">
                <div class="m-oper">
                    <span class="iconfont"><i class="fs22 fcred-3">&#xe601;</i>账户锁定<i class="fs22 fcjade-1">&#xe618;</i>账户开启</span>
                </div>
                <table class="m-list" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th width="5%">编号</th>
                        <th width="20%" class="g-fleft">会员账号</th>
                        <th width="12%">会员类型</th>
                        <th width="14%">所属会员组</th>
                        <th width="14%">风险类型</th>
                        <th width="8%">信用等级</th>                     
                        <th width="11%">状态</th>    
                        <th width="15%">操作</th>
                    </tr>
                </table>
            </div>
        </dd>
    </dl>
</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.Member.User">
        <ItemTemplate>
            <tr id="tr<%# Item.Id %>">
                <td><%# Item.Id %></td>
                <td class="g-fleft g-fbold"><%# GetUserDisplay(Item.Id, Item.Name) %></td>
                <td><%# Item.GetUserType().Name %></td>
                <td><%# Item.GetGroup().Name %></td>
                <td><%# Item.GradeLevel.GetDescription() %></td>
                <td><%# WAP2P.Sys.CreditLevel.GetLevel(Item.Credit) == null ? "暂无信用等级" : WAP2P.Sys.CreditLevel.GetLevel(Item.Credit).Name %></td>
                <td><%# Item.IsLock ? "<i class='iconfont fs22 fcred-3'>&#xe601;</i>" : "<i class='iconfont fs22 fcjade-1'>&#xe618;</i>" %></td>
                <td>
                    <a class="iconfont oper" href="javascript:void(0);" onclick="<%# string.Format("$.jPopupEdit('查看', 'UserCreditDetail.aspx?ID={0}&action=view');", Item.Id) %>">&#xe655; 查看</a>
                    <ruson:PermissionSpace runat="server" Module="会员管理" Function="会员信用管理" Operate="调整"><a class="iconfont oper edit" href="javascript:void(0);" onclick="<%# string.Format("$.jPopupEdit('信用等级调整申请', 'UserCreditDetail.aspx?ID={0}');", Item.Id) %>">&#xe642; 调整</a></ruson:PermissionSpace>
                </td>
            </tr>
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="8" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="8">
            <ruson:Pager runat="server" ID="pages" CssClass="pages" />
            <a href="<% =Request.RawUrl %>" class="g-hide"></a>
        </td>
    </tr>
</asp:Content>
