?? top_login.asp
字號:
<table width="168" height="136" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" background="images/pic_005.gif">
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<%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 align=center></td>
</tr>
<tr>
<td width="100%" align="center" height="10"></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%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><IMG height=20 src="images/block.gif" width=1></td>
</tr>
</table> <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="gouwu.asp?action=show&lx=1">查看購物車</a>
- <a href="user.asp?action=dindan">查詢訂單</a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<%End IF%>
</td>
</tr>
</table>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -