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

📄 payment.asp

📁 这是一个很漂亮的网站购物系统
💻 ASP
字号:
<!--
★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
★                                                                  ★
☆ (请保留此处版权信息,这些内容并不会对您的网站运行有任何影响)   ☆
★                                                                  ★
☆                良精网店系统-白金版                              ☆
★                                                                  ★
☆  版权所有: 北京良精软件科技有限公司                              ☆
★                                                                  ★
☆  程序开发: 北京良精软件科技有限公司                              ☆
★            MSN:asp3721@hotmail.com noimpulse@hotmail.com         ★
☆            Tel:013366690044    销售QQ:88353022 技术QQ:812256     ☆
★                                                                  ★
☆  相关网址:http://www.liangjing.net                               ☆
★                                                                  ★
☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
-->
<!--#include file="../include/buyok_shop_30_conn.asp" -->
<%
call aspsql()
if reg<>"1" then
if request.cookies("buyok")("userid")="" then 
response.redirect "../shop_error.asp?error=006"
response.end
end if
end if
buylist = request.cookies("buyok")("cart")
if buylist="" then
response.redirect "../shop_error.asp?error=007"
response.end
end if
%> 
<html>
<head>
<title>填写订单详细信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Robots" content="index,follow">
<link rel="stylesheet" href="../buyok_shop.css" type="text/css">
<script language="JavaScript">
function CheckForm()
{
if (document.payment.post.value.length == 0) {
alert("请选择配送方式");
document.payment.post.focus();
return false;
}
if (document.payment.Recname.value.length <2 || document.payment.Recname.value.length>20 ) {
alert("请检查您输入的收货人姓名");
document.payment.Recname.focus();
return false;
}
if (document.payment.RecPhone.value.length < 6 || document.payment.RecPhone.value.length > 15) {
alert("请检查您输入的联系电话");
document.payment.RecPhone.focus();
return false;
}
if (document.payment.Recmail.value.length <11 || document.payment.Recmail.value.length >=100) {
alert("请检查您输入的电子信箱");
document.payment.Recmail.focus();
return false;
}
if (document.payment.Recmail.value.length > 0 && !document.payment.Recmail.value.match( /^.+@.+$/ ) ) {
 alert("请检查您输入的电子信箱");
 document.payment.Recmail.focus();
return false;
}
if (document.payment.ZipCode.value.length < 4) {
alert("请检查您输入的邮政编码");
document.payment.ZipCode.focus();
return false;
}
if (document.payment.address.value.length < 4) {
alert("请检查您输入的收货地址");
document.payment.address.focus();
return false;
}
return true;
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="20">
<%
Sum=request.cookies("buyok")("total")
%> 
<table border="0" cellspacing="0" cellpadding="0" align="center" width="520">
<tr bgcolor="#FFFFFF"> 
<td height=20><font color=red><b>您选购的商品总价为:<%=Sum%></b></font></td></tr>
<tr bgcolor="#FFFFFF"> <td align=center height=30> <font color=red>认真填写以下表格,带 * 号的必须填写</font></td></tr>
</table>
<table border="0" cellspacing="1" cellpadding="2" align="center" width="520" bgcolor="#cccccc">
<form name="payment" action="preview.asp" method=post  onSubmit="return CheckForm();">
<%
set rs=conn.execute ("select * from buyok_user where userid='"&request.cookies("buyok")("userid")&"'")
if not (rs.eof and rs.bof) then
Zipcode=rs("ZipCode")
HomePhone=rs("HomePhone")
CompPhone=rs("CompPhone")
address=rs("Address")
email=rs("UserMail")
name=rs("UserName")
end if
set rs=conn.execute("select * from shopsetup")
fei1=rs("fei1")
fei2=rs("fei2")
fei3=rs("fei3")
fei4=rs("fei4")
fei5=rs("fei5")
fei6=rs("fei6")
pei1=rs("pei1")
pei2=rs("pei2")
pei3=rs("pei3")
pei4=rs("pei4")
pei5=rs("pei5")
pei6=rs("pei6")
mianyoufei=clng(rs("mianyoufei"))
mianyoufei_msg=rs("mianyoufei_msg")
if clng(request.cookies("buyok")("total"))<mianyoufei then	
pei1=rs("pei1") & ",配送费用:" & fei1 &"元"
if pei2<>"" then pei2=pei2 & ",配送费用:" & fei2 &"元"
if pei3<>"" then pei3=pei3 & ",配送费用:" & fei3 &"元"
if pei4<>"" then pei4=pei4 & ",配送费用:" & fei4 &"元"
if pei5<>"" then pei5=pei5 & ",配送费用:" & fei5 &"元"
if pei6<>"" then pei6=pei6 & ",配送费用:" & fei6 &"元"
end if
set rs=nothing
response.write "<tr bgcolor='#FFFFFF'><td width='20%' align=right>配送及运费 &nbsp; </td><td>"
response.write "<select size='1' name='post'>"
response.write "<option selected value=''>请选择配送方式</option>"
response.write "<option value='1'>"&pei1&"</option>"
if pei2<>"" then response.write "<option value='2'>"&pei2&"</option>"
if pei3<>"" then response.write "<option value='3'>"&pei3&"</option>"
if pei4<>"" then response.write "<option value='4'>"&pei4&"</option>"
if pei5<>"" then response.write "<option value='5'>"&pei5&"</option>"
if pei6<>"" then response.write "<option value='6'>"&pei6&"</option>"
response.write "</select><font color=red>  *</font>"
if clng(request.cookies("buyok")("total"))>=mianyoufei then
response.write mianyoufei_msg
end if
%>
</td></tr>  
<tr bgcolor="#FFFFFF"> 
<td align=right>收货人姓名 &nbsp; </td>
<td><input style="BORDER: #CCCCCF 1px solid; FONT -SIZE: 9pt; COLOR: #666666;FONT-FAMILY: verdana; height=20" type="text" name="Recname" maxlength=16 size="30" value=<%=name%>><font color=red> *</font> 请填写真实的中文姓名</td> </tr>
<tr bgcolor="#FFFFFF"> 
<td align=right>收货人电话 &nbsp; </td>
<td><input style="BORDER: #CCCCCF 1px solid; FONT -SIZE: 9pt; COLOR: #666666;FONT-FAMILY: verdana; height=20" type="text" name="RecPhone" size="30" maxlength=15 value=<%=HomePhone%>><font color=red> *</font> </td></tr>
<tr bgcolor="#FFFFFF"> 
<td align=right>移动电话 &nbsp; </td>
<td><input style="BORDER: #CCCCCF 1px solid; FONT -SIZE: 9pt; COLOR: #666666;FONT-FAMILY: verdana; height=20" type="text" name="CompPhone"  size="30" maxlength=15 value=<%=CompPhone%>> 建议填写,以便联络</td></tr> 
<tr bgcolor="#FFFFFF"> 
<td align=right>收货人邮箱 &nbsp; </td>
<td><input style="BORDER: #CCCCCF 1px solid; FONT -SIZE: 9pt; COLOR: #666666;FONT-FAMILY: verdana; height=20" type="text" name="Recmail"  size="30" maxlength=100 value=<%=email%>> <font color=red> *</font></td></tr>  
<tr bgcolor="#FFFFFF"> 
<td align=right>邮政编码 &nbsp; </td> 
<td><input style="BORDER: #CCCCCF 1px solid; FONT -SIZE: 9pt; COLOR: #666666;FONT-FAMILY: verdana; height=20" type="text" name="ZipCode" size="30" maxlength=10 value=<%=Zipcode%>><font color=red> *</font></td></tr>  
<tr bgcolor="#FFFFFF"><td align=right>收货人地址 &nbsp; </td>
<td><input style="BORDER: #CCCCCF 1px solid; FONT -SIZE: 9pt; COLOR: #666666;FONT-FAMILY: verdana; height=20" name="address" maxlength=100 size=30 value='<%=address%>'><font color=red> *</font></td></tr>
<tr bgcolor="#FFFFFF"><td align=right>指定送达时间 &nbsp; </td>
<td><input style="BORDER: #CCCCCF 1px solid; FONT -SIZE: 9pt; COLOR: #666666;FONT-FAMILY: verdana; height=20" name="gettime" size=30  maxlength=30  value='<%=gettime%>'></td></tr>
<tr bgcolor="#FFFFFF"><td align=right >我的其它要求 &nbsp; </td>
<td><textarea  style="BORDER: #CCCCCF 1px solid; FONT -SIZE: 9pt; COLOR: #666666;FONT-FAMILY: verdana;" name="Notes" cols="44" rows="3" style="overflow:auto;"></textarea><br><font color=red>例如可注明QQ以便联系,或者填写货品颜色、尺码等要求。</font></td></tr>
<tr bgcolor="#FFFFFF"><td height="35" colspan="2" align="center">
<input type="submit" name="nextstep" value="确认订单">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
<input type="button" name="Submit21" onclick="javascript:history.go(-1)" value="返回修改">
</td></tr>
</form> 
</table>
</body></html>
<%
conn.close
set conn=nothing
%>
<!--
★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
★                                                                  ★
☆ (请保留此处版权信息,这些内容并不会对您的网站运行有任何影响)   ☆
★                                                                  ★
☆                良精网店系统-白金版                              ☆
★                                                                  ★
☆  版权所有: 北京良精软件科技有限公司                              ☆
★                                                                  ★
☆  程序开发: 北京良精软件科技有限公司                              ☆
★            MSN:asp3721@hotmail.com noimpulse@hotmail.com         ★
☆            Tel:013366690044    销售QQ:88353022 技术QQ:812256     ☆
★                                                                  ★
☆  相关网址:http://www.liangjing.net                               ☆
★                                                                  ★
☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
-->

⌨️ 快捷键说明

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