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

📄 payment.asp

📁 一套很早的多用户电子商务程序
💻 ASP
字号:
<%@ language="vbscript"%>
<%response.Expires = 0%>

<!--#include file="conn.asp"-->
<!--#include file="check_user.asp"-->
<%
sp_name=request.cookies("sp_name")
set rs=server.createobject("adodb.recordset")
sqltext="select * from payment where sp_name='"&sp_name&"' "
rs.open sqltext,conn,3,3
if rs.eof then
ck_pay1=""
ck_pay2=""
ck_pay3=""
ck_pay4=""
else
ck_pay1=rs("pay1")
ck_pay2=rs("pay2")
ck_pay3=rs("pay3")
ck_pay4=rs("pay4")
end if

if request.Form("Submit")="确认"then
	if rs.eof then
	rs.addnew
	rs("sp_name")=sp_name
	end if
	'开始更新商家支付信息 
set M_rs=server.createobject("adodb.recordset")
mysql="select pay4 from shop where shop_name1='" &sp_name& "'"
M_rs.open mysql,conn,1,1
M_pay4=M_rs("pay4")
M_rs.close
if request.form("pay4")<>"" and M_pay4="no" then
Response.Write ("<script>alert('对不起!你是普通商户!没权使用在线支付功能!');javascript:history.back(1)</script>")
response.end()
end if
	
	rs("pay1")=request.form("pay1")
	rs("pay1_a")=request.form("pay1_a")
		
	rs("pay2")=request.form("pay2")
	rs("pay2_a")=request.form("pay2_a")	
	
	rs("pay3")=request.form("pay3")
	rs("pay3_a")=request.form("pay3_a")
	
	rs("pay4")=request.form("pay4")
	rs("pay4_a")=request.form("pay4_a")
	rs("pay4_b")=request.form("pay4_b")
	rs.update
	response.write"<script>alert('成功更新了支付方式!');window.location.href='payment.asp'</script>"
	response.end()
end if	
%>
<html>
<head>
<title>商品添加</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
BODY {	FONT-SIZE: 9pt }
a:link { color: #000000; text-decoration: none}
a:visited { color:#000000; text-decoration: none}
a:hover { color: #CC0000; text-decoration: underline}
td {font-size:9pt;line-height:12pt;}
-->
</style>
</head>

<body background="../pic/user/bg.jpg">
<form name="FORM1" method="post" action="payment.asp">
  <table width="522" border="1" align="center" cellpadding="3" cellspacing="0" bordercolorlight="#0000FF" bordercolordark="#FFFFFF">
    <tr> 
      <td width="512">请选择适合你自己网店的<font color="#0000FF">支付方式</font>,此项将显示在购物订单上供客户选择。</td>
    </tr>
    <tr> 
      <td height="120"> 
        <input name="pay1" type="checkbox" value="银行付款" <%if ck_pay1<>"" then response.write "checked" %>>
        银行付款:(请在说明栏中输入你的开户行及收款人的名称,可用多个银行卡号)<br>
        <table width="83%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="12%" valign="top"><div align="center">说 明:</div></td>
            <td width="88%"><textarea name="pay1_a" cols="50" rows="5" ><%=rs("pay1_a")%></textarea></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td height="88">
<input name="pay2" type="checkbox"   value="邮政汇款" <%if ck_pay2<>"" then response.write"checked" %>>
        邮政汇款:(请在说明栏中输入收款的详细地址,邮编,及收款人姓名)<br>
        <table width="83%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="12%" valign="top"><div align="center">说 明:</div></td>
            <td width="88%"><textarea name="pay2_a" cols="50" rows="3"  ><%=rs("pay2_a")%></textarea></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td><input name="pay3" type="checkbox"  value="上门付款" <%if ck_pay3<>"" then response.write"checked" %>>
        上门付款:(请在说明栏中输入你的详细联系地址及姓名、电话)<br>
        <table width="83%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="12%" valign="top"><div align="center">说 明:</div></td>
            <td width="88%"><textarea name="pay3_a" cols="50" rows="3" ><%=rs("pay3_a")%></textarea></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td height="119"> 
        <input name="pay4" type="checkbox" value="在线支付" <%if ck_pay4<>"" then response.write"checked" %>>
        在线支付:(支持20多家银行,60多个卡种 <a href="http://www.ipay.com.cn" target="_blank"><font color="#0000FF">免费申请</font></a>)<br>
        <table width="83%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="16%" height="35"> 
              <div align="center">商户编号:<br>
                <a href="#" onclick="window.document.FORM1.send4_a.value='如果您购买了邮箱卡、游戏卡、电话卡、上网卡等数字类产品,您可以选择实时发送方式,在付款成功后会email或电话通知您的帐号和密码。';" > 
                </a></div></td>
            <td width="84%"><input name="pay4_a" type="text" value="<%=rs("pay4_a")%>" size="12" maxlength="6">
              (请在<a href="http://www.ipay.com.cn" target="_blank">ipay</a>商户管理中心查询你的商户号)</td>
          </tr>
          <tr> 
            <td height="28" valign="top"> 
              <div align="center">说 明:<br>
                <a href="#" onclick="window.document.FORM1.pay4_b.value='支持国内绝大多数银行的信用卡,储蓄卡等(包括中国银行,建设银行,工商银行,农业银行,交通银行,招商银行等),实时划帐,方便快捷,让您足不出户,享受轻松购物的乐趣。';" >
                <font color="#0000FF">默认</font></a></div></td>
            <td><textarea name="pay4_b" cols="48" rows="3" ><%=rs("pay4_b")%></textarea></td>
          </tr>
          <tr> 
            <td height="40"> <div align="center">注  意:</div></td>
            <td> 请在你的在线支付平台的后台管理中设置 支付结果返回地址为:<br> <font color="#0000FF"><strong> 
              http://<%=request.ServerVariables("server_name")%>/paymentok.asp</strong></font> </td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td><div align="center">
          <input type="submit" name="Submit" value="确认">
           
          <input type="button" name="Submit2" value="预览" onclick="javascript:window.open('../<%=request.cookies("sp_name")%>/default.asp?sb=pay')">
        </div></td>
    </tr>
  </table>
</form>
<%		
rs.close:set rs=nothing
conn.close
%>
</body>
</html>

⌨️ 快捷键说明

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