<%@ Page language="c#" Codebehind="frmLogin.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.frmLogin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD>
<title>frmLogin</title>
<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">
<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){%>
<table width="100%" align="center" height="29" cellpadding="0" cellspacing="0" border="0" >
  <tr>
    <td class="hello"> Hello,<%=user.Name%>&nbsp;&nbsp;&nbsp;
      <% 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></td>
  </tr>
</table>
<%}else{%>
<form id="loginForm" method="post" action="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>Login.aspx">
  <table width="100%" border="0" cellpadding="0" cellspacing="0" height="29" style="color:#FFFFFF">
    <tr align="center">
      <td>&nbsp;</td>
      <td width="50" align="right"><%=GetResourceString("LoginTextAccount")%></td>
      <td width="70"><input type="text" class="loginInput" name="memberName" size="8" maxlength="50"></td>
      <td width="50" align="right"><%=GetResourceString("LoginTextPassword")%></td>
      <td width="70"><input type="password" class="loginInput1" name="memberPass" size="8" maxlength="50"></td>
      <td width="50" align="right"><%=GetResourceString("LoginTextCode")%></td>
      <td style='width:110px; display:<%=NeedCode%>'>
        <input type="text" class="inputbg" name="logincode" size="3" maxlength="20">
        &nbsp;<IMG alt="" src="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>image.aspx" align="absMiddle" height="15"></td>
      <td  style="display:none;"><%=GetResourceString("LoginTextActive")%></td>
      <td  style="display:none;"><select name="keepLogin" class="inputbg">
          <option value="0" selected><%=GetResourceString("LoginTextKeep1Hour")%></option>
          <option value="1"><%=GetResourceString("LoginTextKeep1Day")%></option>
          <option value="7"><%=GetResourceString("LoginTextKeep1Week")%></option>
          <option value="30"><%=GetResourceString("LoginTextKeep1Month")%></option>
          <option value="365"><%=GetResourceString("LoginTextKeep1Year")%></option>
        </select></td>
      <td width="150" align="right" style="padding-right:6px;"><input type="submit" class="loginbtn" value='<%=GetResourceString("LoginButtonLogin")%>' onClick="return checkForm();">
        &nbsp;&nbsp;&nbsp;<a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>MemberRegister.aspx"><%=GetResourceString("LoginButtonRegister")%></a>&nbsp;&nbsp;&nbsp;<a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>memberLostpass.aspx" style="<%=GetResourceString("zhuceguanbi")%>"><%=GetResourceString("LoginButtonForgotPassword")%></a></td>
    </tr>
  </table>
</form>
<%}%>
</body>
</HTML>
