<!--#include file="Inc/conn.asp" -->
<!--#include file="Inc/Function.asp" -->
<!--#include file="Inc/Config.asp" -->
<!--#include file="inc/Skin_css.asp"-->
<!-- #include file="EnHead.asp" -->
<!--#include file="inc/md5.asp"-->
<script language=javascript>
	function CheckForm()
	{
		if(document.UserLogin.UserName.value=="")
		{
			alert("请输入用户名！");
			document.UserLogin.UserName.focus();
			return false;
		}
		if(document.UserLogin.Password.value == "")
		{
			alert("请输入密码！");
			document.UserLogin.Password.focus();
			return false;
		}
	}
</script>
<%
Action=Trim(request("Action"))
if Action="Login" then
 dim sql
 dim rs
 dim username
 dim password
 username=replace(trim(request("username")),"'","")
 password=replace(trim(Request("password")),"'","")
 password=md5(password)
 set rs=server.createobject("adodb.recordset")
 sql="select * from [User] where LockUser=False and username='" & username & "' and password='" & password &"'"
 rs.open sql,conn,1,3
 if not(rs.bof and rs.eof) then
	if password=rs("password") then
	    rs("LoginIP")=Request.ServerVariables("REMOTE_ADDR")
		rs("LastLoginTime")=now()
		rs("logins")=rs("logins")+1
		rs.update
		session("UserName")=rs("username")		
		Response.Redirect "EnUserServer.asp"
	end if
 end if
 rs.close
 conn.close
 set rs=nothing
 set conn=nothing
end if
%>
<table width="850" border="0" align="center" cellpadding="0" cellspacing="0">
<tr> 
    <td height="5" valign="top" bgcolor="#FFFFFF"></td>
  </tr>
  <tr> 
    <td valign="top" bgcolor="#FFFFFF">
<table width="843" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="tdbg_left"  width="190" height="179" valign="top" > <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;<img src="Images/smallbook.jpg" width="10" height="10">&nbsp;&nbsp;Member 
                  Center </td>
              </tr>
              <tr> 
                <td height="20"> <div align="center"><a href="EnUserEdit.asp">Modify 
                    Member's info</a></div></td>
              </tr>
              <TR> 
                <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
              </TR>
              <tr> 
                <td height="20"> <div align="center"><a href="EnUserEditPwd.asp">Modify 
                    Member's password</a></div></td>
              </tr>
              <TR> 
                <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
              </TR>
              <tr> 
                <td height="20"> <div align="center"><a href="EnUserOrder.asp">Inquire 
                    Search</a></div></td>
              </tr>
              <TR> 
                <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
              </TR>
              <tr> 
                <td height="20"> <div align="center"><a href="EnFeedbackMember.asp">My 
                    Feedback </a></div></td>
              </tr>
              <TR> 
                <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
              </TR>
              <tr> 
                <td height="20"> <div align="center"><a href="UserLogout.asp?Action=En">Member 
                    Logout</a></div></td>
              </tr>
              <TR> 
                <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
              </TR>
            </table></td>
          <td width="6"></td>
          <td valign="top"><table Class=border width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="206" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td class="title_right" height="32">&nbsp;<img src="Images/smallbook.jpg" width="10" height="10">&nbsp;&nbsp;Member 
                        Center</td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <TR> 
              <TD> <%If Session("UserName")="" Then%>
                         
                        <table width="100%" border="0" cellpadding="0" cellspacing="3">
                          <tr> 
                            <td colspan="2" align="right"> <p align="center" style="word-spacing: 0; margin-top: 0; margin-bottom: 0">&nbsp;</p></td>
                          </tr>
                          <tr> 
                            <td colspan="2" align="right"> <div align="center"> 
                                <table class="main" cellSpacing="0" cellPadding="2" width="100%" border="0" height="1">
                                  <tbody>
                                    <tr> 
                                      <td width="100%" height="1"><table class='border'  width='74%' border='0' align="center" cellpadding='0' cellspacing='0'>
                                          <form action='EnUserServer.asp?Action=Login' method='post' name='UserLogin' onSubmit='return CheckForm();'>
                                            <tr class='title'> 
                                              <td height='25' colspan="2" align='right'><div align="center">User 
                                                  login</div></td>
                                            </tr>
                                            <tr> 
                                              <td height='25' align='right'>User 
                                                Name:</td>
                                              <td height='25'> <input name='UserName' type='text' id='UserName' size='10' maxlength='20'></td>
                                            </tr>
                                            <tr> 
                                              <td height='25' align='right'>Password:</td>
                                              <td height='25'> <input name='Password' type='password' id='Password' size='10' maxlength='20'></td>
                                            </tr>
                                            <tr align='center'> 
                                              <td height='25' colspan='2'> <input name='Login' type='submit' id='Login' value='Login '> 
                                                <input name='Reset' type='reset' id='Reset' value='Reset'></td>
                                            </tr>
                                            <tr> 
                                              <td height='20' colspan='2' align='center'><a href='EnUserReg.asp' target='_blank'>Register</a>&nbsp;&nbsp;<a href='EnGetPassword.asp' target='_blank'>Forget 
                                                password</a></td>
                                            </tr>
                                          </form>
                                        </table></td>
                                    </tr>
                                  </tbody>
                                </table>
                              </div></td>
                          </tr>
                          <tr> 
                            <td height="19" colspan="2" align="right">&nbsp;</td>
                          </tr>
                          <tr> 
                            <td height="19" align="right"> <p align="center" style="word-spacing: 0; margin-top: 0; margin-bottom: 0">&nbsp;</p></td>
                            <td height="19" align="right"><div align="left">You 
                                have not login ye, can't into member center, please 
                                login first!If you isn't our member，Please <font color="#006699"><a href='EnUserReg.asp' target='_blank'>Register</a><a href="UserReg.asp"></a>。</font></div></td>
                          </tr>
                          <tr> 
                            <td width="12%" align="right"></td>
                            <td width="88%">Member center has below function:</td>
                          </tr>
                          <tr> 
                            <td width="12%" align="right">&nbsp;</td>
                            <td width="88%">1、Modify your register data;</td>
                          </tr>
                          <tr> 
                            <td width="12%" align="right">&nbsp;</td>
                            <td width="88%"> <p>2、Query your Inquire, and the 
                                process of the Inquire;</p></td>
                          </tr>
                          <tr> 
                            <td width="12%" align="right">&nbsp;</td>
                            <td width="88%">3、Private message board, you can leave 
                              message to us and check our reply here.</td>
                          </tr>
                          <tr> 
                            <td align="right">&nbsp;</td>
                            <td>&nbsp; </td>
                          </tr>
                        </table>
                <%else%> 
                <TABLE width="85%" align="center" cellPadding=0 cellSpacing=0>
                          <TBODY>
                            <TR vAlign=top > 
                              <TD  width="100%"> <p style="margin-bottom: 0"> 
                                  <br>
                                  Dear <%=Session("UserName")%>：</p>
                                <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">&nbsp; 
                                </p>
                                <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> 
                                  　　Now you already into member of service center, 
                                  here is registration member visiting only. You 
                                  can here modify register data, leave message 
                                  to us, look our reply, can also query your order 
                                  and process.</p></TD>
                            </TR>
                          </TBODY>
                        </TABLE>
                <%end if%> </TD>
            </TR>
                  </table> </td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<!-- #include file="Inc/EnFoot.asp" -->
</BODY></HTML>
