<%
dim db:db="../../include/database/#anxinmall.mdb"
dim connStr:connStr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(""&db&"")
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open connstr
dim newsid : newsid = request.querystring("newsid")
set rs=server.createobject("adodb.recordset")
dim userid:userid=request.cookies("anxinMall_user")("c_userid")
dim prodcount
if userid<>"" then
rs.open "Select count(*) as count1 from [anxinMall_gouwuche] where buyerid="&userid,conn,1,3
	prodcount=rs("count1")
rs.close
Set rs=Nothing
else
	prodcount=0
end if

if request.cookies("anxinMall_user")("c_userid")<>"" then%>
document.write("<a href='#'>用户:</a><font color=#008750><%=request.cookies("anxinMall_user")("c_username")%></font> | <a href='/user/buyer/b_index.asp'><font color=#ff0000>会员中心</font></a> | <a href='/user/login.asp?action=logout'><font color=#008000>退出</font></a> | <a href='<%if request.cookies("anxinMall_my")("c_userid")<>"" then%>/index.asp?a=cart2<%else%>/index.asp?a=cart2<%end if%>'><img src='/file/images/gwc.gif' border=0>购物车</a>(<font color=red><b><%=prodcount%></b></font>)");
<%else%>
document.write("[<a href='/user/buyer/b_index.asp' rel='nofollow' class='aa21c1d'>登录</a>]&nbsp;[<a href='/user/register.asp' rel='nofollow' class='aa21c1d'>注册</a>]");
<%end if%>