<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="UserInfoList.aspx.cs" Inherits="WAP2P.Web.PC.Admin.Member.UserInfoList" %>
<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>
                            <input type="hidden" name="from" value="<% =Request.QueryString["from"].HtmlEncode() %>" />
                            <select id="groupId" name="groupId">
                                <option value="">全部会员类型</option>
                                <asp:Repeater runat="server" ID="rptGroupSelect">
                                    <ItemTemplate>
                                        <option value="<%# Eval("Item1") %>"<%# Request.QueryString["groupId"] == (string)Eval("Item1") ? " selected=\"selected\"" : string.Empty %>><%# Eval("Item2") %></option>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </select>
                            <ruson:Select runat="server" ID="type" FillRequestValue="true">
                                <option value="会员账号">会员账号</option>
                                <option value="会员昵称">会员昵称</option>
                                <option value="注册手机">注册手机</option>
                                <option value="注册邮箱">注册邮箱</option>
                            </ruson:Select>
                            <input type="text" size="35" name="key" value="<% =Request.QueryString["key"].HtmlEncode() %>" />
                            <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>
                    <tr class="g-hide">
                        <th>状态筛选:</th>
                        <td><div class="ui-checkbox"><label><input type="checkbox" name="waitValid" value="1" /> 仅显示等待审核项</label></div></td>
                    </tr>
                    <tr class="g-hide">
                        <th></th>
                        <td>
                            <input type="submit" class="btn-base c-priority iconfont" value="&#xe60f; 搜索" /><input type="reset" class="btn-base c-normal iconfont" value="&#xe670; 清空条件" />
                        </td>
                    </tr>
                </table>
                <a href="javascript:void(0);" id="btnSwithMoreFilter" class="iconfont"><span>&#xe661; 显示更多筛选条件</span></a>
            </form>
            <div class="m-content">
                <div class="m-oper">
                    <ruson:PermissionSpace runat="server" Module="会员管理" Function="会员基本资料管理" Operate="审核">
                        <span class="js-autoload">
	                        <span class="ui-checkbox"><label><input type="checkbox" class="js-refresh" data-function="会员基本资料管理" data-operate="自动刷新" data-freemes="<% =FreeLimit.ActionLimitMes %>" /> 自动刷新</label></span>
                            <span class="ui-checkbox g-hide mr10"><label><input type="checkbox" data-autoload-char="xe60e; 审核" data-autoload-alert="有待审核项" /> 有待审核项时弹通知</label></span>                        
                        </span>
                    </ruson:PermissionSpace>
                </div>
                <table class="m-list" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <th width="20%" class="g-fleft">会员账号</th>
                        <th width="10%">会员类型</th>
                        <th width="55%" class="g-fleft">状态</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 class="g-fbold g-fleft"><%# GetUserDisplay(Item.Id, Item.Name) %></td>
                <td><%# UserType.LoadOrNew(Item.UserTypeId).Name %></td>
                <td class="g-fleft"><%# GetStatus(Item) %></td>
                <td>                    
                    <ruson:PermissionSpace runat="server" Module="会员管理" Function="会员基本资料管理" Operate="资料代传"><%# hasWaitSubmit ? string.Format(@"<a class=""iconfont oper fcash-1"" href=""javascript:void(0);"" onclick=""$.jPopupEdit('会员基本资料代填', 'UserInfoDetail.aspx?ID={0}&op=edit');"">&#xe627; 基本资料代填</a>", Item.Id) : string.Empty %></ruson:PermissionSpace>
                    <ruson:PermissionSpace runat="server" Module="会员管理" Function="会员基本资料管理" Operate="查看资料"><%# hasValidInfo ? string.Format(@"<a class=""iconfont oper"" href=""javascript:void(0);"" onclick=""$.jPopupEdit('会员基本资料查看', 'UserInfoDetail.aspx?ID={0}&op=view');"">&#xe655; 查看资料</a>", Item.Id) : string.Empty %></ruson:PermissionSpace>
                    <ruson:PermissionSpace runat="server" Module="会员管理" Function="会员基本资料管理" Operate="导出PDF"><%# hasValidInfo ? string.Format(@"<a class=""iconfont oper"" href=""UserInfoDetail.aspx?ID={0}&op=pdf"">&#xe620; 导出PDF</a>", Item.Id) : string.Empty %></ruson:PermissionSpace>
                    <ruson:PermissionSpace runat="server" Module="会员管理" Function="会员基本资料管理" Operate="审核"><%# hasWaitValid ? string.Format(@"<a class=""iconfont oper fcjade-2"" href=""javascript:void(0);"" onclick=""$.jPopupEdit('会员基本资料审核', 'UserInfoDetail.aspx?ID={0}&op=valid');"">&#xe60e; 审核</a>", Item.Id) : string.Empty %></ruson:PermissionSpace>
                </td>
            </tr>
        </ItemTemplate>
        <EmptyTemplate>
            <tr>
                <td colspan="4" class="g-fleft">暂无数据。</td>
            </tr>
        </EmptyTemplate>
    </ruson:Repater>
    <tr class="pager">
        <td colspan="4"><ruson:Pager runat="server" ID="pages" CssClass="pages" /><a href="<% =Request.RawUrl %>" class="g-hide"></a></td>
    </tr>
</asp:Content>