<%
membershipcn = GetMembershipcn_Autoupdate(session("userid"))
discount = GetMembership_discount_Autoupdate(session("userid"))%>
<div class="rightbar" >
<div class="warp">
<div class="login">
<form action="User_login.asp?action=login&httpurl=<%=httpurl%>" method="post" name="loginbox" target="_self" onSubmit="return checkform();">
<%if Session("UserID") ="" then%>
<div class="dlq">
<div class="input">用户名<%Userid_ = session("Userid_")%><input type="text" name="userid" value="<%=userid_%>" class="text1"/></div>
<div class="input">密 码<input type="password" name="password"class="text1" /></div>
<div class="code">验证码<input name="Code" type="text" maxlength="4" class="text2"/><img id=ob_codeimg onClick="this.src='/inc/getcode.asp?'+Math.random();" title="看不清?点一下" src="../inc/getcode.asp"></div>
<!--div class="input"><input name="youname" type="checkbox" id="youname" value="yes" <%if request.cookies("youname")="yes" then%>checked="checked"<%end if%> />
下次自动登陆</div-->
<div class="btm"><a href="User_reg.asp">用户注册</a> | <a href="#">忘记密码</a><input name=Submit type="submit" id=login2 onClick=this.form.submit(); value="提交" class="btn2"/></div>
</div>
<%else%>
<div class="dlh">
<ul>
<li>欢迎 <%=rsb("UserName")%> 回来</li>
<li>您当前积分:<%=Jifen%></li>
<li>您的头衔是:<%=membershipcn%></li>
<li>已推荐会员:<%=UserEndsNum%></li>
</ul>
<div class="btm"><a href="User_index.asp">会员中心</a> | <a href="User_Exit.asp">安全退出</a></div>
</div>
<%end if%>
</form>
</div><!--登录结束-->
<div class="guang200">
<script type="text/javascript"><!--
google_ad_client = "pub-3501599157132427";
google_ad_slot = "6003118198";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<a href=" http://count.chanet.com.cn/click.cgi?a=268463&d=110396&u=index1&e=" target="_blank"><IMG SRC=" http://file.chanet.com.cn/image.cgi?a=268463&d=110396&u=index1&e=" width="200" height="200" border="0"></a></div>
<div class="rank">
<div><img src="images/tjphb.png" width="240" height="27" /></div>
<ul>
<%
set rs=server.createobject("adodb.recordset")
sqluser = "select top 10 UserName, UserEndsNum from UserList order by UserEndsNum Desc"
rs.open sqluser,conn,1,1
if not rs.eof then
do while not rs.eof
%>
<li><span><%=rs(0)%></span><%=rs(1)%> 名</li>
<%
rs.movenext
loop
rs.close
set rs=nothing
else
%>
<% end if %>
</ul>
</div>
<div class="rank">
<div><img src="images/djphb.png" width="240" height="27" /></div>
<ul>
<%
set rs=server.createobject("adodb.recordset")
sqltext = "select userlist.userName, sum(-JifenList.Jifen) from JifenList inner join userlist on userlist.id = Jifenlist.UserID where Jifenlist.Jifen < 0 group by userlist.userName order by sum(-JifenList.Jifen) Desc"
rs.open sqltext,conn,1,1
if not rs.eof then
i = 0
do while not rs.eof
debits=rs (1)
'debits = Formatnumber(debits,1,-1)
i = i + 1
%>
<li><span><%=rs("UserName")%></span><%=debits%><img src="images/gold.png" /></li>
<%
if i >= 10 then exit do
rs.movenext
loop
rs.close
set rs=nothing
else
%>
<% end if %>
</ul>
</div>
<div class="guang200">
<script type="text/javascript"><!--
google_ad_client = "pub-3501599157132427";
google_ad_slot = "6319306296";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<a href=" http://count.chanet.com.cn/click.cgi?a=268463&d=79918&u=index2&e=" target="_blank"><IMG SRC=" http://file.chanet.com.cn/image.cgi?a=268463&d=79918&u=index2&e=" width="200" height="200" border="0"></a>
</script>
</IFRAME>
</div>
<div><img src="images/rightbar_bt.png" width="250" height="17" /></div>
</div>