<!--#include file="inc/conn.asp"-->
<!--#include file="inc/jle_sub.asp"-->
<!--#include file="inc/md5.asp"-->
<!--#include file="inc/jle_fuction.asp"-->
<%
'    @@@@@@ www.jl-e.com @@@@@@@@@@@@@@@@@
'   @                                        @
'  @                                          @
'  @      吉林信息网，服务百姓生活      @
'  @                                          @
'   @                                        @
'    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%>
<%if request("jle")="out" then
Response.cookies("jle")=""
Response.cookies("jle")("username")=""
Response.cookies("jle")("per")=""
Response.Redirect "index.asp"
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%=title%>-会员登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="Keywords"  content="<%=metakey%>" />
<meta name="Description" content="<%=metades%>" />
<link rel="icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="inc/login.css" rel="stylesheet" type="text/css" />
	
<SCRIPT language=javascript>

<!--
function CheckloginForm()
{
if(document.thisForm.username.value.length<1)
	{
	    alert("登录帐号没有填写!");
	    document.thisForm.username.focus();
	    return false;
	}
if(document.thisForm.password.value.length<1)
	{
	    alert("密码没有填写正确!");
	    document.thisForm.username.focus();
	    return false;
	}
}

//-->
</SCRIPT>
</head>
<body>
<br />
<br />
<br />
<br />

<%
if userlog="0" then
response.redirect "err/err.html"
else
%>

<%
if request("login")="jle" then

dim rsper,sqlper,rscom,sqlcom,k,per
per=Request.form("per")
m=Request.form("m")
if request.cookies("jle")("errs")="" then
k=0
else
k=request.cookies("jle")("errs")
end if
if request.cookies("jle")("errs")>5 then
Response.Write "<script language='javascript'>alert('您登陆的次数过多,系统保护中！');history.back();</script>" 
response.end
end if
username=replace(trim(request("username")),"'","‘")
password=md5(replace(trim(request("password")),"'","‘"))
chkjle(username)
if nothaveChinese(username)=false then
Response.Write "<script language='javascript'>alert('用户名为非中文');history.back();</script>" 
end if

if per="个人登录" or  per="个人" then
set rsper=server.createobject("adodb.recordset")
sqlper="select * from [user] where username='"&UserName&"' and password='"&password&"'"
rsper.open sqlper,conn,1,3
if rsper.eof then
Response.cookies("jle")("errs")=k+1
Response.Write "<script language='javascript'>alert('您的用户名或密码不正确！');history.back();</script>" 
response.end
else
rsper("lastdl")=now()
rsper("jf")=rsper("jf")+2
rsper("dlcs")=rsper("dlcs")+1
userip=Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If userip="" Then 
userip=Request.ServerVariables("REMOTE_ADDR")
end if
rsper("ip")=userip
rsper.update
Response.cookies("jle")("username")=rsper("username")
Response.cookies("jle")("domain")=Request.ServerVariables("SERVER_NAME")
Response.cookies("jle")("per")=rsper("username")
Response.cookies("jle")("vip")=rsper("vip")
Response.cookies("jle")("id")=rsper("id")
end if
Response.Redirect "user.asp"
rsper.close
set rsper=nothing
closedb

else

set rscom=server.createobject("adodb.recordset")
sqlcom="select * from [jle_shop] where UserName='"&UserName&"' and password='"&password&"'"
rscom.open sqlcom,conn,1,3
if rscom.eof then
Response.cookies("jle")("errs")=k+1
Response.Write "<script language='javascript'>alert('您的用户名或密码不正确！');history.back();</script>" 
response.end
else
rscom("lastdl")=now()
rscom("jf")=rscom("jf")+2
rscom("dlcs")=rscom("dlcs")+1
userip=Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If userip="" Then 
userip=Request.ServerVariables("REMOTE_ADDR")
end if
rscom("ip")=userip
rscom.update
Response.cookies("jle")("username")=rscom("username")
Response.cookies("jle")("com")=rscom("com")
Response.cookies("jle")("vip")=rscom("vip")
Response.cookies("jle")("comyz")=rscom("yz")
Response.cookies("jle")("domain")=Request.ServerVariables("SERVER_NAME")
Response.cookies("jle")("id")=rscom("id")
end if
Response.Redirect "shop_user.asp"
rscom.close
set rscom=nothing
closedb
end if

else
%>
<div align="center">
  <table width="98%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center">&nbsp;</td>
    </tr>
  </table>
  <br />
<table width="1003" height="395" border="0" cellpadding="0" cellspacing="0" background="pic/dl.jpg" style="background-repeat:no-repeat; background-position:bottom;">
  <tr>
    <td width="604" valign="top"><img src="pic/logo.png" width="233" height="86" /></td>
    <td width="399" ><table width="335" height="288" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border:1px #EFEFEF solid;">
      <tr>
        <td width="370" height="45" align="center" background="pic/lmbj.jpg" class="fontjs" style="border-bottom:1px #EFEFEF solid;">会员登陆系统</td>
      </tr>
      <tr>
        <td align="center" bgcolor="#FCFCFC" style="padding:6px;"><table width="78%" height="207" border="0" cellpadding="0" cellspacing="0">
		 <form id="f1" name="thisForm" action="Login.asp" method="POST">
          <tr>
            <td>账号：
              <input id="username" maxlength="20" type="text" name="username" style="width:150px; height:18px;  border:1px #FFD6A0 solid; " />            </td>
          </tr>
          <tr>
            <td>密码：
              <input id="password2" type="password" maxLength="32" name="password" style="width:150px; height:18px;  border:1px #FFD6A0 solid;  " /></td>
          </tr>
          <tr>
            <td><input type="hidden" name="login" value="jle">
 <input  onClick="javascript:return CheckloginForm();" type="image"  alt="商家登录"  style="width:100px; height:35px;"  src="pic/dl_03.jpg" title="商家登录" name="image" border="0">
<input onClick="javascript:return CheckloginForm();" type="image" value="个人登录" name="per"  style="width:100px; height:35px;"  src="pic/dl_05.jpg" /></td>
          </tr>
		 </form>
          <tr>
            <td>
<a target="_blank" href="xx_fabu.asp"><b>★未注册用户===>点此快速免费发布信息</b></a> 　</td>
          </tr>
          <tr>
            <td><a href="getpass.asp" target="_blank" class="blueb">忘记密码?</a>&nbsp;&nbsp;&nbsp;&nbsp;<b>还不是注册会员？　<a href="jle_reg_520.asp" target="_blank"><font color="#FF0000">立即注册</font></a></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>

<br />
<br />
<a class="d" href="<%=web%>"><%=title%></a>  Copyright@ 2016 All Rights Reserved.</div>


<%end if%>

<%end if%>
</body>
</html>