?? snsn.asp
字號:
<!--
┌─9911.com.cn────────────┐
│ 動感購物 WWW.9911.com.cn 版權所有 │
│ 動感購物2005Vb 聯系:web@snsn.net │
└───────────9911.com.cn──┘
-->
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="pay_md5.asp" -->
<!--#include file="fuction.asp"-->
<!--#include file="pay.asp" -->
<html>
<script language="JavaScript">
<!--
function IsDigit()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
function ssxx()
{
if(checkspace(document.shouhuoxx.userzhenshiname.value)) {
document.shouhuoxx.userzhenshiname.focus();
alert("對不起,請填寫收貨人姓名!");
return false;
}
if(checkspace(document.shouhuoxx.shouhuodizhi.value)) {
document.shouhuoxx.shouhuodizhi.focus();
alert("對不起,請填寫收貨人詳細收貨地址!");
return false;
}
if(checkspace(document.shouhuoxx.youbian.value)) {
document.shouhuoxx.youbian.focus();
alert("對不起,請填寫郵編!");
return false;
}
if(document.shouhuoxx.youbian.value.length!=6) {
document.shouhuoxx.youbian.focus();
alert("對不起,請正確填寫郵編!");
return false;
}
if(checkspace(document.shouhuoxx.usertel.value)) {
document.shouhuoxx.usertel.focus();
alert("對不起,請留下您的電話!");
return false;
}
if(document.shouhuoxx.useremail.value.length!=0)
{
if (document.shouhuoxx.useremail.value.charAt(0)=="." ||
document.shouhuoxx.useremail.value.charAt(0)=="@"||
document.shouhuoxx.useremail.value.indexOf('@', 0) == -1 ||
document.shouhuoxx.useremail.value.indexOf('.', 0) == -1 ||
document.shouhuoxx.useremail.value.lastIndexOf("@")==document.shouhuoxx.useremail.value.length-1 ||
document.shouhuoxx.useremail.value.lastIndexOf(".")==document.shouhuoxx.useremail.value.length-1)
{
alert("Email地址格式不正確!");
document.shouhuoxx.useremail.focus();
return false;
}
}
else
{
alert("Email不能為空!");
document.shouhuoxx.useremail.focus();
return false;
}
}
//-->
</script>
<head>
<title><%=webname%>--我要下訂單</title>
<link rel="SHORTCUT ICON" href="/shortcut.ico">
<meta name="generator" content="snsn-shop">
<meta name=keywords content="<%=webgjz%>">
<meta name="description" content="<%=webmx%>">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta http-equiv="MSThemeCompatible" content="Yes">
<link href="/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜歡本站,別忘了把本站介紹給您的好友哦!:)';return true">
<!--#include file="webtop.asp"-->
<table width="940" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="6" colspan="3"></td>
</tr>
<tr>
<td width="17"><img src="/img/index_1.gif" width="15" height="16"></td>
<td valign="bottom">您現在的位置是:<a href="<%=weburl%>"><%=webname%></a> -> <span class="table-shangxia">訂單中心</span></td>
<td valign="bottom">
</td>
</tr>
<tr>
<td height="6" colspan="3"></td>
</tr>
</table>
<table width="945" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<br>
<%
action=request("action")
set rs=server.CreateObject("adodb.recordset")
rs.open "select count(*) as rec_count from shop_action where username='"&nosql(session("tmp_usersessionid"))&"' and zhuangtai=7",conn,1,1
if rs("rec_count")=0 then
response.write "<script language=javascript>alert('對不起,您購物車沒有商品,請在購物后,再去“結算中心”!');window.history.go(-1);</script>"
response.End
end if
rs.close
set rs=nothing
select case action
case ""
set rs=server.CreateObject("adodb.recordset")
rs.open "select shop_action.actionid,shop_action.shopid,shop_action.shopcount,shop_action.zonger,shop_snsn.shopname,shop_snsn.shichangjia,shop_snsn.huiyuanjia,shop_snsn.vipjia,shop_snsn.pifajia from shop_snsn inner join shop_action on shop_snsn.shopid=shop_action.shopid where shop_action.username='"&session("tmp_usersessionid")&"' and shop_action.zhuangtai=7",conn,1,1
%>
<form name="shouhuoxx" method="post" action="snsn.asp?action=a" onSubmit="ssxx"> <table width=96% border=0 align=center cellpadding=0 cellspacing=1 bgcolor="73D1E9" class="table-zuoshang">
<tr bgcolor="#C0E9F5" class="a1">
<td height="25" bgcolor="#C0E9F5" >
<strong> 商品名稱</strong></td>
<td height="25" >
<div align=center><%=jiagename1%></div></td>
<td height="25" >
<div align=center><strong>單價</strong></div></td>
<td height="25" >
<div align=center><strong>數量</strong></div></td>
<td height="25" >
<div align=center><strong>總價</strong></div></td>
</tr>
<%shuliang=rs.recordcount
jianshu=0
zongji=0
do while not rs.eof%>
<tr>
<td height="25" bgcolor="#FFFFFF" style='PADDING-LEFT: 5px'>
<div align=left><a href="research.asp?searchkey=<%=rs("shopname")%>" target="_blank"><%=rs("shopname")%></a> <input name=shopid type=hidden value="<%=rs("shopid")%>" >
<input name=actionid type=hidden value="<%=rs("actionid")%>" >
</div></td>
<td height="25" align="center" bgcolor="#FFFFFF" ><%=formatnumber(rs("shichangjia"),2)%> 元</td>
<td height="25" bgcolor="#FFFFFF" >
<div align=center><%=formatnumber(rs("shichangjia"),2)%>元</div></td>
<td height="25" bgcolor="#FFFFFF" >
<div align=center> <%=rs("shopcount")%> </div></td>
<td height="25" bgcolor="#FFFFFF" >
<div align=center><%=formatnumber(rs("zonger"),2)%>元</div></td>
</tr>
<%
jianshu=jianshu+rs("shopcount")
zongji=zongji+rs("zonger")
rs.movenext
loop
rs.close
set rs=nothing%>
<tr>
<td height=36 colspan=6 bgcolor="#FFFFFF" >
<div align=center> 您的購物車里有商品:<%=shuliang%>件 總數量:<%=jianshu%>件 共計:<%=zongji%>元 您有預存款:<%=request.cookies("snsn")("yucun")%>元
<%if (jianshu>=clng(pifa_s)) or (zongji>=clng(pifa_e)) then%>
<font color=red>您所購商品已經達到享有批發價的標準,結算時,將按批發價計算!</font>
<%end if%>
</div></td>
</tr>
</table>
<br>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="73D1E9">
<tr bgcolor="#C0E9F5" class="a1">
<td height="25" colspan="2" style='PADDING-LEFT: 20px'><b>請正確填寫以下收貨信息</b></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="160" valign="middle" bgcolor="#E6F7FB" style='PADDING-LEFT: 20px'>收貨人的姓名:</td>
<td width="771" height="28" > <b> </b>
<input name="userzhenshiname" type="text" class="wenbenkuang" id="userzhenshiname" value=><input name=userid type=hidden value="" >
性 別:
<select name="shousex" id="shousex" class="wenbenkuang">
<option value=1 selected>男</option>
<option value=2 >女</option>
<option value=0>保密</option>
</select>
</b></td>
</tr>
<tr bgcolor="#FFFFFF">
<td valign="middle" bgcolor="#E6F7FB"style='PADDING-LEFT: 20px'>收貨詳細地址:</td>
<input name="shouhuodizhi" type="text" class="wenbenkuang" id="shouhuodizhi" value="" size="40">
</b></td>
</tr>
<tr bgcolor="#FFFFFF">
<td valign="middle" bgcolor="#E6F7FB" style='PADDING-LEFT: 20px'>收貨地區郵編:</td>
<td width="771" height="28" >
<p> <b> </b>
<input name="youbian" type="text" class="wenbenkuang" id="youbian" size="10" value="" onKeyPress="event.returnValue=IsDigit();">
(我們將按郵政編碼劃分送貨區域,請您正確填寫!)</p></td>
</tr>
<tr bgcolor="#FFFFFF">
<td valign="middle" bgcolor="#E6F7FB" style='PADDING-LEFT: 20px'>收貨聯系電話:</td>
<td width="771" height="28" > <b>
<input name="usertel" class="wenbenkuang" type="text" id="usertel"value=>
</b></td>
</tr>
<tr bgcolor="#FFFFFF">
<td valign="middle" bgcolor="#E6F7FB" style='PADDING-LEFT: 20px'>聯系電子郵件:</td>
<td width="771" height="28" > <b>
<input name="useremail"class="wenbenkuang" type="text" id="useremail" value= >
</b></td>
</tr>
</table>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from [shop_action] where userzhenshiname=userzhenshiname",conn,1,1
%>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="73D1E9" class="table-zuoshang">
<tr bgcolor="#C0E9F5" class="a1">
<td height="25" colspan="2" style='PADDING-LEFT: 20px'><b>請正確選擇送貨方式</b></td>
</tr>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -