<%@ Page Language="C#" AutoEventWireup="true"  Codebehind="MinUserCenter.aspx.cs" Inherits="PPFOR.User.MinUserCenter" Title="会员登录" %>
<%@ Register Src="~/User/UserCenter/PopupMessage.ascx" TagName="popupMessage" TagPrefix="popup" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员登录</title>
<link href="/User/Css/global.css" rel="stylesheet" type="text/css" />
<link href="/User/Css/member.css" rel="stylesheet" type="text/css" />
<script src="/Admin/JS/ajax.js" type="text/javascript" ></script>
<script language="javascript" type="text/javascript">      
   var showVerifyTime=false;
   function getRidSrc(){
        showVerifyTime=new Date();
        return '/CustomAction/CheckCodeImage.aspx?rid=' + showVerifyTime.getTime();
   }
   function checkVerifyCodeImage(){
       var nowtime=new Date();
       var timeS=(60-10)*1000; //一分钟间隔，10秒减免
       if(!showVerifyTime || nowtime.getTime()-showVerifyTime.getTime()>timeS){
            var objImage=document.all?document.all['verifyCodeImage']:document.getElementById('verifyCodeImage');
            if(objImage!=null){
                objImage.src=getRidSrc();                    
            }
        }
   }   
</script>
</head>
<body>
<center>
<form id="form1" runat="server" onsubmit="showVerifyTime=false;">      
    <popup:popupMessage ID="PPFOR_popupMessage" runat="server" />   
    <table width="100%" cellpadding="0" cellspacing="0" border="0" class="fortable" runat="server" id="PPFOR_loginView">
    <thead>
    <tr>
        <td colspan="2" class="headtitle"><%=languageMessage.GetMessage("userLoginTitle", "会员登录")%></td>
    </tr>
    </thead> 
    <tr>
        <td style="width: 15%" align="right"><%=languageMessage.GetMessage("userMemberName", "会员账号：")%></td>
        <td>
            <asp:TextBox ID="PPFOR_memberName" AutoCompleteType="none" runat="server" MaxLength="20" Width="100px" TabIndex="1"></asp:TextBox>&nbsp;<a href="<%=PPFOR_userPath %>/register.html" title="<%=languageMessage.GetMessage("userGoRegedit", "立即注册")%>" target="_parent"><%=languageMessage.GetMessage("userGoRegedit", "立即注册")%></a>
             <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" SetFocusOnError="true" ValidationExpression="^[A-Za-z0-9\u4e00-\u9fa5]{3,20}$" Display="Dynamic" ControlToValidate="PPFOR_memberName"><br /><%=languageMessage.GetMessage("userNameForamtError", "会员账号格式错误")%></asp:RegularExpressionValidator>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" SetFocusOnError="true" Display="Dynamic" ControlToValidate="PPFOR_memberName"><br /><%=languageMessage.GetMessage("userNameEmptyError", "会员账号不能为空")%></asp:RequiredFieldValidator>                  
        </td>
    </tr>        
    <tr>
        <td align="right"><%=languageMessage.GetMessage("userMemberPwd", "会员密码：")%></td>
        <td>
            <asp:TextBox ID="PPFOR_memberPassword" AutoCompleteType="none"  runat="server" TextMode="Password" Maxlength="20" Width="100px" TabIndex="2"></asp:TextBox>&nbsp;<a href="<%=PPFOR_userPath %>/getpwd.html" target="_parent" title="<%=languageMessage.GetMessage("userForgotPwdTitle", "忘记密码？")%>"><%=languageMessage.GetMessage("userForgotPwdTitle", "忘记密码？")%></a>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" SetFocusOnError="true" ValidationExpression="^[^\u4e00-\u9fa5]{6,20}$" Display="Dynamic" ControlToValidate="PPFOR_memberPassword"><br /><%=languageMessage.GetMessage("userPwdForamtError", "会员密码格式错误")%></asp:RegularExpressionValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" SetFocusOnError="true" Display="Dynamic" ControlToValidate="PPFOR_memberPassword"><br /><%=languageMessage.GetMessage("userPwdEmptyError", "会员密码不能为空")%></asp:RequiredFieldValidator>
        </td>
    </tr>        
    <tr id="PPFOR_checkCodeRow" runat="server">
        <td align="right"><%=languageMessage.GetMessage("userVerifyCode", "验证码：")%></td>
        <td><asp:TextBox ID="PPFOR_verifyCode" runat="server" Width="60px" MaxLength="4" AutoCompleteType="none" TabIndex="3"></asp:TextBox>                       
        <span style="height:26px; vertical-align:middle">
        <script language="javascript" type="text/javascript">           
           document.write("<img id=\"verifyCodeImage\" src=\"" + getRidSrc() + "\" onclick=\"this.src=getRidSrc();\" title=\"<%=languageMessage.GetMessage("verifyCodeRefresh", "图片看不清？点击刷新验证码")%>\" style=\"cursor:pointer;vertical-align:middle\" width=\"70\" height=\"25\" />");
        </script></span> 
        <asp:RegularExpressionValidator ID="RangeValidator1" ValidationExpression="[0-9]{4}" runat="server" ControlToValidate="PPFOR_verifyCode" Display="Dynamic" SetFocusOnError="true"><br /><%=languageMessage.GetMessage("verifyCodeFormatError", "验证码必须为4位数字")%></asp:RegularExpressionValidator>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" SetFocusOnError="true" Display="Dynamic" ControlToValidate="PPFOR_verifyCode"><br /><%=languageMessage.GetMessage("verifyCodeEmptyError", "验证码不能为空")%></asp:RequiredFieldValidator>                  
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td align="left">
            <asp:Button ID="PPFOR_memberLogin" CssClass="blueinput" runat="server" Width="60px" OnClick="PPFOR_memberLoginClick" TabIndex="4"/>
            <input name="reset" type="reset" id="reset1" class="blueinput" style="width:60px;" value="<%=languageMessage.GetMessage("userLoginResetButton", "重置")%>" tabindex="5" />            
        </td>
    </tr>
    </table>    
	 <table width="100%" cellpadding="3" cellspacing="3" border="0" id="PPFOR_loginedView" runat="server">
        <tr>
          <td style="width:45px" rowspan="5" align="center" valign="top"><img alt="" src="<%=languageMessage.GetMessage("userMemberImage", "/User/Images/member_pic.jpg")%>" width="35px" height="35px" />             
          </td>
          <th><a href="<%=PPFOR_userPath %>" target="_parent"><asp:Label ID="PPFOR_loginedMemberName" CssClass="user_yellow" runat="server"></asp:Label></a></th>
        </tr>
        <tr>
          <td><%=languageMessage.GetMessage("userMemberDegree", "身份：")%><asp:Label ID="PPFOR_memberDegreeName" CssClass="user_yellow" runat="server"></asp:Label></td>
        </tr>
        <tr>         
          <td><%=languageMessage.GetMessage("userMemberPoint", "积分：")%><asp:Label ID="PPFOR_memberPoints" runat="server" CssClass="user_yellow"></asp:Label></td>                           
        </tr>
        <tr>                
          <td><a href="<%=PPFOR_userPath %>" target="_parent"><%=languageMessage.GetMessage("userMemberMessage", "消息：")%><asp:Label ID="PPFOR_newMessageCount" runat="server" CssClass="user_yellow"></asp:Label></a></td>                 
        </tr>
        <tr>          
            <td>
            <span class="forlogout">
                <strong>[</strong><a href="<%=PPFOR_userPath %>" title="<%=languageMessage.GetMessage("userCenterTitle", "会员中心")%>" target="_parent"><%=languageMessage.GetMessage("userCenterTitle", "会员中心")%></a><strong>]</strong>
            </span>
            <span class="forlogout">
                <strong>[</strong><a href="MinUserCenter.aspx?action=logout" title="<%=languageMessage.GetMessage("userLogoutTitle", "退出")%>"><%=languageMessage.GetMessage("userLogoutTitle", "退出")%></a><strong>]</strong>
            </span>
            </td>
        </tr>
      </table>
</form>
</center>
</body>
</html>