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

📄 snsn.asp

📁 购物系统(本版为正式商业版
💻 ASP
📖 第 1 页 / 共 3 页
字号:
<!--
┌─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>&nbsp;商品名称</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>&nbsp;&nbsp; </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>
                  <td width="771" height="28"  > <b> &nbsp;&nbsp;
                        <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>&nbsp;&nbsp; </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> &nbsp;&nbsp;
                        <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> &nbsp;&nbsp;
                        <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 + -