<%@ Control Language="c#" AutoEventWireup="True" Codebehind="UserLogon.ascx.cs" Inherits="DreamerShop.UserControl.UserLogon" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="../LanguagesManage.ascx" %>
<uc1:LanguagesDeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:LanguagesDeal>
<FORM style="MARGIN: 0px" name="formlogon" method="post" action="Index.aspx">
	<asp:panel id="PanLogin1" runat="server">
		<TABLE cellSpacing="0" cellPadding="2" align="center" border="0">
			<TR>
				<TD align="right"><%=myLanguagesDeal.GetMyString("LoginTextAccount")%><!--用户名：--></TD>
				<TD align="left" colSpan="2"><INPUT class="input1" onkeypress="return LogonCheckInput()" type="text" maxLength="20"
						size="15" name="LoginName"></TD>
				<TD><input name="image" type=image onClick="jacascript:return logoncheck();" src="Images/TP6/gw_r11_c12.jpg" width="52" height="18" border=0></TD>
				<TD></TD>
			</TR>
			<TR>
				<TD align="right"><%=myLanguagesDeal.GetMyString("LoginTextPassword")%><!--密&nbsp;&nbsp;码：--></TD>
			  <TD  align="left" colSpan="2"><INPUT class="input1" onkeypress="return LogonCheckInput()" type="password" maxLength="20"
						size="15" name="LoginPass"></TD>
				<TD><A href="UserReg.aspx"><img src="Images/TP6/gw_r13_c12.jpg" width="52" height="18"  border="0"></A></TD>
				<TD></TD>
			</TR>
			<TR>
				<TD style="HEIGHT: 20px" align="right"><%=myLanguagesDeal.GetMyString("LoginTextVerifyCode")%><!--验证码：--></TD>
				<TD style="HEIGHT: 20px" vAlign="bottom" align="left"><INPUT class="input1" type="text" maxLength="20" size="9" name="VerifyCode"></TD>
				<TD>
					<asp:Image id="Image1" runat="server" ImageUrl="../GetVerifyCode.aspx" ImageAlign="Bottom"
						BorderWidth="0px"></asp:Image></TD>
						<TD><input name="image" type=image onClick="jacascript:return logongetpass();" src="Images/TP6/gw_r16_c12.jpg" width="52" height="18" border=0></TD>
			</TR>
			<TR>
				<TD align="center" colSpan="3">
					<asp:Label id="lbLoginMessage" runat="server" ForeColor="Red"></asp:Label></TD>
			</TR>
			<TR>
			  <TD align="center" colSpan="3"><INPUT type="hidden" value="logon" name="logonSure"> &nbsp;&nbsp;&nbsp;&nbsp;<A href="UserReg.aspx"></A>&nbsp;&nbsp;				</TD>
				<TD></TD>
			</TR>
		</TABLE>
	</asp:panel>
	<asp:panel id="PanLogin2" runat="server">
		<TABLE cellSpacing="1" cellPadding="3" align="center" border="0">
			<TR>
				<TD><A href="UserCenter.aspx"><%=myLanguagesDeal.GetMyString("MemberCenter")%><!--用户中心--></A>
				</TD>
			  <TD><INPUT type="hidden" value="logout" name="logonout"> <input name="image" type=image onClick="jacascript: formlogon.Submit();" src='images/TP6/quit.jpg' align=absmiddle  border=0></TD>
			</TR>
		</TABLE>
	</asp:panel>
	<asp:panel id="PanLogin3" runat="server">
		<TABLE cellSpacing="0" cellPadding="0" align="center" border="0">
			<TR>
				<TD align="right"><%=myLanguagesDeal.GetMyString("LoginTextAccount")%><!--用户名：--></TD>
				<TD align="left" colSpan="2"><INPUT class="wenbenkuang" onkeypress="return LogonCheckInput()" type="text" maxLength="20"
						size="12" name="FGUserName">
				<TD></TD>
			</TR>
			<TR>
				<TD style="HEIGHT: 20px" align="right"><%=myLanguagesDeal.GetMyString("LoginTextVerifyCode")%><!--验证码：--></TD>
				<TD style="HEIGHT: 20px" vAlign="bottom" align="left"><INPUT class="wenbenkuang" type="text" maxLength="20" size="6" name="FGVerifyCode">
				</TD>
				<TD>
					<asp:Image id="Image2" runat="server" ImageUrl="../GetVerifyCode.aspx" ImageAlign="Bottom"
						BorderWidth="0px"></asp:Image></TD>
			</TR>
			<TR>
				<TD align="center" colSpan="3">
					<asp:Label id="lbFGMessage" runat="server" ForeColor="Red"></asp:Label></TD>
			</TR>
			<TR>
			  <TD align="center" colSpan="3"><INPUT type="hidden" value="logon" name="logonSure"><INPUT type="hidden" value="getpass" name="logonGetPass">
				<INPUT class="go-wenbenkuang" onclick="return logonpasscheck();" type="button" value='<%=myLanguagesDeal.GetMyString("LoginButtonForgotPassword")%>' name="btlogonGetPass"></TD>
			</TR>
		</TABLE>
	</asp:panel>
</FORM>
<SCRIPT language="javascript">
	<!--
	function LogonCheckInput(){
		if (event.keyCode == 37 || event.keyCode == 39  || event.keyCode == 60  || event.keyCode == 62 )
			event.returnValue = false;
	}
		function checkspace(checkstr) {
			var str = '';
			for(i = 0; i < checkstr.length; i++) {
				str = str + ' ';
			}
			return (str == checkstr);
		}
	function logoncheck()
	{
		if(checkspace(document.formlogon.LoginName.value)) {
			document.formlogon.LoginName.focus();
			alert('<%=myLanguagesDeal.GetMyString("LoginAccountRequest")%>');
			return false;
		}
		
		if(checkspace(document.formlogon.LoginPass.value)) {
			document.formlogon.LoginPass.focus();
			alert('<%=myLanguagesDeal.GetMyString("LoginPasswordRequest")%>');
			return false;
		}
		if(checkspace(document.formlogon.VerifyCode.value)) {
			document.formlogon.VerifyCode.focus();
			alert('<%=myLanguagesDeal.GetMyString("LoginTextCodeRequest")%>');
			return false;
		}
		document.formlogon.logonSure.value="logon";
		document.formlogon.submit();
	}
	function logonpasscheck()
	{
		if(checkspace(document.formlogon.FGUserName.value)) {
			document.formlogon.FGUserName.focus();
			alert('<%=myLanguagesDeal.GetMyString("LoginAccountRequest")%>');
			return false;
		}
		
		
		document.formlogon.logonSure.value="getpass";
		document.formlogon.submit();
	}
	
	function logongetpass()
	{
		
		document.formlogon.logonSure.value="getpass";
		document.formlogon.submit();
	}
	//-->
</SCRIPT>
