<%@ Page language="c#" Codebehind="MemberRegister.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.MemberRegister" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<!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/encoding.inc"-->
		<title><%=GetResourceString("Register")%>,<%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->
		<script type="text/javascript">
		var shopFolder = '<%=ShopFolder %>';
        var namePassed="<%=Request.QueryString["namePassed"] == null ? "false" : Request.QueryString["namePassed"] %>";
        var emailPassed="<%=Request.QueryString["emailPassed"] == null ? "false" : Request.QueryString["emailPassed"] %>";

		</script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/MemberRegister.js" type="text/javascript"></script>
	</HEAD>
	<body>
        <uc1:Header id="Header1" runat="server"></uc1:Header>
        <div class="xp-w clear">
         <form id="form1" name="form1" method="post" runat="server">
			        <table cellpadding="0" cellspacing="5" border="0" class="register-tab">
				        <tr>
					        <th><%=GetResourceString("BuyerMemberName")%>：</th>
					        <td align="left">
					            <asp:TextBox id="txtName" CssClass="login_frame_input" MaxLength="50" Size="20" runat="server" TabIndex="1" Font-Size="11"/>
					            <br /><span id="nameExist" style="color:red; display:none;">此用户名已被注册,请重新输入.</span>
					        </td>
				        </tr>
				        <tr>
				            <th></th>
				            <td align="left" style="color:#ccc;">6-16位字符，可由中英文、数字及"_"、"-"组成</td>
				        </tr>
				        <tr>
					        <th><%=GetResourceString("MemberPassword")%>：</th>
					        <td align="left"><asp:TextBox TextMode="Password" CssClass="login_frame_input" id="txtPassword" MaxLength="50" Size="20" runat="server" TabIndex="2" Font-Size="11" /></td>
				        </tr>
				        <tr>
				            <th></th>
				            <td align="left" style="color:#ccc;">6-16位字符，可由英文、数字及"_"、"-"组成</td>
				        </tr>
				        <tr>
					        <th>再次输入密码：</th>
					        <td align="left"><asp:TextBox TextMode="Password" CssClass="login_frame_input" id="txtPassword2" MaxLength="50" Size="20" runat="server" TabIndex="3" Font-Size="11" /></td>
				        </tr>
				        <tr>
				            <th></th>
				            <td align="left" style="color:#ccc; height:10px;"></td>
				        </tr>
				        <tr>
					        <th>邮 箱：</th>
					        <td align="left"><asp:TextBox id="txtEmail" CssClass="login_frame_input" MaxLength="80" Size="20" runat="server" TabIndex="4" Font-Size="11" />
					        <br /><span id="emailExist" style="color:red; display:none;">此邮箱已被使用,请重新输入.</span>
					        <asp:CheckBox id="cbxHideEmail" Text="JoinOurMailList" runat="server" Checked="True" Visible="false" /></td>
				        </tr>
				        <tr>
				            <th></th>
				            <td align="left" style="color:#ccc;">接收账户信息、订单通知、促销活动、优惠券等</td>
				        </tr>
				        <tr>
					        <th>推广员：</th>
					        <td align="left"><asp:TextBox id="txtAgentMemberName" CssClass="login_frame_input" MaxLength="80" Size="20" runat="server" TabIndex="4" Font-Size="11" />
					        <br /><span id="agentNotExist" style="color:red; display:none;">不存在此推广员,请重新输入.</span></td>
				        </tr>
				        <tr>
				            <th></th>
				            <td align="left" style="color:#ccc;">填写推广员帐号，没有可不填写</td>
				        </tr>
				        <tr>
				            <th><%=GetResourceString("LoginTextCode")%>： </th>
				            <td align="left"><asp:TextBox id="registercode" Runat="server" CssClass="login_frame_input"  tabIndex="5" size="7" maxlength="20" Font-Size="11"></asp:TextBox></td>
			            </tr>
			            <tr>
			                <th></th>
			                <td align="left" style="padding-top:10px; padding-bottom:10px;"><IMG alt="" src="image.aspx?type=4" align="absMiddle"></td>
			            </tr>
			            <tr id="cardarea" style="display:none;">
			                <th><asp:CheckBox ID="cbRegCard" runat="server" Text="激活会员卡" /></th>
			                <td><div id="card" style="display:none;">卡号：<asp:TextBox ID="txtCardNo" runat="server" Font-Size="11"></asp:TextBox><br />
					        密码：<asp:TextBox ID="txtCardPwd" runat="server" TextMode="password" Font-Size="11"></asp:TextBox></div></td>
			            </tr>
			            <tr>
			                <th></th>
			                <td align="left" class="agreement" style="padding-bottom:10px;"><input type="checkbox" id="cbyhxy" checked="checked" tabindex="6"  />我已阅读并同意<a href="<%=webSite %>Agreement.aspx" target="_blank">《用户协议》</a></td>
			            </tr>
				        <tr style="display:none;">
					        <td><%=GetResourceString("MemberQuestion")%>：</td>
					        <td class="content"><asp:TextBox id="txtQuestion" MaxLength="100" Size="50" runat="server" /></td>
					        <td class="tip"><div id="txtQuestionTip" ></div></td>
				        </tr>
				        <tr style="display:none;">
					        <td><%=GetResourceString("MemberAnswer")%>：</td>
					        <td class="content"><asp:TextBox id="txtAnswer" MaxLength="100" Size="50" runat="server" /></td>
					        <td class="tip"><div id="txtAnswerTip" ></div></td>
				        </tr>
				        <tr>
				            <th></th>
				            <td align="left">
				                <asp:Button id="btnRegister" OnClick="btnRegister_Click" runat="server" CssClass="login_frame_registerbutton" Text="RegisterButton" TabIndex="7"></asp:Button>
				            </td>
				        </tr>
			        </table>
		            <div class="info" style="display:none;">
		                <div style="margin-bottom:5px;"><font color="#c05c5c">以下均为可选项(可以选填)</font> </div>  
			            <table cellpadding="0" cellspacing="0" border="0" class="userinfo">
				            <tr>
					            <th>姓名：</th>
					            <td class="content"><input type="text" id="txtNames" name="txtNames" /></td>
					            <td class="tip"><div id="txtNamesTip" ></div></td>
				            </tr>
				            <tr>
					            <th>用户地址：</th>
					            <td class="content">
					                <asp:dropdownlist id="ddlTopAreas" name="ddlTopAreas" runat="server" AutoPostBack="false">
							            <asp:ListItem Value="0">选择地区</asp:ListItem>
						            </asp:dropdownlist>
						            <asp:dropdownlist id="ddlSubAreas" name="ddlSubAreas" runat="server" AutoPostBack="false">
						                <asp:ListItem Value="0">选择地区</asp:ListItem>
						            </asp:dropdownlist>
						            <asp:dropdownlist id="ddlThirdAreas" name="ddlThirdAreas" runat="server" AutoPostBack="false">
						                <asp:ListItem Value="0">选择地区</asp:ListItem>
						            </asp:dropdownlist>
					            </td>
					            <td class="tip"><div id="Div2" ></div></td>
				            </tr>
				            <tr>
					            <th>详细地址：</th>
					            <td class="content"><input type="text" id="txtAddress" name="txtAddress" size="50" /></td>
					            <td class="tip"><div id="txtAddressTip" ></div></td>
				            </tr>
				            <tr>
					            <th>邮政编码：</th>
					            <td class="content"><input type="text" id="txtZip" name="txtZip" size="20" /></td>
					            <td class="tip"><div id="txtZipTip" ></div></td>
				            </tr>
				            <tr>
					            <th>QQ：</th>
					            <td class="content"><asp:TextBox id="txtQQ" MaxLength="20" Size="20" runat="server" /></td>
					            <td class="tip"><div id="txtQQTip" ></div></td>
				            </tr>
				            <tr>
					            <th>MSN：</th>
					            <td class="content"><asp:TextBox id="txtMSN" MaxLength="100" Size="20" runat="server" /></td>
					            <td class="tip"><div id="txtMSNTip" ></div></td>
				            </tr>
				            <tr>
					            <th>固定电话：</th>
					            <td class="content"><asp:TextBox id="txtPhone" MaxLength="20" Size="20" runat="server" /></td>
					            <td class="tip"><div id="txtPhoneTip" ></div></td>
				            </tr>
				            <tr>
					            <th>手机号码：</th>
					            <td class="content"><asp:TextBox id="txtMobile" MaxLength="20" Size="20" runat="server" /></td>
					            <td class="tip"><div id="txtHandsetTip" ></div></td>
				            </tr>
			            </table>
		            </div>
	    </form>
		<!--内容结束-->
			<div style="clear:both;"></div>
		</div>
		<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
	</body>
</HTML>