<!--#include file="../conn.asp"-->
<%
call FTBBS_HTML_MB
url=Application("FTBBSMB")(10,0)
sql="select count(*) as num from sms where IsNew=1 and accepter='"&request.cookies("name")&"'"
set rs=conn.execute(sql)
num=rs("num")
num=cstr(num)
rs.close
Set rs=nothing
if num>0 then
smsnum="(<font color=red>"&num&"</font><embed src=images/ftbbs_sms.swf loop=false hidden=true volume=50 autostart=true width=0 height=0 name=foobar mastersound=mastersound></embed>)"
else
smsnum=""
end if
If request.cookies("name")<>"" then
   login="<table bordercolor=#ffffff cellspacing=0 cellpadding=5 width=100% align=center border=0>"
   login=login+ "<tbody>"
   login=login+ "<tr>"
   login=login+ "<td> <table cellspacing=0 cellpadding=0 width=100% border=0>"
   login=login+ "<tbody>"
   login=login+ "<tr>"
   login=login+ "<td class=f12 align=right>欢迎 <font color=red>"&request.cookies("name")&"</font> <a class=map href=main.asp?exit=yes>退出</a> - <a class=map href=moduserinfo.asp>修改资料</a>" 
   login=login+ " - <a class=map href=mysms.asp>我的信箱"&smsnum&"</a> - <a class=map href=myfriend.asp>我的好友</a>"
   login=login+ " - <a class=map href=main.asp?searchkind=name&searchcontent="&request.cookies("name")&">我发的贴</a> - <a class=map href=myfavorties.asp>收藏夹</a> - <a class=map href=home.asp?userid="&request.cookies("clubuser_id")&" target=_blank><font color=red>个人空间</font></a> - <a class=map href=search.asp>搜索</a>"
   login=login+ " - <a class=map href=help.asp>论坛指南</a></td>"
   login=login+ "</tr>"
   login=login+ "</tbody>"
   login=login+ "</table>"
   login=login+ "</td>"
   login=login+ "</tr>"
   login=login+ "</tbody>"
   login=login+ "</table>"
else
   login="<table bordercolor=#ffffff cellspacing=0 cellpadding=5 width=100% align=center border=0>"
   login=login+ "<tbody>"
   login=login+ "<tr>" 
   login=login+ "<td> <table cellspacing=0 cellpadding=0 width=100% border=0>"
   login=login+ "<tbody>"
   login=login+ "<tr>"
   login=login+ "<td class=f12 align=right>>>> <font color=red>论坛游客</font> - <a class=map href=register.asp>用户注册</a>" 
   login=login+ " - <a class=map href=userlogin.asp>用户登录</a> - <a class=map href=search.asp>贴子搜索</a>"
   login=login+ " - <a class=map href=help.asp>论坛指南</a></td>"
   login=login+ "</tr>"
   login=login+ "</tbody>"
   login=login+ "</table>"
   login=login+ "</td>"
   login=login+ "</tr>"
   login=login+ "</tbody>"
   login=login+ "</table>"
end if   
   Response.Write "document.write ("""&login&""");"
%>