<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>财付通在线支付</title>
</head>
<!--#include file="./util/tenpay_util.asp"-->
<!--#include file="tenpay_config.asp"-->
<%'接收网站参数开始==========
dim dingdan,product_name,order_price,mainname
dingdan=request("order_no")'订单号码
product_name=request("hkuse")'收款项目
order_price=request.form("alimoney")'支付金额
mainname=request("mainname")'网站名称
'接收网站参数结束==========

'当前时间 yyyyMMddHHmmss
currTime = getStrNow()

'6位时间
strTime = getTime()
'四位随机数
randNumber = getStrRandNumber(1000,9999)

'10位序列号,可以自行调整。
strReq = strTime + randNumber 
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>财付通付款通道</TITLE>

<META 
content=网上购物/网上支付/安全支付/安全购物/购物，安全/支付,安全/财付通/安全,支付/安全，购物/支付,在线/付款,收款/网上,贸易/网上贸易. 
name=description>
<META 
content=网上购物/网上支付/安全支付/安全购物/购物，安全/支付,安全/财付通/安全,支付/安全，购物/支付,在线/付款,收款/网上,贸易/网上贸易. 
name=keywords>
<META content="MSHTML 6.00.3790.2577" name=GENERATOR>

<style type="text/css">
<!--
a:link {
	color: #003399;
}
.px12 {
	font-size: 12px;
}
a:visited {
	color: #003399;
}
a:hover {
	color: #FF6600;
}
.px14 {
	font-size: 14px;
}
.px12hui {
	font-size: 12px;
	color: #999999;
}
.STYLE2 {font-size: 14px; font-weight: bold; }
-->
</style>
</HEAD>
<BODY topMargin=0>


<div align="center">
  <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="381" align="left" valign="middle"><a href="https://www.tenpay.com/" target="_blank"><img src="image/logo.jpg" width="537" height="145" border="0"></a></td>
      <td width="379" align="right" valign="middle"><font style="color:#000000;font-size:12px;">您好，请 <A 
      href="https://www.tenpay.com/" target="_blank">注册</A> 或 <A 
      href="https://www.tenpay.com/" target="_blank">登录</A> | <A 
      href="https://www.tenpay.com/" target="_blank">财付通首页</A></font></td>
    </tr>
  </table>
  <table width="760" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td></td>
    </tr>
  </table>
  <table width="760" height="406" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td align="center" valign="top"><table width="760" border="0" cellspacing="0" cellpadding="3" align="center">
        <tr>
          <td height="30" width="5" bgcolor="#666666"></td>
          <td width="743" height="30" bgcolor="#FF6600"><font style="color:#FFFFFF;font-size:14px;"><B> 　财付通快速付款通道 方便 快捷 安全</B></font></td>
        </tr>
      </table>
          <table width="760" height="42" border="0" align="center" cellpadding="0" cellspacing="0">
               <tr> <td height="30" ><span class="STYLE2"><img src="image/arrow_02_01.gif"> 填写订单信息</span></td>
            </tr>
        </table>
        <table width="760" border="0" cellspacing="0" cellpadding="0" align="center" height="1">
            <tr>
              <td width="740" bgcolor="#CCCCCC"></td>
              <td width="20"></td>
            </tr>
        </table>
        <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
                        <script language="javascript">
	function payFrm()
	{
		if (directFrm.order_no.value=="")
		{
			alert("提醒：请填写订单编号；如果无特定的订单编号，请采用默认编号！（刷新一下页面就可以了）");
			directFrm.order_no.focus();
			return false;
		}
		if (directFrm.product_name.value=="")
		{
			alert("提醒：请填写商品名称(付款项目)！");
			directFrm.product_name.focus();
			return false;
		}
		if (directFrm.order_price.value=="")
		{
			alert("提醒：请填写订单的交易金额！");
			directFrm.order_price.focus();
			return false;
		}else if(directFrm.order_price.value.split(".")[1].length>2){
     	    alert("交易金额的小数点只能有两位！");
		   return false;
	    }
		
		if (directFrm.remarkexplain.value=="")
		{
			alert("提醒：请填写您的简要说明！");
			directFrm.remarkexplain.focus();
			return false;
		}
		if (directFrm.remarkexplain.value.length>21)
		{
			alert("提醒：超出规定的字数,请重新输入");
  			event.returnValue=false;   
  			return   false;   
		}
		return true;
	}
  </script>
  
