<%if session("loogoo.com")="" then
	response.write "<META http-equiv=Content-Type content=text/html; charset=gb2312><meta HTTP-EQUIV=REFRESH CONTENT=8><br><br>本网上购物系统要求使用安全的session cookies，以便存储您的购物信息，由于您的浏览器禁用session cookies，所以您不能正常登录本购物系统。请将您的浏览器重新设置为接受安全的session cookies，即可正常登陆，谢谢您对我们的支持与信任！！"
	response.end
end if%>
<!--#include file="top.asp" -->
<table width="760" bgcolor="#ffffff" align="center" cellpadding="0" cellspacing="0" class="table-zuoyou">
  <tr>
    <td width="170" height="350" valign="top" class="table-you"> 
	<!--#include file="conn/logininc.asp" -->
	<!--#include file="conn/searchinc.asp" -->
	<!--#include file="conn/fenleiinc.asp" --></td>
<td width="590" valign="top">
	<!--#include file="conn/bannerinc.asp" -->
  <table width="590" border="0" align="center" cellpadding="0" cellspacing="0" class="table-shang">
	 <tr><td valign="top"><p>&nbsp;</p>
     <table width="90%" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td>
<%
	huiyuan=nohack(request("huiyuan"))
	password=nohack(Request("password"))

	set rs=server.createobject("adodb.recordset")
	sql="select * from huiyuan where huiyuan='"&huiyuan&"' and password='"&password&"'"

	rs.open sql,conn,1,1
 	if not(rs.bof and rs.eof) then
 		if huiyuan=rs("huiyuan") and password=rs("password") then
			session("huiyuan")=rs("huiyuan")
		'如果购买车为空，转入网站首页，否则进入购物车页面
         set rs2 = conn.execute("select * from ls_cart where sessionid="&session.SessionID&"")
          If rs2.eof Then
          Response.write "<meta http-equiv=refresh content='5; url=index.asp?userid="&userid&"'>"
          Response.write "<br><img src=../image/tp01.gif width=17 height=17> 欢迎"&huiyuan&"登陆!<br><br>"
          Response.write "<img src=../image/tp01.gif width=17 height=17> <a href=index.asp?userid="&userid&">请返回商场首页</a>"
         Else
         Response.write "<meta http-equiv=refresh content='10; url=index.asp?userid="&userid&"'>"
         Response.write "<br><img src=../image/tp01.gif width=17 height=17> 欢迎"&huiyuan&"登陆!<br><br>"
         Response.write "<img src=../image/tp01.gif width=17 height=17> <a href=index.asp?userid="&userid&">返回商场首页</a><br><br>"
         Response.write "<img src=../image/tp01.gif width=17 height=17>  <a href=go-cart.asp?userid="&userid&">去收银台</a>"
            End If
            rs2.close
            set rs2=nothing
 		else
			call Error
 		end if
	else
		call Error()
	end if

	sub Error()
        Response.write "<img src=../image/tp01.gif width=17 height=17>&nbsp;&nbsp;用户名或密码错误！<br><br>&nbsp;&nbsp;<a href=# onclick='javascript:window.history.go(-1)'>&gt;&gt;返回上一页</a>"
	end sub
	rs.close
	set rs=nothing
%>
          </td>
        </tr>
      </table>
       </td>
        </tr>
      </table>
    </td>
  </tr>
</table><!--#include file="bd.asp" -->