📄 cash.asp
字号:
<!--#include file="conn.asp"--><head>
<link href=img/css.css rel=STYLESHEET type=text/css>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<title>Pay online</title></head>
<body topmargin="0">
<font color="#000000"><b>
<%
if session("user_name")="" then
response.write "<br>"
response.write "<center>"
response.write "1.Already our member, Please Login First!"
response.write "<br>"
response.write "<br>2.New to our, If you want to login, you'll need to register first.<a href=reg.asp target=_blank><font color=#FF0000> register </font></a>!"
response.write "<br>"
response.end
end if
dim sql,rs
set rs=server.createobject("adodb.recordset")
if request("action")="buy" then
if request("count")="" then
count=1
else
count=Cint(request("count"))
end if
if request("hw_id")="" then
response.write "the product is not found."
else
hw_id=request("hw_id")
end if
sql="select * from basket where hw_id='"&hw_id&"' and user_name='"&session("user_name")&"' and basket_check=false"
rs.open sql,conn,3,3
if rs.eof then
rs.addnew
rs("hw_id")=hw_id
rs("user_name")=session("user_name")
rs("basket_count")=count
rs("basket_date")=now()
rs("hw_name")=request("hw_name")
rs("hw_cash")=request("hw_cash")
rs("isbn")=request("isbn")
rs("user_type")=request("user_type")
else
rs("basket_count")=int(rs("basket_count"))+int(count)
end if
rs.update
rs.close
%>
</b></FONT>
<%end if%>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="50">
<tr>
<td align="center">
<img border="0" src="img/promo_list_top.gif" width="100%" height="4"></td>
</tr>
<tr>
<td height="18" bgcolor="#DBC2B0" align="center"><b><font color="#F5EFE7">Pay</font></b></td>
</tr>
<tr>
<td height="25" valign="top"> <form method="POST" action="cashsave.asp">
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td valign="top">
<table border="0" cellspacing="0" height="34" cellpadding="0" width="100%" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td height="120" valign="bottom" bgcolor="#F5EFE7">
<p align="center"><br>The products in your cart:</p>
<div align="center">
<center>
<table width="90%" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
<tr background="img/tile_bg.gif">
<td width="135" height="25"><div align="center">Name</div></td>
<td width="60" height="25"><div align="center">Price</div></td>
<td width="60" height="25"><div align="center">Points</div></td>
<td width="60" height="25"><div align="center">Count</div></td>
<td width="80" height="25"><div align="center">Total Price</div></td>
<td width="80" height="25"><div align="center">Total Points</div></td>
</tr>
<%
user_name=session("user_name")
sql="select * from basket where user_name='"&user_name&"' and basket_check=false"
rs.open sql,conn,3,3
if rs.eof then
response.write "No product in your cart."
else
do while not rs.eof
%>
<tr>
<td width="135" height="25"><div align="center"><font color=red><%=rs("hw_name")%></font></div></td>
<td width="60" height="25"><div align="center"><%=rs("hw_cash")%>RMB</div></td>
<td width="60" height="25"><div align="center"><%=rs("isbn")%></div></td>
<td width="60" height="25"><div align="center"><%=rs("basket_count")%></div></td>
<td width="80" height="25"><div align="center"><%=rs("hw_cash")*rs("basket_count")%>RMB
</div></td>
<td width="80" height="25"><div align="center"><%=rs("isbn")*rs("basket_count")%>
</div></td>
</tr>
<%totalcash=totalcash+(rs("hw_cash")*rs("basket_count"))%>
<%totalisbn=totalisbn+(rs("basket_count")*rs("isbn"))%>
<%rs.movenext
loop
end if
rs.close
%>
<tr>
<td height="25" colspan="6" align="center">You should pay:<%=totalcash%>RMB Received Points:<%=totalisbn%></td>
</tr>
<tr>
<td height="25" colspan="6" align="center"><input align=absMiddle alt=submit cache name="B1" src="img/ok.gif" type=image tppabs="" width="45" height="20">
</b></div></td>
</tr>
</table>
</center>
</div>
<br> <table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle"><div align="center"><img src="img/seperator.gif" width="359" height="1"></div></td>
</tr>
</table></td></tr>
</table>
</td>
</tr>
</table>
</form></td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -