<%@ page language="C#" autoeventwireup="true" inherits="Admin_UserManagement_UserInfo, ShopWe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户详细信息</title>
    <link href="../css/my.css" rel="stylesheet" type="text/css" />
    <link href="../JS/TableSort/tablesort.css" rel="stylesheet" type="text/css" />
    <link href="../css/volti.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../css/admin.js"></script>

    

    <script type="text/javascript">

function setTab(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var con=document.getElementById("con_"+name+"_"+i);
  menu.className=i==cursel?"hover":"";
  con.style.display=i==cursel?"block":"none";
 }
}
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="k_all3">
            <div class="aj">
                <ul>
                    <li id="two1" onclick="setTab('two',1,6)" class="hover" style="cursor: pointer">会员基本信息</li>
                    <li id="two2" onclick="setTab('two',2,6)" style="cursor: pointer">会员订单列表</li>
                    <li id="two3" onclick="setTab('two',3,6)" style="cursor: pointer">会员积分历史</li>
                    <li id="two4" onclick="setTab('two',4,6)" style="cursor: pointer">会员充值历史</li>
                    <li id="two5" onclick="setTab('two',5,6)" style="cursor: pointer">会员提现申请</li>
                    <li id="two6" onclick="setTab('two',6,6)" style="cursor: pointer">会员短消息</li>
                </ul>
            </div>
            <div id="all">
                <div id="con_two_1">
                    <div class="come_title">
                        <h2>
                            会员基本信息</h2>
                        <div class="title_help">
						 <a href="http://www.shopwe.cn/bbs/" target="_blank">
                                <img src="../Themes/Default/Images/help_1.jpg" alt="shopwe论坛" width="50" height="20" /></a>
								 <a href="http://help.shopwe.cn/video/user_demo/user_demo.htm" target="_blank">
                                <img src="../Themes/Default/Images/video_help.jpg" alt="shopwe视频教程" width="50" height="20" /></a>
                            <a href="http://help.shopwe.cn/help/Show.asp?id=23" target="_blank">
                                <img src="../Themes/Default/Images/help.jpg" alt="shopwe帮助中心" width="50" height="20" /></a></div>
                    </div>
                    <div class="k_all6">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="AddRole">
                            <tr>
                                <th style="text-align: right; width: 80px;">
                                    用户姓名：
                                </th>
                                <td style="width: 150px">
                                    &nbsp;<asp:Label ID="UserName" runat="server" Text="请选择会员"></asp:Label><asp:Label
                                        ID="UserID" runat="server" Text="会员ID（隐藏）" Visible="False"></asp:Label>
                                </td>
                                <th style="text-align: right; width: 80px;" class="bg_3">
                                    当前积分：
                                </th>
                                <td style="width: 180px" class="ys_1">
                                    &nbsp;<asp:Label ID="Points" runat="server" Text="请选择会员"></asp:Label>
                                </td>
                                <th style="text-align: right; width: 80px;" class="bg_3">
                                    当预存款：
                                </th>
                                <td class="ys_1">
                                    &nbsp;<asp:Label ID="UserMoney" runat="server" Text="请选择会员"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <th style="text-align: right; width: 80px;" class="bg_3">
                                    注册日期：
                                </th>
                                <td>
                                    &nbsp;<asp:Label ID="JoinDate" runat="server" Text="请选择会员"></asp:Label>
                                </td>
                                <th style="text-align: right; width: 80px;" class="bg_3">
                                    电子邮件：
                                </th>
                                <td style="width: 180px">
                                    &nbsp;<asp:Label ID="Email" runat="server" Text="请选择会员"></asp:Label>&nbsp;
                                </td>
                                <th style="text-align: right; width: 80px;" class="bg_3">
                                    真实姓名：</th>
                                <td>
                                    &nbsp;<asp:Label ID="UserRealName" runat="server" Text="请选择会员"></asp:Label></td>
                            </tr>
                            <tr>
                                <th class="bg_3" style="width: 80px; text-align: right">
                                    电话号码：</th>
                                <td>
                                    &nbsp;<asp:Label ID="UserPhone" runat="server" Text="请选择会员"></asp:Label></td>
                                <th class="bg_3" style="width: 80px; text-align: right">
                                    手机号码：</th>
                                <td style="width: 180px">
                                    &nbsp;<asp:Label ID="UserMobile" runat="server" Text="请选择会员"></asp:Label></td>
                                <th class="bg_3" style="width: 80px; text-align: right">
                                    所在地区：</th>
                                <td>
                                    &nbsp;<asp:Label ID="UserArea" runat="server" Text="请选择会员"></asp:Label></td>
                            </tr>
                            <tr>
                                <th class="bg_3" style="width: 80px; text-align: right">
                                    邮政编码：</th>
                                <td>
                                    &nbsp;<asp:Label ID="UserZip" runat="server" Text="请选择会员"></asp:Label></td>
                                <th class="bg_3" style="width: 80px; text-align: right">
                                    联系地址：</th>
                                <td colspan="3">
                                    &nbsp;<asp:Label ID="UserAddress" runat="server" Text="请选择会员"></asp:Label></td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div id="con_two_2" style="display: none">
                    <div class="come_title">
                        <h2>
                            会员订单列表</h2>
                        <div class="title_help">
						 <a href="http://www.shopwe.cn/bbs/" target="_blank">
                                <img src="../Themes/Default/Images/help_1.jpg" alt="shopwe论坛" width="50" height="20" /></a>
								 <a href="http://help.shopwe.cn/video/user_demo/user_demo.htm" target="_blank">
                                <img src="../Themes/Default/Images/video_help.jpg" alt="shopwe视频教程" width="50" height="20" /></a>
                            <a href="http://help.shopwe.cn/help/Show.asp?id=23" target="_blank">
                                <img src="../Themes/Default/Images/help.jpg" alt="shopwe帮助中心" width="50" height="20" /></a></div>
                    </div>
                    <table width="100%" cellpadding="0" cellspacing="0" class="bk">
                        <tr>
                            <th style="width: 60px">
                                编号
                            </th>
                            <th>
                                订单号
                            </th>
                        </tr>
                        <asp:Repeater ID="RepeaterOrder" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td style="width: 60px">
                                        <%# Eval("ID") %>
                                    </td>
                                    <td>
                                        <a href='../OrderManagement/OrderInfo.aspx?id=<%# Eval("OrderNumber") %>' class="blue">
                                            <%# Eval("OrderNumber") %>
                                        </a>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
                <div id="con_two_3" style="display: none">
                    <div class="come_title">
                        <h2>
                            会员积分历史</h2>
                        <div class="title_help">
						 <a href="http://www.shopwe.cn/bbs/" target="_blank">
                                <img src="../Themes/Default/Images/help_1.jpg" alt="shopwe论坛" width="50" height="20" /></a>
								 <a href="http://help.shopwe.cn/video/user_demo/user_demo.htm" target="_blank">
                                <img src="../Themes/Default/Images/video_help.jpg" alt="shopwe视频教程" width="50" height="20" /></a>
                            <a href="http://help.shopwe.cn/help/Show.asp?id=23" target="_blank">
                                <img src="../Themes/Default/Images/help.jpg" alt="shopwe帮助中心" width="50" height="20" /></a></div>
                    </div>
                    <div class="k_all6">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="height: 35px">
                                    <div class="txy">
                                        <div class="txy_jl">
                                            当前积分： <span style="color: #FF6600; font-weight: bold">
                                                <asp:Label ID="PointsValue" runat="server" Text="0"></asp:Label></span></div>
                                        <div class="txy_jl1">
                                           添加积分（增/减）：
                                            <asp:TextBox ID="AddUserPoints" runat="server" CssClass="input_ys" Width="100"></asp:TextBox></div>
                                     
                                            <asp:Button ID="LinkAddPoints" runat="server" Text="增加积分" CssClass="butt_tle" OnClick="LinkAddPoints_Click"
                                                CausesValidation="false" Height="22px" Width="70px"/>
                                   
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 35px">
                                    积分备注：<asp:TextBox ID="Description" runat="server" Width="437" CssClass="input_ys"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <table width="100%" cellpadding="0" cellspacing="0" class="bk">
                        <tr>
                            <th style="width: 120px">
                                日期
                            </th>
                            <th style="width: 120px">
                                增加积分
                            </th>
                            <th>
                                备注
                            </th>
                            <th>
                                操作员
                            </th>
                        </tr>
                        <asp:Repeater ID="RepeaterUserPoints" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <%# Eval("NoteDate")%>
                                    </td>
                                    <td>
                                        <%# Eval("PointsValue")%>
                                    </td>
                                    <td>
                                        <%# Eval("Description")%>
                                    </td>
                                    <td>
                                        <%# Eval("Operator")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
                <div id="con_two_4" style="display: none">
                    <div class="come_title">
                        <h2>
                            会员充值历史</h2>
                        <div class="title_help">
						 <a href="http://www.shopwe.cn/bbs/" target="_blank">
                                <img src="../Themes/Default/Images/help_1.jpg" alt="shopwe论坛" width="50" height="20" /></a>
								 <a href="http://help.shopwe.cn/video/user_demo/user_demo.htm" target="_blank">
                                <img src="../Themes/Default/Images/video_help.jpg" alt="shopwe视频教程" width="50" height="20" /></a>
                            <a href="http://help.shopwe.cn/help/Show.asp?id=23" target="_blank">
                                <img src="../Themes/Default/Images/help.jpg" alt="shopwe帮助中心" width="50" height="20" /></a></div>
                    </div>
                    <div class="k_all6">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="height: 35px">
                                    <div class="txy">
                                        <div class="txy_jl">
                                            当前预存款： <span style="color: #FF6600; font-weight: bold">
                                                <asp:Label ID="UserDeposit" runat="server" Text="0"></asp:Label></span></div>
                                        <div class="txy_jl1">
                                            充值金额（增/减）：
                                            <asp:TextBox ID="AddRecharge" runat="server" CssClass="input_ys" Width="100"></asp:TextBox></div>
                                      
                                            <asp:Button ID="LinkAddRecharge" runat="server" CssClass="butt_tle" Text="确认充值" OnClick="LinkAddRecharge_Click"
                                                CausesValidation="false" Height="22px" Width="70px"/>
                                  
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 35px">
                                    预存款备注：<asp:TextBox ID="RechargeDescription" runat="server" Width="425" CssClass="input_ys"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <table width="100%" cellpadding="0" cellspacing="0" class="bk">
                        <tr>
                            <th style="width: 120px">
                                日期
                            </th>
                            <th style="width: 120px">
                                充值金额
                            </th>
                            <th>
                                备注
                            </th>
                            <th>
                                操作员
                            </th>
                        </tr>
                        <asp:Repeater ID="RepeaterRechargeNote" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <%# Eval("NoteDate")%>
                                    </td>
                                    <td>
                                        <%# Eval("RechargeValue")%>
                                    </td>
                                    <td>
                                        <%# Eval("Description")%>
                                    </td>
                                    <td>
                                        <%# Eval("Operator")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
                <div id="con_two_5" style="display: none">
				<div class="come_title">
                        <h2>
                            会员提现申请</h2>
                        <div class="title_help">
						 <a href="http://www.shopwe.cn/bbs/" target="_blank">
                                <img src="../Themes/Default/Images/help_1.jpg" alt="shopwe论坛" width="50" height="20" /></a>
								 <a href="http://help.shopwe.cn/video/user_demo/user_demo.htm" target="_blank">
                                <img src="../Themes/Default/Images/video_help.jpg" alt="shopwe视频教程" width="50" height="20" /></a>
                            <a href="http://help.shopwe.cn/help/Show.asp?id=23" target="_blank">
                                <img src="../Themes/Default/Images/help.jpg" alt="shopwe帮助中心" width="50" height="20" /></a></div>
                    </div>
                    <table width="100%" cellpadding="0" cellspacing="0" class="bk">
                        <tr>
                            <th style="width: 50px">
                                操作
                            </th>
                            <th style="width: 120px">
                                申请日期
                            </th>
                            <th style="width: 100px">
                                提现金额
                            </th>
                            <th style="width: 300px">
                                提现备注或原因
                            </th>
                            <th>
                                处理状态
                            </th>
                        </tr>
                        <asp:Repeater ID="RepeaterWithdraws" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td style="width: 50px">
                                        <asp:Button ID="UpdateState" OnClick="UpdateState_Click" CommandName='<%# Eval("ID")%>'
                                            runat="server" Enabled='<%# GetCashState(int.Parse(Eval("ID").ToString())) %>'
                                            Text="完成处理" />
                                    </td>
                                    <td style="width: 120px">
                                        <%# Eval("ApplyDate")%>
                                    </td>
                                    <td>
                                        <%# Eval("WithdrawsPrice")%>
                                    </td>
                                    <td>
                                        <%# Eval("Remark")%>
                                    </td>
                                    <td style="width: 80px">
                                        <%# Eval("State")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
                <div id="con_two_6" style="display: none">
                    <div class="come_title">
                        <h2>
                            用户站内消息</h2>
                        <div class="title_help">
						 <a href="http://www.shopwe.cn/bbs/" target="_blank">
                                <img src="../Themes/Default/Images/help_1.jpg" alt="shopwe论坛" width="50" height="20" /></a>
								 <a href="http://help.shopwe.cn/video/user_demo/user_demo.htm" target="_blank">
                                <img src="../Themes/Default/Images/video_help.jpg" alt="shopwe视频教程" width="50" height="20" /></a>
                            <a href="http://help.shopwe.cn/help/Show.asp?id=23" target="_blank">
                                <img src="../Themes/Default/Images/help.jpg" alt="shopwe帮助中心" width="50" height="20" /></a></div>
                    </div>
                    <div class="k_all6">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="height: 35px">
                                    <div class="txy">
                                        <div class="txy_jl1">
                                            站内消息标题：
                                            <asp:TextBox ID="SendMessageTitle" runat="server" CssClass="input_ys" Width="130"></asp:TextBox></div>
                                            <asp:Button ID="LinkButtonSendMessage"  runat="server" Text="给此用户发送站内消息"
                                                OnClick="LinkButtonSendMessage_Click" CausesValidation="false"  CssClass="butt_tle" Height="22px" Width="140px"/>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 35px">
                                    会员的短消息：
                                    <asp:TextBox ID="SendMessageBody" runat="server" Width="600" TextMode="MultiLine"
                                        Height="30px" CssClass="input_ys"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <table width="100%" cellpadding="0" cellspacing="0" class="bk">
                        <tr>
                            <th style="width: 200px">
                                标题
                            </th>
                            <th style="width: 120px">
                                日期
                            </th>
                            <th>
                                内容
                            </th>
                        </tr>
                        <asp:Repeater ID="UserMessageList" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td style="width: 200px">
                                        <%# Eval("MessageTitle")%>
                                    </td>
                                    <td style="width: 120px">
                                        <%# Eval("MessageDate")%>
                                    </td>
                                    <td>
                                        <%# Eval("MessageBody")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
