<%@ Page language="c#" Codebehind="Member.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.Member" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
	    <!--#include file="inc/head.inc"-->
		<title>Member</title>
		<script type="text/javascript" src='inc/Member.js'></script>
		<script type="text/javascript" src="inc/PageBar.js"></script>
		<script type="text/javascript" src="inc/multi_popup.js"></script>
		<script type="text/javascript" src="inc/jquery.easydrag.handler.beta2.js"></script>
		<script src="inc/ui.datepicker.cn.js" type="text/javascript"></script>
		<link type="text/css" rel="stylesheet" href="style/ui.datepicker.css" />
		<link type="text/css" rel="stylesheet" href="style/multi_popup.css" />
		<script type="text/javascript">
		//传过去给js用的，用于判断管理员是否可以清除积分,是否可以导出会员
            var CanDeleteScore="<%=CanDeleteScore %>"
            var CanExportMember="<%=CanExportMember%>"
            var CanModifyMember="<%=CanModifyMember%>"
            var CanDeleteMember="<%=CanDeleteMember%>"
        </script>
		<style type="text/css">
		    .c1 {width:2%}
		    .c2 {width:2%}
		    .c3 {width:7%}
		    .c4 {width:8%}
		    .c5 {width:9%;}
		    .c6 {width:7%}
		    .c7 {width:4%}
		    .c8 {width:5%}
		    .c9 {width:5%}
		    .c10 {width:4%}
		    .c11 {width:4%}
		    .c12 {width:6%}
		    .c13 {width:4%}
			.c14 {width:6%}
			.c15 {width:5%}
			.c16 {width:6%}
			.c17 {width:6%}
			th{word-break;berak-a;word-wrap:break-word;}
		    td{word-break: break-all; word-wrap:break-word;}
			table{table-layout: fixed;}
		</style>
	</HEAD>
	<body>
		<form id="form1" runat="server">
	    <div class="container">
		    <div class="sub_container">
		    <div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" />会员列表</div>
		    <div class="sub_container_operation">
		        <table class="tableBorder" cellSpacing="0" cellPadding="0" width="98%" align="center" border="0">
			        <tr>
				        <td valign="top">
				            <input type="button" id="btnDelete" name="btnDelete" value="删除会员" class="inputbtn" />
					        <input type="button" id="btnClearScore" name="btnClearScore" value="积分归零" class="inputbtn" />
					        <input type="button" id="btnClearAllScore" name="btnClearAllScore" value="归零所有会员积分" class="inputbtn" />	
							<asp:Button id="bt_ExportPart" OnClick="bt_ExportPart_Click" runat="server" Text="导出勾选会员" CssClass="inputbtn"></asp:Button>
							<asp:Button id="bt_Export" OnClick="bt_Export_Click" runat="server" Text="导出筛选会员" CssClass="inputbtn"></asp:Button>
				        </td>
				        <td style="vertical-align:top;">

							<div style="position:relative; width:390px; ">
	                            <div id="advContent" class="advContent" style=" border:none;">
                                    <div id="frmAdvSearch" ><!--class="frmAdvSearch"-->
                                       <div id="searchDetails" style="display:none;">
                                        
                                        <div>
                                        <div class="frmtl" style=" margin-right:0px;"></div>
                                        <div class="frmtr" style="margin-left:0px;"></div>
                                        <div class="frmtm" style="float:left; width:130px; border-right:1px solid #919191; text-align:center;">会员等级</div>
                                        <div class="frmtm" style="float:left; width:130px; border-right:1px solid #919191; text-align:center;">会员来源</div>
                                        <div class="frmtm" style="float:left; width:114px; text-align:center;">性别</div>
                                        </div>
                                        
                                        <div style="border-left:1px solid #919191; border-right:1px solid #919191;padding-left:6px; background:#ffffff; zoom:1;">
                                            <div style="float:left; width:140px; border-right:1px solid #919191; text-align:center; ">
                                                <select id="selGroup" name='selGroup' size="5" multiple="multiple" class="searchvalue">
                                                    <%=BindMemberGroup() %>
                                                </select>
                                            </div>
                                            <div style="float:left; width:130px; border-right:1px solid #919191; text-align:center;">
                                                <select id="selFrom" name="selFrom" size="5" multiple="multiple" class="searchvalue">
                                                    <option value="" selected="selected">所有来源</option>
                                                    <option value="0">网上注册</option>
                                                    <option value="1">电话注册</option>
                                                    <option value="2">会员推荐</option>
                                                    <option value="3">其它推广方式</option>
                                                </select>
                                            </div>
                                            <div style="float:left; width:115px; text-align:center;">
                                                <select id="selSex" name="selSex" size="5" class="searchvalue">
                                                    <option value="" selected="selected">所有性别</option>
                                                    <option value="1">男</option>
                                                    <option value="0">女</option>
                                                </select>
                                            </div>
                                            <div class="clear"></div>
                                        </div>
                                        
                                        <div>
                                        <div class="frmtl"></div>
                                        <div class="frmtr"></div>
                                        <div class="frmtm left">会员地区：</div>
                                        <div class="frmtm right"><div style="margin-top:8px;"><select id="ddlTopAreas" name="ddlTopAreas" class="searchvalue"><%=GetSubArea(0)%></select></div></div>
                                        <div class="clear"></div>
                                        </div>
                                        
                                        <div>
                                        <div class="frmtl"></div>
                                        <div class="frmtr"></div>
                                        <div class="frmtm left">会员积分：</div>
                                        <div class="frmtm right"><div style="margin-top:8px; height:20px; line-height:20px;">从<input type="text" id="txtStartScore" name="txtStartScore" class="searchvalue" />到<input type="text" id="txtEndScore" name="txtEndScore" class="searchvalue" /></div></div>
                                        <div class="clear"></div>
                                        </div>
                                        
                                        <div>
                                        <div class="frmtl"></div>
                                        <div class="frmtr"></div>
                                        <div class="frmtm left">预付款：</div>
                                        <div class="frmtm right"><div style="margin-top:8px; height:20px; line-height:20px;">从<input type="text" id="txtStartMoney" name="txtStartMoney" class="searchvalue" />到<input type="text" id="txtEndMoney" name="txtEndMoney" class="searchvalue" /></div></div>
                                        <div class="clear"></div>
                                        </div>
                                        
                                        <div>
                                        <div class="frmtl"></div>
                                        <div class="frmtr"></div>
                                        <div class="frmtm left">注册日期：</div>
                                        <div class="frmtm right"><div style="margin-top:8px; height:20px; line-height:20px;">从<input type="text" id="txtStartTime" name="txtStartTime" class="searchvalue" />到<input type="text" id="txtEndTime" name="txtEndTime" class="searchvalue" /></div></div>
                                        <div class="clear"></div>
                                        </div>
                                        
                                        </div>
                                        
                                        <div>
                                        <div class="frmtl"></div>
                                        <div class="frmtr"></div>
                                        <div class="frmtm">
                                            <select id="ddlKeyType" name="ddlKeyType" class="searchvalue">
                                                <option value="Name">会员账号</option>
                                                <option value="Realname">姓名</option>
                                                <option value="Email">电子邮件</option>
                                                <option value="Mobile">手机</option>
                                                <option value="Phone">电话</option>
                                                <option value="QQ">QQ</option>
                                            </select>
                                            <input type="text" id="txtKeyword" name="txtKeyword" size="10" class="searchvalue" />
                                            <input type="button" id="btnSearch" value="搜索" class="inputbtn" />
                                            <input type="button" id="btnSearchAdv" value="显示高级搜索" class="inputbtn" />
                                        </div>
                                        <div class="clear"></div>
                                        </div>
                                        
                                        <div style="display:none;" class="searchbottom">
                                            <div class="frmbl"></div>
                                            <div class="frmbr"></div>
                                            <div class="frmbm">&nbsp;</div>
                                        </div>
                                    </div>
	                            </div>
	                        </div>
							
					    </td>    
			        </tr>
		        </table>
		    </div>
		    <div class="sub_container_listhead" style="padding:0px;">
                <table cellSpacing="0" cellPadding="0" class="llist">
                    <tr id="listhead"><%--id="listhead不能少"--%>
	                    <th class="c1"><input type="checkbox" id="chkAll" name="chkAll" /></th>
	                    <th class="c2">ID</th>
	                    <th class="c3">会员帐号</th>
						<th class="c17">会员等级</th>
	                    <th class="c16">推荐人</th>
	                    <th class="c5">电子邮件</th>
	                    <th class="c6">电话</th>
						<th class="c15">消费额</th>
						<th class="c14">预付款余额</th>
	                    <th class="c7">积分</th>
	                    <th class="c8">积分归零</th>
	                    <th class="c9">注册时间</th>
	                    <th class="c10">状态</th>
	                    <th class="c11">修改</th>
	                    <th class="c12">密码重设</th>
	                    <th class="c13 left">删除</th>
	                </tr>
                </table>           
            </div>
		    <div class="sub_container_content" style="padding:0px;">
			    <table id="datas" cellSpacing="0" cellPadding="0" class="llist">
				    <tr id="template" style="display:none;"><%--id="template"不能少--%>
					    <td class="c1 ccenter" id="checkbox"></td>
					    <td class="c2 ccenter" id="ID"></td>
					    <td class="c3 ccenter" id="Name"></td>
						<td class="c17 ccenter" id="Group"></td>
					    <td class="c16 ccenter" id="Code"></td>
					    <td class="c5" id="Email"></td>
					    <td class="c6 ccenter" id="Phone"></td>
						<td class="c15 ccenter" id="Spending"></td>
						<td class="c14 ccenter" id="AdvancePayment"></td>
					    <td class="c7 ccenter" id="Score"></td>
						<td class="c8 ccenter" id="DeleteScore"></td>
					    <td class="c9 ccenter" id="AddDate"></td>
					    <td class="c10 ccenter" id="Status"></td>
					    <td class="c11 ccenter" id="Edit"></td>
					    <td class="c12 ccenter" id="EditPwd"></td>
					    <td class="c13 left" id="Delete"></td>
				    </tr>
			    </table>
		    </div>
		    <div class="sub_container_page" id="pageDataList1_Pager"><!-- 翻页--><!-- 翻页结束--></div>
		    </div>
		</div>
		
		    <iframe id="frmModify" style="width:100%;height:0px;display:none" scrolling="no" ></iframe>
	    	<input type="hidden" id="frmHeight" /><%--记录窗口高度--%>
		</form>

	</body>
</HTML>
