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

📄 login.asp

📁 一个电子商务网站完整代码,在.net平台下开发
💻 ASP
字号:
<!--#include file="userfunc.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=563 border=0>
        <TR>
          <TD width=9><IMG height=9 src="images/vipasp_cornerl.gif" width=9></TD>
          <TD width=545 background=images/vipasp_top.gif></TD>
          <TD width=10><IMG height=9 
            src="images/vipasp_cornerr.gif" width=9></TD></TR>
        <TR>
          <TD width=9 background=images/vipasp_l.gif></TD>     
      <TD vAlign=top width=545>
	  <% if request.cookies("timesshop")("username")="" then 
	  		 Dim url %>
	  <table width=100% border=0 align=center cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>
          <form name=loginfo method=post action=chkuser.asp>
            <tr bgcolor=#ffffff> 
              <td width=22% height=19 align=right nowrap style='padding-left:1px'>用户 
              </td>
              <td width=16% style='padding-left:1px'><input name=username type=text id=username size=9> 
              </td>
              
            <td width=11% nowrap style='padding-left:1px' align="center">密 码</td>
              <td width=16% style='padding-left:1px'><input name=password type=password id=password3 size=10></td>
			  <!--
              <td width=7% style='padding-left:1px'>验证</td>
              <td width=29% style='padding-left:1px'><input name=passcode type=text id=passcode size=9>
                <img src="code.asp"></td>
				-->
              <td width=35% 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,shopjiage
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("timesshop")("username"))&"' ",conn,1,1
set shop=server.CreateObject("adodb.recordset")
shop.Open "select distinct(goods) from orders where username='"&request.Cookies("timesshop")("username")&"' and state=2 ",conn,1,1


if shop.recordcount=0 then %>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td colspan="2"><div align="center">欢迎&nbsp;<font color=ff0000>
            <% = Request.Cookies("timesshop")("username") %>
    </font>&nbsp;光临, 您目前没有未处理订单,共计:0.00元&nbsp;<a href=profile.asp?action=profile><font color="#FF0000">用户中心</font></a>&nbsp;<a href=logout.asp><font color="#FF0000">注销登录</font></a></div></td>
  </tr>

</table>
<%
else
do while not rs.eof
shopjiage=round(shopjiage+rs("price2")*rs("productnum"),2)
rs.movenext
loop %>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td colspan="2"><div align="center">欢迎&nbsp;<font color=ff0000>
            <% = Request.Cookies("timesshop")("username") %>
      </font>&nbsp;光临,您目前有
      <% = shop.recordcount %>
        笔未处理订单,共计:
        <% = shopjiage %>
        元(除邮费)<a href=profile.asp?action=profile><font color="#FF0000">用户中心</font></a> &nbsp;<a href=logout.asp><font color="#FF0000">注销登录</font></a></div></td>
  </tr>

</table>
<%
end if

shop.Close
set shop=nothing
rs.close
set rs=nothing	
end if %>
		</TD>
          <TD width=10 background=images/vipasp_r.gif></TD></TR>
        <TR>
          <TD width=9><IMG height=9 src="images/vipasp_cornerbl.gif" width=9></TD>
          <TD width=545 background=images/vipasp_b.gif></TD>
<TD vAlign=bottom width=10><IMG height=9 src="images/vipasp_cornerbr.gif" width=9></TD></TR></TABLE>

⌨️ 快捷键说明

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