<form action="tenpay.asp" method="get" name="directFrm" onSubmit="return payFrm();">
            <tr>
              <td align="left"><table width="760" height="30" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#FFCC00">
                  <tr>
                    <td align="center" valign="top" bgcolor="#FFFFEE"><table width="760" height="351" border="0" cellpadding="6" cellspacing="0" class="px14" style="display:">
                      <tr>
                        <td height="26" align="right" valign="top">&nbsp;</td>
                        <td valign="top"> 　 </td>
                        <td width="262" rowspan="8" valign="top"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="5">
                            <tr>
                              <td height="10" align="center" valign="middle"><img src="image/cft.gif" width="180" height="81" /></td>
                            </tr>
                            <tr>
                              <td height="24"><font style="color:#000000;font-size:12px;"><b>说明1：</b></font></td>
                            </tr>
                            <tr>
                              <td height="24"><font style="color:#000000;font-size:12px;">本通道为采用财付通付款。请在支付前与本网站达成一致。</font></td>
                            </tr>
                            <tr>
                              <td height="24"><font style="color:#000000;font-size:12px;"><b>说明2：</b></font></td>
                            </tr>
                            <tr>
                              <td height="24"><font style="color:#000000;font-size:12px;">请务必确认好订单和货款后，再付款。</font></td>
                            </tr>
                        </table></td>
                      </tr>
                      <tr>
                        <td width="96" height="26" align="right" valign="top">收&nbsp;款&nbsp;&nbsp;方： </td>
                        <td width="353" valign="top" align="left"><%=spname %></td>
                      </tr>
                      <tr>
                        <td align="right" valign="top">订单编号： </td>
                        <td valign="top" align="left"><%
'获取时间字符串, 格式YYYYMMDDhhmiss,客户网站订单号,现取系统时间
		Public Function tenpay_util_getStrNow()
		strNow = Now()
		strNow = Year(strNow) & Right(("00" & Month(strNow)),2) & Right(("00" & Day(strNow)),2) & Right(("00" & Hour(strNow)),2) & Right(("00" &  Minute(strNow)),2) & Right(("00" & Second(strNow)),2)
		tenpay_util_getStrNow = strNow
	End Function
spname = request("spname")
total_fee = request("total_fee")
dingdan = request("order_no")
if dingdan="" Then
  dingdan=tenpay_util_getStrNow()
end if
%>
                            <%=dingdan%>
                            <input type="hidden" name="order_no" maxlength="50" size="18"  value="<%=dingdan%>" /></td>
                      </tr>
                      <tr>
                        <td align="right" valign="top">付款项目： </td>
                        <td valign="top" align="left"><span style="color:#000000;font-size:12px;"><%=product_name%>
                         <input name="product_name" value="<%=product_name%>" type="hidden" size="18" maxlength="50"  />
                        </span></td>
                      </tr>
                      <tr>
                        <td align="right" valign="top">付款金额： </td>
                        <td valign="top" align="left"><%=order_price%> 元<input type="hidden" name="order_price" maxlength="50" size="18"  value="<%=order_price%>" /><!--input type="text" name="order_price" maxlength="50" size="18" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"  />
                          元（格式：500.01）--></td>
                      </tr>
                      <tr>
                        <td align="right" valign="top">支付方式：</td>
                        <td valign="top" align="left"><span style="color:#000000;font-size:12px;">
						中介担保交易
						<input type="hidden" name="trade_mode" maxlength="50" size="18"  value="2" />
                          <!--input type="radio" name="trade_mode" value="1"  checked="true" />
                          即时到帐&nbsp;
                          <input type="radio" name="trade_mode" value="2" />
                          中介担保&nbsp;
                          <input type="radio" name="trade_mode" value="3" />
                          后台选择 --></span></td>
                      </tr>
                      <tr>
                        <td height="99" align="right" valign="top">简要说明：</td>
                        <td valign="top"><textarea name="remarkexplain" cols="40" rows="5" id="remark2" ><%=product_name%></textarea>
                            <br />
                          请填写您订单的简要说明（20字符以内）</td>
                      </tr>
                      <tr>
                        <td align="right" valign="top">&nbsp;</td>
                        <td valign="top"><b>
                          <input name="submit" type="image" src="image/next.gif" alt="使用财付通安全支付" width="103" height="27" />
                        </b></td>
                        <td width="1" valign="top">&nbsp;</td>
                      </tr>
                    </table></td>
                </tr></form>
      </table></td>
            </tr> 
        </table>
        <table width="760" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>&nbsp;</td>
            </tr>
        </table></td>
    </tr>
  </table>
