<%@ Page language="c#" Codebehind="frmLogin.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.frmLogin" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>		
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<title>xpshop</title>
		<script type="text/javascript">
		function DispLogin()
		{
			var o = parent.document.getElementById("news_login");
			if (o){
				var s = document.body.innerHTML;
				s = s.replace(/\t/,"");
				o.innerHTML= s;
			}else{
			}
		}
		</script>
	</HEAD>
	<body onLoad="DispLogin();">
		<%if (user.MemberID>0){%>
		
		Hello,<%=user.Name%>
		<% if(IsAdmin()) {%>
		<a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>admin/default.aspx" target=_blank><%=GetResourceString("ShopManage")%></a>&nbsp;&nbsp;&nbsp; 
		<% }%>
		<a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>MemberCenter.aspx"><%=GetResourceString("MemberCenter")%></a>&nbsp;&nbsp;&nbsp; <a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>Logout.aspx"><%=GetResourceString("Logout")%></a>

		<%}else{%>
		<span class="login_red"><a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>Login.aspx">登录</a>　|　<a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>MemberRegister.aspx">注册</a></span>
		<%--<form id="loginForm" method="post" action="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>Login.aspx">
			<div style="float:left; width:145px;">
			    <div>
				    <div class="login_left"><%=GetResourceString("LoginTextAccount")%>:</div>
				    <div class="login_right"><input type="text" class="user_input" name="memberName" size="8" maxlength="50" tabIndex=1 value=''></div>
			    </div>
			    <div>
				    <div class="login_left"><%=GetResourceString("LoginTextPassword")%>:</div>
				    <div class="login_right"><input type="password" class="password_input" name="memberPass" size="8" maxlength="50" tabIndex=2></div>
			    </div>
			    <div>
				    <div style='display:<%=NeedCode%>'>
					    <div class="login_left"><%=GetResourceString("LoginTextCode")%>:</div>
					    <div class="login_right"><input type="text" class="code_input" name="logincode" size="3" maxlength="20" tabIndex=3 value=''><IMG alt="" src="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>image.aspx" align="absMiddle" ></div><div style='display:<%=NeedCode%>'></div>
				    </div>
			    </div>
			</div>
			<div style="float:left; width:40px;">
			    <input type="submit" class="btn_login" value='<%=GetResourceString("LoginButtonLogin")%>' onClick="return checkForm();" tabIndex=5>
			</div>
			<div style="clear:both;text-align:center; padding-top:15px; margin-bottom:5px;">
					<div class="registert"></div><div class="rtext"><a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>MemberRegister.aspx"><%=GetResourceString("LoginButtonRegister")%></a></div>
					<div class="xssl"></div><div class="rtext"><a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>memberLostpass.aspx"><%=GetResourceString("LoginButtonForgotPassword")%></a></div>
			</div>
		</form>--%>
		<%}%>
	</body>
</HTML>
