<%@ Page Title="" Language="C#" MasterPageFile="../BaseMaster.Master" CodeBehind="UserInfo.aspx.cs" Inherits="WAP2P.Web.PC.Admin.Common.UserInfo" %>
<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="?Id=<%= userId %>&type=baseInfo" class="<%= type == "baseInfo" ? "on" : string.Empty %>">基本信息</a></dt>
        <dt><a href="?Id=<%= userId %>&type=account" class="<%= type == "account" ? "on" : string.Empty %>">资金账户</a></dt>
        <dt><a href="?Id=<%= userId %>&type=bid" class="<%= type == "bid" ? "on" : string.Empty %>">投资情况</a></dt>
        <dt><a href="?Id=<%= userId %>&type=borrow" class="<%= type == "borrow" ? "on" : string.Empty %>">借款情况</a></dt>
        <ruson:Space runat="server" ID="baseInfo" Visible="false">
            <dd>
                <div class="m-content">
                    <table class="m-info" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td colspan="2" rowspan="4" width="50%" class="g-fcenter">
                                <img src="<%= user.GetFace() %>" alt="" width="100px" height="100px">
                                <ul>
                                    <li>会员账号：<%= user.Name %></li>
                                    <li>会员昵称：<%= user.Nickname %></li>
                                    <li>推荐号：<%= user.GetRecommendNo() %></li>
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <th>推荐人：</th>
                            <td><%= user.RecommendBy == 0 ? "暂无" : WAP2P.Member.User.LoadOrNew(user.RecommendBy).Name %></td>
                        </tr>
                        <tr>
                            <th>所属客服：</th>
                            <td><% =userAdminMapping == null ? "暂无" : WAP2P.Sys.Admin.LoadOrNew(userAdminMapping.ServiceId).Name %></td>
                        </tr>
                        <tr>
                            <th>所属业务员：</th>
                            <td><% =userAdminMapping == null ? "暂无" : WAP2P.Sys.Admin.LoadOrNew(userAdminMapping.SaleId).Name %></td>
                        </tr>
                        <tr>
                            <th class="info-listhead" colspan="4">认证情况</th>
                        </tr>
                        <tr>
                            <th>手机认证：</th>
                            <td><%= GetStatus(user.PhoneValid,"手机认证", CurrentAdmin.HavePermission("会员管理", "查看联系方式", "手机") ? user.Phone : user.Phone.HidePart()) %></td>
                            <th>邮箱认证：</th>
                            <td><%= GetStatus(user.EmailValid,"邮箱认证", CurrentAdmin.HavePermission("会员管理", "查看联系方式", "邮箱") ? user.Email : user.Email.HidePart()) %></td>
                        </tr>
                        <tr>
                            <th>实名认证：</th>
                            <td><%= GetStatus(user.RealNameValid,"实名认证",(user.RealName + (CurrentAdmin.HavePermission("会员管理", "查看联系方式", "身份证") ? user.CardNumber : user.CardNumber.HidePart()))) %></td>
                            <th>现场认证：</th>
                            <td><%= GetStatus(user.OnsiteValid,"现场认证", string.Empty) %></td>
                        </tr>
                        <ruson:Space runat="server" ID="cardPhoto" Visible="false">
                            <tr>
                                <th>身份证正面：</th>
                                <td class="g-fcenter"><img src="<%= user.CardPhoto1 %>" alt="" width="320" height="240"></td>
                                <th>身份证反面：</th>
                                <td class="g-fcenter"><img src="<%= user.CardPhoto2 %>" alt="" width="320" height="240"></td>
                            </tr>
                        </ruson:Space>                        
                        <tr>
                            <th class="info-listhead" colspan="4">账户情况</th>
                        </tr>
                         <tr>
                             <th>信用等级：</th>
                             <td><%= WAP2P.Sys.CreditLevel.GetLevel(user.Credit).Name %></td>
                             <th>会员类型：</th>
                             <td><%= user.GetUserType().Name %></td>
                         </tr>
                         <tr>
                             <th>会员等级：</th>
                             <td><%= user.GradeLevel.GetDescription() %></td>
                             <th>会员组：</th>
                             <td><%= user.GetGroup().Name %></td>
                         </tr>
                         <tr>
                             <th>当前积分：</th>
                             <td><%= user.Score %> 分</td>
                             <th>账户状态：</th>
                             <td><%= user.IsLock ? "锁定" : "正常" %></td>
                         </tr>
                        <tr>
                            <th class="info-listhead" colspan="4">资料完善情况</th>
                        </tr>
                         <tr>
                             <th>基本资料：</th>
                             <td colspan="3"><%= GetStatus(user) %></td>                             
                         </tr>
                        <tr>
                            <th class="info-listhead" colspan="4">借款资料</th>
                        </tr>
                        <ruson:Repater runat="server" ID="rptBorrowInfo" ItemType="WAP2P.Member.BorrowInfo">
                            <EmptyTemplate>
                                <tr>
                                    <td class="g-fleft" colspan="4">暂无数据</td>
                                </tr>
                            </EmptyTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td class="g-fleft" colspan="4"><%# Item.Name %> [<%# Item.CreateAt.ToDateTimeString() %>,<span class="<%# Item.Status == WAP2P.Member.BorrowInfo.ValidStatus.ValidSuccess ? "fcjade-1" : string.Empty %>"><%# Item.Status.GetDescription() %></span>]</td>
                                </tr>
                            </ItemTemplate>
                        </ruson:Repater>
                        <tr>
                            <th class="info-listhead" colspan="4">注册登录情况</th>
                        </tr>
                         <tr>
                             <th>注册时间：</th>
                             <td><%= user.CreateAt.ToDateTimeString() %></td>
                             <th>最后登录时间：</th>
                             <td><%= user.LastLoginAt.ToDateTimeString() %></td>
                         </tr>
                         <tr>
                             <th>注册地区：</th>
                             <td><%= WAP2P.Sys.Area.GetLocationString(user.RegIP) %>(IP:<%= user.RegIP %>)</td>
                             <th>最后登录地区：</th>
                             <td><%= WAP2P.Sys.Area.GetLocationString(user.LastLoginIP) %>(IP:<%= user.LastLoginIP %>)</td>
                         </tr>
                    </table>
                </div>
            </dd>
        </ruson:Space>
        
        <ruson:Space runat="server" ID="other" Visible="false">
            <dd>
                <div class="m-content">
                    <table class="m-info" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td class="fs20">如需要开发 [<% =otherMes %>]，请联系我公司客服。<a class="js-serviceQQ" target="_blank">官方客服</a></td>
                        </tr>
                    </table>
                </div>
            </dd>
        </ruson:Space>
    </dl>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
    <script type="text/javascript">
        $(function () {
            $('.js-serviceQQ').attr('href', config.serviceQQUrl);
        });
    </script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server">
</asp:Content>