<TABLE width=760 border=0 cellPadding=0 cellSpacing=4 class="px12">
  <TBODY>
  <TR>
    <TD width="71" rowSpan=2 align="center" noWrap bgcolor="#CCCCCC" class=box-note><FONT 
      class=note-help>支持<FONT class=note-help>银行 </FONT></FONT></TD>
    <TD width="14" rowSpan=2></TD>
    <TD width="120"><IMG alt=中国工商银行 
      src="image/icon_zggsyh_s.gif" border=0> </TD>
    <TD width="142"><IMG alt=中国建设银行 src="image/icon_ccb_s.gif" border=0> </TD>
    <TD width="108"><IMG alt=上海浦东发展银行 src="image/icon_spdb_s.gif" 
      border=0> </TD>
    <TD width="142"><IMG alt=招商银行 src="image/icon_zsyh_s.gif" border=0>    </TD>
    <TD width="141"><IMG alt=中国民生银行 src="image/icon_cmbc_s.gif" 
      border=0></TD>
  </TR>
  <TR>
    <TD>
      <DIV align=left><IMG alt=中国农业银行 
      src="image/icon_abc_s.gif" border=0> </DIV></TD>
    <TD><IMG alt=广东发展银行 src="image/icon_gdb_s.gif" border=0> </TD>
    <TD><IMG alt=兴业银行 src="image/index_38.gif" 
      border=0> </TD>
    <TD>
      <DIV align=left><IMG alt=深圳发展银行 
      src="image/icon_sdb_s.gif" border=0> </DIV></TD>
  <TD><IMG alt=VISA src="image/icon_visa_s.gif" border=0> </TD>
  </TR></TBODY></TABLE></div><HR width=760 SIZE=1>

<TABLE width=760 border=0 align="center" cellSpacing=1 class="px12hui">
  <TBODY>
  <TR>
    <TD>如果您点击“确认”按钮，即表示您已经接受“财付通服务协议”，同意向卖家购买 此物品。 
      <BR>您有责任查阅完整的物品登录资料，包括卖家的说明和接受的付款方式。卖家必须承担物品信息正确登录的 责任！ 
</TD>
  </TR></TBODY></TABLE>
<TABLE width=760 border=0 align=center cellPadding=0 cellSpacing=0 class="px12">
  <TBODY>
  <TR align="center">
    <TD class="txt12 lh15"><div align="center"><A href="http://www.tencent.com/" 
      target=_blank>腾讯旗下公司</A> | 财付通 版权所有 2008 </div></TD></TR>
  <TR align="center">
    <TD class="txt12 lh15"><div align="center"><IMG alt="财付通通过“国际权威安全认证” " 
      src="image/logo_vbvv.gif" border=0><BR>
      财付通通过“国际权威安全 
      认证”</div></TD></TR></TBODY></TABLE></body>
</html>
<%Call CloseDB(conn)%>