<%@ Page language="c#" Codebehind="Login.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.Login" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.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("MemberForm")%>,<%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->
        <link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/login.css" rel="stylesheet" />
		<style type="text/css">
		    .login_frameleft .login_frame table td {padding-bottom:20px;}
		</style>

		<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" method="post" runat="server">
		   <div class="clear">
		       <div class="login_frameleft">
			    <div class="login_frame">
				    <div class="ltl"></div>
				    <div class="tr"></div>
				    <div class="tm">登录<span>您好，如果您已经是会员，请您在此登陆。</span></div>
				    <div class="ml"></div>
				    <div class="mr"></div>
				    <div class="mm" style="text-align:center;height:490px;">
				        <table cellpadding="0" cellspacing="0" border="0" style="margin:0px auto;">
						    <tr>
							    <td align="right"><%=GetResourceString("LoginTextAccount")%>：</td>
							    <td align="left"><asp:TextBox ID="txtUserName" CssClass="login_frame_input" Runat="server" tabIndex="1" Font-Size="11"></asp:TextBox></td>
						    </tr>
						    <tr>
							    <td align="right"><%=GetResourceString("LoginTextPassword")%>： </td>
							    <td align="left"><asp:TextBox id="txtPass" TextMode="Password" CssClass="login_frame_input" Runat="server" tabIndex="2" Font-Size="11"></asp:TextBox>&nbsp;&nbsp;<a href="<%=webSite %>memberLostpass.<%=config.html%>"><font color="red"><%=GetResourceString("LoginButtonForgotPassword")%></font></a></td>
						    </tr>
				            <tr>
							    <td align="right"><%=GetResourceString("LoginTextCode")%>： </td>
							    <td align="left"><asp:TextBox id="logincode" Runat="server" CssClass="login_frame_input"  tabIndex="3" size="7" maxlength="20" autocomplete="off" Font-Size="11"></asp:TextBox></td>
						    </tr>
						    <tr>
						        <td></td>
						        <td align="left"><IMG alt="" src="<%=webSite%>image.aspx?type=2" align="absMiddle"></td>
						    </tr>
						    <tr>
						        <td></td>
						        <td align="left"><asp:CheckBox ID="cbxRemName" runat="server" tabIndex="4" Text="记住用户名" /> &nbsp;&nbsp;&nbsp;&nbsp;<asp:CheckBox ID="cbxAutoLogin" runat="server" tabIndex="5" Text="自动登录" /></td>
						    </tr>
						    <tr style="display:none;">
							    <td><%=GetResourceString("LoginTextActive")%>： </td>
							    <td><asp:DropDownList id="ddlKeepLogin" runat="server">
									    <asp:ListItem Value="0">LoginTextKeep1Hour</asp:ListItem>
									    <asp:ListItem Value="1">LoginTextKeep1Day</asp:ListItem>
									    <asp:ListItem Value="7">LoginTextKeep1Week</asp:ListItem>
									    <asp:ListItem Value="30">LoginTextKeep1Month</asp:ListItem>
									    <asp:ListItem Value="365">LoginTextKeep1Year</asp:ListItem>
								    </asp:DropDownList></td>
						    </tr>
						    <tr>
							    <td></td>
							    <td>
							        <div>
					                    <asp:Button id="btnLogin" onclick="btnLogin_Click" runat="server" CssClass="login_frame_loginbutton"  tabIndex="6" Text="LoginButtonLogin"></asp:Button>
					                    <asp:Button id="btnBuyNow" OnClick="btnBuyNow_Click" CssClass="login_frame_loginbutton" Visible="false" runat="server" Text="LoginButtonBuyNow"></asp:Button>
					                </div>
					            </td>
						    </tr>
					    </table>
					    <div class="login-tplogin clear" style="color: Gray; padding:0px 16px;">
                            使用合作网站账号登陆本商城：
                            <br />
                            <a href='<%=webSite %>TPLogin/qq.aspx' style="color: #005AA0; font-size: 14PX;"><img alt="" src="<%=webSite %>Template/<%=config.TemplateFolder%>/logimg/qq.png" />QQ</a>
                            <a href='<%=webSite %>TPLogin/kx.aspx' style="color: #005AA0; font-size: 14PX;"><img alt="" src="<%=webSite %>Template/<%=config.TemplateFolder%>/logimg/kx.png" />开心网</a>
                            <a href='<%=webSite %>TPLogin/rrw.aspx' style="color: #005AA0; font-size: 14PX;"><img alt="" src="<%=webSite %>Template/<%=config.TemplateFolder%>/logimg/rr.png" />人人网</a>
                            <a href='<%=webSite %>TPLogin/douban.aspx' style="color: #005AA0; font-size: 14PX;"><img alt="" src="<%=webSite %>Template/<%=config.TemplateFolder%>/logimg/db.png" />豆瓣网</a>
                            <a href='<%=webSite %>TPLogin/taobao.aspx' style="color: #005AA0; font-size: 14PX;"><img alt="" src="<%=webSite %>Template/<%=config.TemplateFolder%>/logimg/tb.png" />淘宝网</a>
                            <a href='<%=webSite %>TPLogin/139.aspx' style="color: #005AA0; font-size: 14PX;"><img alt="" width="16px" height="16px" src="<%=webSite %>Template/<%=config.TemplateFolder%>/logimg/139.gif" />139邮箱</a>
                            <a href='<%=webSite %>TPLogin/sina.aspx' style="color: #005AA0; font-size: 14PX;"><img alt="" src="<%=webSite %>Template/<%=config.TemplateFolder%>/logimg/sina.png" />新浪</a>
                            <a href='<%=webSite %>TPLogin/wy.aspx' style="color: #005AA0; font-size: 14PX;"><img alt="" src="<%=webSite %>Template/<%=config.TemplateFolder%>/logimg/wy.png" />网易</a>
                        </div>
					    <div class="login_hr" style="height:40px;display:none;"></div>
					    <div class="login_hrtext" style="display:none;"><span class="sp1">如果您是支付宝用户，请点此</span><span class="sp2"><input id="alipaylogin" type="button" class="login_frame_zfbbutton" value="登录" /></span></div>
                        <script type="text/javascript">
                        	$(document).ready(function(){
								$('#alipaylogin').click(function(){
									location.href = 'AlipayLoginTransfer.aspx';
								});
							})
                        </script>
					    <div class="login_hr" style="display:none;"></div>
					    <div class="login_hrtext" style="display:none;"><span class="sp3">如果您是QQ会员，请点此</span><span class="sp2"><input type="button" class="login_frame_qqbutton" value="登录" /></span></div>
				    </div>
			        <div class="bl"></div>
			        <div class="br"></div>
			        <div class="bm"></div>
		        </div>
			</div>
		   <div class="login_frameright ">
			    <div class="login_frame">
				    <div class="rtl"></div>
				    <div class="tr"></div>
				    <div class="tm">注册<span>您是新用户？请您注册</span></div>
				    <div class="ml"></div>
				    <div class="mr"></div>
				    <div class="mm" style="text-align:center;height:490px;">
                        <table cellpadding="0" cellspacing="5" border="0">
                        <tr>
                        <td align="right"><%=GetResourceString("BuyerMemberName")%>：</td>
                        <td align="left">
                            <asp:TextBox id="txtName" CssClass="login_frame_input" MaxLength="50" Size="20" runat="server" TabIndex="7" Font-Size="11"/>
                            <br /><span id="nameExist" style="color:red; display:none;">此用户名已被注册,请重新输入.</span>
                        </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td align="left" style="color:#ccc;">6-16位字符，可由中英文、数字及"_"、"-"组成</td>
                        </tr>
                        <tr>
                            <td align="right"><%=GetResourceString("MemberPassword")%>：</td>
                            <td align="left"><asp:TextBox TextMode="Password" CssClass="login_frame_input" id="txtPassword" MaxLength="50" Size="20" runat="server" TabIndex="8" Font-Size="11" /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td align="left" style="color:#ccc;">6-16位字符，可由英文、数字及"_"、"-"组成</td>
                        </tr>
                        <tr>
                            <td align="right">再次输入密码：</td>
                            <td align="left"><asp:TextBox TextMode="Password" CssClass="login_frame_input" id="txtPassword2" MaxLength="50" Size="20" runat="server" TabIndex="9" Font-Size="11" /></td>
                        </tr>
                        <tr>
                            <td></td>
                        <td align="left" style="color:#ccc; height:10px;"></td>
                        </tr>
                        <tr>
                            <td align="right">邮 箱：</td>
                            <td align="left"><asp:TextBox id="txtEmail" CssClass="login_frame_input" MaxLength="80" Size="20" runat="server" TabIndex="10" 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>
                            <td></td>
                            <td align="left" style="color:#ccc;">接收账户信息、订单通知、促销活动、优惠券等</td>
                        </tr>
				        <tr>
					        <td align="right">推广员：</td>
					        <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>
				            <td></td>
				            <td align="left" style="color:#ccc;">填写推广员帐号，没有可不填写</td>
				        </tr>
                        <tr>
                            <td align="right"><%=GetResourceString("LoginTextCode")%>： </td>
                            <td align="left"><asp:TextBox id="registercode" Runat="server" CssClass="login_frame_input"  tabIndex="13" size="7" maxlength="20" Font-Size="11"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td align="left" style="padding-top:10px; padding-bottom:10px;"><IMG alt="" src="image.aspx?type=4" align="absMiddle"></td>
                        </tr>
                        <tr id="cardarea" >
                            <td valign="top">激活会员卡</td>
                            <td align="left"><asp:CheckBox ID="cbRegCard" runat="server" tabIndex="14" Text=" " /></td>
                        </tr>
                        <tr id="cardarea" >
                            <td valign="top"></td>
                            <td><div id="card" style="display:none;">卡号：<asp:TextBox ID="txtCardNo" runat="server" tabIndex="15" Font-Size="11"></asp:TextBox><br />
                            密码：<asp:TextBox ID="txtCardPwd" runat="server" TextMode="password"  tabIndex="16" Font-Size="11"></asp:TextBox></div></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td align="left" class="agreement" style="padding-bottom:10px;"><input type="checkbox" id="cbyhxy" checked="checked" tabindex="17"  />我已阅读并同意<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>
                            <td></td>
                            <td align="left">
                            <asp:Button id="btnRegister" OnClick="btnRegister_Click" runat="server" CssClass="login_frame_registerbutton" Text="RegisterButton" TabIndex="18"></asp:Button>
                            </td>
                        </tr>
                        </table>
                        </div>  
	                </div>
			        <div class="bl"></div>
			        <div class="br"></div>
			        <div class="bm"></div>
            </div>
			</div> 
			<div style="clear:both;"></div>
		   </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>