<%if request.cookies("bjx")("shjianame")<>"" then%>

<head>
<style type="text/css">
<!--
.unnamed1 {
	color: #000000;
}
-->
</style>


</head>


<p><font color=#000000>尊敬的商家您好<br>
</font><font color=#000000>欢迎您管理您的网站！</font><br><a href=logout.asp><font color="#000000">[注销退出]</font></a>

<%elseif request.Cookies("bjx")("username")="" and request.cookies("bjx")("shjianame")="" then%>                             
<font color="#000000"><TABLE width=160 height="46" border=0 cellSpacing=3 cellpadding="0">
              <TBODY><form name="userlogin" method="post" action=checkuserlogin.asp><script language='javascript'>function hy() {if (( document.login.huiyuan.value == '' )||(document.login.password.value == '')) {window.alert('会员名称和登陆密码不能为空!!');return false;}return true;}</script><TR><TD width=90 vAlign=center>用户名：</TD>
   </font><TD width=47 align=left vAlign=center>
<font color="#FF6600"><input name=username  type=text style='font-size: 9pt; color: #FF6600; background-color: #FFFFFF; border: 1 dotted #FF6600' id=username size=12 maxlength=16>
</font>
				</TD>
              </TR>             
<font color="#000000"><TR><TD width=90 vAlign=center>密&nbsp; 码：</TD><TD vAlign=center align=left>                          
<font color="#000000"><input name=userpassword type=password  style='font-size: 9pt; background-color: #FFFFFF; color: #FF6600; border: 1 dotted #FF6600' id=userpassword size=12 maxlength=16>
   </font></TD>
				</TR>
              <TR><TD colspan="2" vAlign=center>
                    <table border="0" width="100%" cellspacing="0" cellpadding="0">
                      <tr>
<font color="#000000">
                <TD width=90>验证码：</TD>
                <TD align="left"><input name=verifycode type=text  style='font-size: 9pt; border: 1 dotted #FF6600' value="<%If GetCode=9999 Then Response.Write "9999"%>" maxlength=4 size=5></TD>  
                <TD>    
<font color="#000000"><img src=GetCode.asp>
   </font></TD>
   </font>
                      </tr>
                    </table>
                  </TD>
				</TR>
<TR><TD colspan="2" vAlign=center width="100%">
                    <table border="0" width="100%" cellspacing="0" cellpadding="0" height="65">
                      <tr>
<font color="#000000"><TD align=left width="72" rowspan="2" height="65">
                    <input name=imageField type=image onFocus=this.blur() onClick='javascript:return hy()'  src=imagess/please_index_login.gif border=0 ></TD><TD align=center width="90" height="32" valign="top">
<a href="reg.asp">
<img src=imagess/please_index_enter.gif border=0></a></TD>
   </font>
                      </tr>
                      <tr>
<TD align=center width="90" height="33" valign="bottom">
<font color="#000000"><a href="getpwd.asp">
<img src=imagess/please_index_enter1.gif border=0></a>
   </font>
</TD>
                      </tr>
                    </table>
                  </TD>
                 
				</TR></form>
</TABLE>

    <font color="#000000" class="unnamed1">
    <a href="logout.asp">
    <%else
set rs=server.createobject("adodb.recordset")
rs.open "select jifen,yucun,reglx,vipdate from [user] where username='"&request.Cookies("bjx")("username")&"'",conn,1,3
if rs("vipdate")<>"" then 
'看是不是过期VIP
if rs("vipdate")<date and rs("reglx")=2 then
rs("reglx")=1
rs.update
end if
end if
response.Cookies("bjx")("yucun")=rs("yucun")
response.Cookies("bjx")("jifen")=rs("jifen")
response.Cookies("bjx")("reglx=")=rs("reglx")
rs.close
set rs=nothing
if request.Cookies("bjx")("reglx")=2 then
response.write "<font color=#000000>"&request.Cookies("bjx")("username")&" 贵宾您好<br>您目前有"&request.Cookies("bjx")("jifen")&"积分,预存款"&request.Cookies("bjx")("yucun")&"元 </font>"
else
response.write "<font color=#000000>"&request.Cookies("bjx")("username")&" 您好<br>您目前有"&request.Cookies("bjx")("jifen")&"积分,预存款"&request.Cookies("bjx")("yucun")&"元 </font><br>"
response.Write "<a href=user.asp>[会员中心]</a> "
response.Write "<a href=logout.asp>[注销退出]</a> "

end if
end if
%>
    </a>
</font>

