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

📄 login2.asp

📁 上海购物网设计的购物系统是基于WEB开发的大型购物系统。   它以构建电子商务网站为目标
💻 ASP
字号:
<!--#include file="userfunc.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=222 border=0>
  <TR> 
    <TD width=9></TD>
    <TD vAlign=top width=204> 
      <% if request.cookies("Huibo")("username")=""or request.cookies("Huibo")("username")="游客" then  
	  		 Dim url %>
      <table width=100% height="80" border=0 align=center cellpadding=0 cellspacing=0>
        <form name=loginfo method=post action=chkuser.asp>
          <tr> 
            <td width=38% height=19 align=right nowrap style='padding-left:1px'>用户 
            </td>
            <td width=62% style='padding-left:1px'> <input name=username type=text id=username size=9> 
            </td>
            <td width=62% nowrap style='padding-left:1px' align="center">密 码</td>
            <td width=62% style='padding-left:1px'> <input name=password type=password id=password3 size=10> 
            </td>
          </tr>
          <tr> 
            <td height=18 style='padding-left:1px' align=right>验证 </td>
            <td style='padding-left:1px'> <input name=passcode type=text id=passcode size=9> 
            </td>
            <td style='padding-left:1px'><img src="code.asp"></td>
            <td style='padding-left:1px'> <input type=submit name=Submit value="登录" onClick="return checkuu();"> 
              &nbsp;<a href="reg.asp">注册</a> <input name=comeurl type=hidden value=<% = url %>> 
            </td>
          </tr>
        </form>
      </table>
      <%
else 
dim shop,rsvip,username 
set rs=server.CreateObject("adodb.recordset")
rs.open "select product.price2,product.vipprice,product.price1,orders.productnum from product inner join orders on product.id=orders.id where orders.state=2 and orders.username='"&trim(request.Cookies("Huibo")("username"))&"' ",conn,1,1
set shop=server.CreateObject("adodb.recordset")
shop.Open "select distinct(goods) from orders where username='"&request.Cookies("Huibo")("username")&"' and state=2 ",conn,1,1
set rsvip=server.CreateObject("adodb.recordset")
rsvip.open "select vip from [user] where username='"&request.Cookies("Huibo")("username")&"' ",conn,1,1
if  rsvip("vip") = true then 
if shop.recordcount=0 then %>
      <table width="100%" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td colspan="2"><div align="center">欢迎<font color=ff0000> 
              <% = Request.Cookies("Huibo")("username") %>
              </font>光临&nbsp;您是&nbsp;<font color=red>VIP</font>&nbsp;用户</div></td>
        </tr>
        <tr> 
          <td>您目前没有未处理订单</td>
          <td><a href=profile.asp?action=profile>用户中心</a></td>
        </tr>
        <tr> 
          <td>共计:0.00元</td>
          <td><a href=logout.asp>注销登录</a></td>
        </tr>
      </table>
      <%

else
dim shopjiage
do while not rs.eof
shopjiage=round(shopjiage+rs("vipprice")*rs("productnum"),2)
rs.movenext
loop %>
      <table width="100%" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td colspan="2"><div align="center">欢迎<font color=ff0000> 
              <% = Request.Cookies("Huibo")("username") %>
              </font>光临&nbsp;您是&nbsp;<font color=red>VIP</font>&nbsp;用户</div></td>
        </tr>
        <tr> 
          <td>您目前有<font color="#ff0000">&nbsp; 
            <% = shop.recordcount %>
            &nbsp;</font>笔未处理订单</td>
          <td><a href=profile.asp?action=profile><font color="#CC33CC">用户中心</font></a></td>
        </tr>
        <tr> 
          <td>共计: 
            <% = shopjiage %>
            元(不含邮费)</td>
          <td><a href=logout.asp>注销登录</a></td>
        </tr>
      </table>
      <%
end if
rsvip.close
set rsvip = nothing
else
if shop.recordcount=0 then %>
      <table width="100%" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td colspan="2"><div align="center">欢迎<font color=ff0000> 
              <% = Request.Cookies("Huibo")("username") %>
              </font>光临&nbsp;您是<font color=red>普通</font>用户</div></td>
        </tr>
        <tr> 
          <td><font color="#000000">您目前没有未处理订单</font></td>
          <td><a href=profile.asp?action=profile>用户中心</a></td>
        </tr>
        <tr> 
          <td>共计:0.00元</td>
          <td><a href=logout.asp>注销登录</a></td>
        </tr>
      </table>
      <%
else
do while not rs.eof
shopjiage=round(shopjiage+rs("price2")*rs("productnum"),2)
rs.movenext
loop %>
      <table width="100%" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td colspan="2"><div align="center">欢迎<font color=ff0000> 
              <% = Request.Cookies("Huibo")("username") %>
              </font>光临&nbsp;您是<font color=red>普通</font>用户</div></td>
        </tr>
        <tr> 
          <td>您目前有 
            <% = shop.recordcount %>
            笔未处理订单</td>
          <td><a href=profile.asp?action=profile>用户中心</a></td>
        </tr>
        <tr> 
          <td>共计: 
            <% = shopjiage %>
            元(除邮费)</td>
          <td><a href=logout.asp>注销登录</a></td>
        </tr>
      </table>
      <%
end if
end if
shop.Close
set shop=nothing
rs.close
set rs=nothing	
end if %>
    </TD>
    <TD width=10></TD>
  </TR>
</TABLE>

⌨️ 快捷键说明

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