<table width="168" height="136" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td align="center" > 
               <%if request.cookies("snsn")("username")="" then%>
                  <font color="#FF0000"> 
                  <%if login=0 then%>
                  </font> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="5">
                          <tr> 
                            <td width="100%"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td> <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                      <form name="LoginForm" method="post" action="../Chklogin.asp">
                                        <tr> 
                                          <td align=center></td>
                                        </tr>
                                        <tr> 
                                          <td width="100%" align="center" height="10"></td>
                                        </tr>
                                        <tr> 
                                          <td width=100% height="25" align=center><font color="#FF0000">尊敬的各位用户您好</font></td>
                                        </tr>
                                        <tr> 
                                          <td width=100% height="25" align=center><p><font color="#FF0000">网站目前正在维护中</font></p></td>
                                        </tr>
                                        <tr> 
                                          <td width=100% height="25" align=center valign="bottom"><font color="#FF0000">日前暂时禁止用户登录</font></td>
                                        </tr>
                                      </form>
                                    </table></table></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table>
                  <%else%>
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="5">
                          <tr> 
                            <td width="100%"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td> <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                      <form name="userlogin" method="post" action="checkuserlogin.asp">
                                                                                                                     <tr>
																														<td>
																														<p align="center">顾客您好,购买商品请先登录</td>
																														</tr>
                                                                                                                     <tr> 
                                          <td width=100% height="25" align=center>用户名： 
                                            <input name="username" class="wenbenkuang" id="username" size=12 ></td>
                                        </tr>
                                        <tr> 
                                          <td width=100% height="25" align=center>密　码： 
                                            <input name="userpassword" type=password class="wenbenkuang" id="userpassword" size=12 ></td>
                                        </tr>
                                        <tr> 
                                          <td width=100% height="25" align=center valign="bottom"> 
                                            <input name="B3" type="image" value="按钮" src="images/pic_006.gif" width="45" height="21"> <a href="Reg.asp"><img src="images/pic_007.gif" alt="注册新用户" width="45" height="21" border=0></a> <a href="getpwd.asp"><img src="images/pic_002.gif" alt="注册新用户" width="45" height="21" border=0></a> 
                              </td>
                                        </tr>
                                      </form>
                                    </table></table></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table>
                  <%end if%>
                  <%else%>
      			<p> <font color="#FF0000">尊敬的：<%=Request.Cookies("snsn")("username")%>，您好！ 
      </font> 
      <%
					  if request.cookies("snsn")("username")<>"" then 
					  set rs=server.CreateObject("adodb.recordset")
					  rs.open "select count(*) as rec_count from shop_action where username='"&request.cookies("snsn")("username")&"' and zhuangtai=7",conn,1,1
					  rec_count=rs("rec_count")
					  rs.close
					  rs.open "select sum(zonger) as zongji from shop_action where username='"&request.cookies("snsn")("username")&"' and zhuangtai=7",conn,1,1
					  else
					  set rs=server.CreateObject("adodb.recordset")
					  rs.open "select count(*) as rec_count from shop_action where username='"&session("tmp_usersessionid")&"' and zhuangtai=7",conn,1,1
					  rec_count=rs("rec_count")
					  rs.close
					  rs.open "select sum(zonger) as zongji from shop_action where username='"&session("tmp_usersessionid")&"' and zhuangtai=7",conn,1,1
					  end if
					  %>
      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="5">
                          <tr> 
                            <td width="100%"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td><font color="<%=tq%>"> 您的购物车有： <%=rec_count%>种商品</font></td>
                                </tr>
                                <tr> 
                                  <td> <font color="<%=tq%>">总计价格￥：<%=rs("zongji")%>元 
                                    </font> </td>
                                </tr>
                                <tr> 
                                  <td> <a href="user.asp">会员中心</a> 
                                   | <a href="logout.asp">退出登录</a></td>
                                </tr>
                              </table></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table>
                  <%End IF%>
                </td>
              </tr>
            </table>