<table width="180" 
border="0" align="center" cellpadding="0" cellspacing="0" background="eshop_img/loginbg.gif">
  <tbody>
    <%if session("user")=""  then%>
  </tbody>
  <form action="checkuserlogin.asp" method="post" name="userlogin" id="userlogin">
    
    <tr>
      <td width="35%" ><div align="right">账　号：</div></td>
      <td width="65%"><div align="left">
        <input name="user" type="text" id="username" maxlength="18" size="12" />
      </div></td>
    </tr>
    <tr>
      <td ><div align="right">密　码：</div></td>
      <td>
        <input name="pass" type="password" id="userpassword" maxlength="18" size="12" /></td>
    </tr>
    <tr>
      <td class="text"><div align="right">验证码：</div></td>
      <td>
        <input name="verifycode" type="text" value="<%If GetCode=9999 Then Response.Write "9999"%>" maxlength="4" size="6" />
        <img src="GetCode.asp" /></td>
    </tr>
   
    <tr>
      <td colspan="2">
        <div align="center">
          <INPUT onfocus=this.blur() type=image height=16 width=52 
      src="images/login.gif" border=0 name=imageField>
      <A 
      href="register.asp"><IMG height=16 hspace=5 
      src="images/reg.gif" width=52 border=0></A></div></td>
    </tr>
    <tr>
      <td colspan="2"><div align="center"><IMG height=9 hspace=5 src="images/dot03.gif" 
      width=9><A 
      onclick="javascript:window.open('getpwd.asp','shouchang','width=450,height=300');" 
      href="#">密码丢失/找回密码</A></div></td>
    </tr>
  </form>
  <%else%>
  <tr>
    <td colspan="2"><div align="center">
      <%
set rs=server.createobject("adodb.recordset")
rs.open "select * from [admin] where user='"&session("user")&"'",conn,1,3
session("qx=")=rs("qx")
session("user=")=rs("user")

if session("qx")=2 then
response.write ""&session("user")&" 系统管理员您好<br>欢迎使用本系统<br>"
else
response.write ""&session("user")&" VIP您好<br>欢迎光临本站<br>"
end if
response.write "<br><a href=user.asp><font color=red>进入会员中心</font></a>"
response.write "<br><a href=logout.asp>注销/退出</a>"
%>
    </div></td>
  </tr>
  <%end if%>
</table>

