⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 top_login.asp

📁 网络商店源码 实现商品浏览 购物车 后台管理等
💻 ASP
字号:
<body leftmargin="0" topmargin="0">
<table width="168" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="168" align="center" background="images/pic_005.gif"><br>
                 <%if request.cookies("snsn")("username")="" then%>
                <table width="98%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><form action="checkuserlogin.asp" method="post" name="userlogin" id="userlogin">
                      <table width="98%"  border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td height="23">&nbsp;</td>
                        </tr>
                        <tr>
                          <td><div align="center">用户:
                            <input name="username" type="text" id="username" size="12">
                          </div></td>
                        </tr>
                        <tr>
                          <td height="23"><div align="center">密码:
                            <input name="userpassword" type="password" id="userpassword" size="12">
                          </div></td>
                        </tr>
                        <tr>
                          <td><div align="center">
                          <input name="B3" type="image" id="B3" src="images/pic_006.gif" width="45" height="21" border="0"> <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></div></td>
                        </tr>
                      </table>
                    </form></td>
                  </tr>
                </table>
                <%Else%>
               <br><%=Request.Cookies("snsn")("username")%><font color="#FF0000">,欢迎您</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 border="0" width="100%" cellspacing="0" cellpadding="5">
                     <tr>
                       <td width="100%" height="77"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                           <tr>
                             <td><font color="<%=tq%>"> 您的物车有: <%=rec_count%>种商品</font></td>
                           </tr>
                           <tr>
                             <td height="17"><font color="<%=tq%>">总计价格¥:<%=rs("zongji")%></font> </td>
                           </tr>
                           <tr>
                             <td><a href="gouwu.asp?action=show&lx=1">查看购物车</a> - <a href="user.asp?action=dindan">查询订单</a> </td>
                           </tr>
                       </table><% End If %></td>
                     </tr>
                </table></td>
              </tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -