<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="fuction.asp"-->
<!--#include file="webtop.asp"-->
<SCRIPT language="JavaScript">
		function check()
		{
			if(document.userlogin.username.value=="")
			{
				alert("Please Fill Your Userneme!");
				document.userlogin.username.focus();
				return false ;
			}
			else if(document.userlogin.userpassword.value=="")
			{
				alert("Please Fill Your Password!");
				document.userlogin.userpassword.focus();
				return false ;
			}
			else if(document.userlogin.yz.value=="")
			{
				alert("Authcode Please!");
				document.userlogin.yz.focus();
				return false;
			}
			else
			return true ;
			
		}
			</SCRIPT>
<style type="text/css">
<!--
.style1 {
	color: #FF6600;
	font-weight: bold;
}
.style2 {
	color: #FF0000;
	font-weight: bold;
}
-->
</style>
</HEAD>

<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3"><table width="98%" border="0" align="right" cellpadding="0" cellspacing="0">
      <tr>
        <td width="50%" height="30"><img src="<%=weburl%>images/arrow01.gif" width="11" height="11" /> Your present position: <a href="<%=weburl%>"><%=webname%></a> -&gt; Member Login </td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td width="100%" valign="top"><table width="600" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr>
        <td height="5">&nbsp;</td>
      </tr>
      <tr>
        <td bgcolor="#999999"><table width="600" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr>
            <td height="25" bgcolor="#CCCCCC"><div align="center" style="font-weight: bold">Member Login</div></td>
          </tr>
          <tr>
            <td  valign="middle"><%if session("username")="" Then%>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                  <form name="userlogin" method="post" action="<%=weburl%>checkuserlogin.asp">
                    <tr>
                      <td width="33%" height="30" bgcolor="#FFFFFF">&nbsp;&nbsp;Username:
                        <input type="text" id="username" name="username" maxlength="15" size="13" class="wenbenkuang" style='background:url(<%=weburl%>images/login01.gif); padding:2 0 0 5;' onFocus="this.style.background='#F7F7F7'" ></td>
                      <td width="36%" height="30" bgcolor="#FFFFFF">&nbsp;&nbsp;Password:
                        <input type="password" name="userpassword" maxlength="15" size="13" class="wenbenkuang"  style="background:url(<%=weburl%>images/login01.gif); padding:2 0 0 5;" onFocus="this.style.background='#F7F7F7'">
                          <a onClick="showkeyboard(curEditName)" ><img src="<%=weburl%>img/login/login.gif" alt="使用软键盘" width="14" height="13" hspace="5" align="absMiddle"></a>
                          <input name="yzm" type="hidden" class="wenbenkuang" id="yzm" value="<%=yz%>" size="5">
                          <input name="yzm1" type="hidden" class="wenbenkuang" id="yzm1" value="<%=yz%>" size="8" maxlength="5"></td>
                      <td width="31%" bgcolor="#FFFFFF"><input name="image222" type="image" src="<%=weburl%>images/login02.gif"  border="0" /></td>
                    </tr>
                    
                    <tr>
                      <td height="30" colspan="3" bgcolor="#FFFFFF"><div align="center"><a href="<%=weburl%>reg.asp">Free Register!</a> <a href="<%=weburl%>getpwd.asp">Forgot your password?</a></div></td>
                      </tr>
                  </form>
                </table>
              <%
			Else
			username = session("username")                       
			set rslg = server.CreateObject("ADODB.RecordSet")
			mailnewno = "SELECT  Count(isnew) FROM sms where  tname='"&username&"' and isnew=1"   
			rslg.open mailnewno,conn,1,1
			 if rslg.Eof or rslg.Bof then
			 tishi="<a href="&weburl&"bbs/mysms.asp?id=0>0条</a>"                  
			 else                    
			tishi="<a href="&weburl&"bbs/mysms.asp?id=0><font color=red>"&rslg(0)&"条</font></a>"                        
			end If
			rslg.close
            set rslg = nothing
		%>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                  <form name="userlogin" method="post" action="<%=weburl%>checkuserlogin.asp">
                    <tr>
                      <td height="30" bgcolor="#FFFFFF"><%
						set rslg=server.createobject("adodb.recordset")
						sql = "select jifen,yucun,reglx,vipdate from [shop_user] where username='"&nosql(session("username"))&"'"
                        rslg.open sql,conn,1,3
                        if rslg("vipdate")<>"" then 
                          '检查VIP是否过期
                          if rslg("vipdate") < date and rslg("reglx") = 2 then
                          rslg("reglx") = 1
                          rslg.update
                          end if
                        end if
                        session("yucun") = rslg("yucun")
                        session("jifen") = rslg("jifen")
                        session("reglx") = rslg("reglx")
                        rslg.close
                        set rslg = nothing%>
                        &nbsp;&nbsp;Username:<%=session("username")%> &nbsp;Usertype:
                        <%if session("reglx") = 2 then
				response.write " <font color=red>VIP</font>&nbspMessage:"&tishi&""
								elseif session("reglx")=3 then
				response.write "<font color=red>Special Member</font>&nbspMessage:"&tishi&""
				else
				response.write "<font color=red>Member</font>&nbspMessage:"&tishi&""
				end if%>
                        &nbsp;Account:<%=session("yucun")%>&nbsp;Score:<%=session("jifen")%></td>
                    </tr>

                    <tr>
                      <td height="30" bgcolor="#FFFFFF"><div align="center"><a href="<%=weburl%>user.asp"><img src="<%=weburl%>images/login03.gif" width="80" height="28" border="0" /></a><a href="<%=weburl%>logout.asp"> <img src="<%=weburl%>images/login04.gif" width="80" height="28" border="0" /></a></div></td>
                      </tr>
                  </form>
                </table>
              <%end if%>
            </td>
          </tr>
        </table></td>
      </tr>
    </table>
    <br></td>
  </tr>
</table>
<!--#include file="copyright.asp"-->

</body>
</html>