<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
*{margin:0;padding:0;font-family:Tahoma;}
body{font-size:9pt;background-color:#000;}
.login{background-image:url(skin/default/login_bg.jpg);background-repeat:no-repeat;height:180px;width:233px;float:left;color:#FFF;}
.icon{background-image:url(skin/default/title_icon.gif);background-repeat:no-repeat;height:19px;margin-top:10px;margin-left:10px;padding-left:25px;font-size:12px;line-height:19px;font-weight:bolder;color:#FFF;margin-right:20px;}
select{font-size:9pt;background-color:#535353;color:#FFF;width:60px;margin-top:-3px;margin-bottom:3px;}
.logincont{margin-left:10px;margin-top:20px;font-size:9pt;color:#FFF;line-height:35px;}
.logincont .inputbg{background-image:url(skin/default/btn_01.gif);background-repeat:no-repeat;background-position:left center;}
.logincont .input{background-image:url(skin/default/btn_01_bg.gif);border:0 none #000;height:16px;padding-top:2px;margin-left:12px;font-size:9pt;color:#FFF;}
.logincont .input{width:130px;margin-top:2px;}
.logincont .btn,.logincont .btn2{font-size:9pt;color:#FFF;border:0 none #000;background-image:url(skin/default/btn_02.gif);height:27px;width:66px;background-repeat:no-repeat;}
.logincont .btn{background-position:left;}
.logincont .btn2{background-position:right;}
.user{margin-top:10px;padding:10px;}
.user .userinfo th{background-image:url(skin/default/arrow_05.gif);background-repeat:no-repeat;background-position:left center;}
.user .userinfo td{text-align:center;color:#09F;}
.user .useract{margin-top:10px;}
.user .useract a{display:block;color:#FC0;text-decoration:none;background-image:url(skin/default/arrow_04.gif);background-repeat:no-repeat;background-position:left center;padding-left:15px;line-height:21px;}
.user .useract a:hover{color:#CF0;text-decoration:underline;}
.cookie{background-image:url(skin/default/cookie.gif);background-repeat:no-repeat;background-position:left;font-weight:400;float:right;width:76px;height:21px;line-height:21px;padding-left:15px;cursor:pointer;}
#hiddenmenu{position:absolute;top:31px;left:130px;background-image:url(skin/default/cookie_bg.gif);z-index:100;height:71px;width:76px;}
#hiddenmenu a{display:block;line-height:16px;margin-left:6px;margin-right:6px;text-decoration:none;color:#FFF;}
#hiddenmenu a:hover{background-color:#000;}
</style>
<script type="text/javascript" src="skin/default/function.js"></script>
<script type="text/javascript" src="skin/default/cookie.js"></script>
</head>
<body>
<%
If Trim(Request.Cookies("newasp_net")) = "" Then
%>
<form name="form1" method="post" action="user/login.asp?action=login" target="_top">
	<input type="hidden" name="CookieDate" value="0" />
<script type="text/javascript">
<!--
document.write('<input type="hidden" name="comeurl" value="'+ top.window.location +'">');// -->
</script>
  <div class="login">
    <div class="icon"><div class="cookie" id="cookied">不保存</div>用户登录</div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="logincont">
      <tr>
        <td>用户名</td>
        <td class="inputbg"><input name="username" type="text" id="username" maxlength="20" class="input"></td>
      </tr>
      <tr>
        <td>密　码</td>
        <td class="inputbg"><input name="password" type="password" id="password" maxlength="50" class="input"></td>
      </tr>
      <tr>
				<td></td>
        <td><input type="button" value="注册" class="btn" onclick="window.open('user/reg.asp')" />
          <input type="submit" class="btn2" value="登录" />
        </td>
      </tr>
    </table>
  </div>
</form>
<div id="hiddenmenu" style="display:none;"><a href="javascript:cookieWrite(this,0);">不保存</a><a href="javascript:cookieWrite(this,1);">保存一天</a><a href="javascript:cookieWrite(this,2);">保存一月</a><a href="javascript:cookieWrite(this,3);">保存一年</a></div>
<%
Else
%>
<div class="login">
  <div class="icon">用户控制面板</div>
  <div class="user">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="userinfo">
      <thead>
        <tr>
          <th>用户名称 </th>
          <th>用户身份 </th>
          <th>会员类型 </th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><%=Request.Cookies("newasp_net")("username")%></td>
          <td><%=Request.Cookies("newasp_net")("UserGroup")%></td>
          <td>
<%
If CInt(Request.Cookies("newasp_net")("UserClass")) = 1 Then
	Response.Write "计时会员"
ElseIf CInt(Request.Cookies("newasp_net")("UserClass")) = 999 Then
	Response.Write "管理员"
Else
	Response.Write "计点会员"
End If
%>
          </td>
        </tr>
      </tbody>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="useract">
      <tr>
        <td><a href="GuestBook/" target="_top">用户留言</a></td>
        <td><a href="user/changepsw.asp" target="_blank"> 修改密码</a></td>
      </tr>
      <tr>
        <td><a href="/user/" target="_top">管理中心</a></td>
        <td><a href="user/changeinfo.asp" target="_blank">修改资料</a></td>
      </tr>
      <tr>
        <td><a href="/user/logout.asp" target="_top">退出登录</a></td>
        <td><a href="user/addmoney.asp" target="_blank">会员充值</a></td>
      </tr>
    </table>
  </div>
</div>
<%
End If
%>
</body>
</html>
