<html>
<head>
<title>{title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="JavaScript">

<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<style>
body,td{
	font-size:12px;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
  <form name="form1" method="post" action="{dataurl}.asp?action={action}" onSubmit="return checkform()">
          <script>
	function ch_alibtn(btn)
	 {
		if(btn.value>0)
		 {
			aliid = btn.value-1;
			btnimg.innerHTML="<img src='../../images/payimg/alipay_"+aliid+".gif'>";
		 }
		 else
		 {
			btnimg.innerHTML="";
		 }
	 }
		function ch_99billbtn(btn)
	 {
		if(btn.value>0)
		 {
			aliid = btn.value-1;
			btnimg.innerHTML="<img src='../../images/payimg/99bill_"+aliid+".gif'>";
		 }
		 else
		 {
			btnimg.innerHTML="";
		 }
	 }
		function ch_paypalcnbtn(btn)
	 {
		if(btn.value>0)
		 {
			aliid = btn.value-1;
			btnimg.innerHTML="<img src='../../images/payimg/paypalcn_"+aliid+".gif'>";
		 }
		 else
		 {
			btnimg.innerHTML="";
		 }
	 }
	</script>
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="allborder" bgcolor="#F7F7F7">
                      <tr> 
                        <td align="right" nowrap width="18%">&nbsp;</td>
                        <td colspan="3">&nbsp;</td>
                      </tr>
                      <tr> 
                        <td align="right" nowrap width="18%">方式名称：</td>
                        <td width="38%"> <input name="payment" type="text" class="inputstyle" size="50" value="{payment}" maxlength="50">                        </td>
                        <td rowspan="6" align="center"><img src='../../images/payimg/WANGYIN.gif' name="show_mod"></td>
                        <td rowspan="6" align="left" width="25%"><div id="aaa" style="display:none">网银网上支付是独立的安全支付平台，为商户提供便捷、安全、稳定的电子商务支付解决方案。点击本链接申请即可获得网银在线网关特别优惠价:年服务费全免，手续费1％！<br><a href='http://www.payex.cn/chinabank/payreg.html' target='_blank'><img src='../../images/payimg/apply-imm.gif' border='0' align=right></a></div></td>
                      </tr>
                      <tr>
                        <td align="right" nowrap>&nbsp;</td>
                        <td><span class="p9gray">您可以自定义支付方式的名称。此名称将显示在网店前台客户付款选择支付方式处，最好根据支付具体方式填写相应名称；</span></td>
                      </tr>
                      <tr style="display:none"> 
                        <td width="18%" align="right" nowrap> 接口类型：</td>
                        <td>
			<select name="ptype" class="inputstyle" size="1" onChange="typechg(options[this.selectedIndex].value)">
			<!-- Begin Paylist -->
			 <option value="{pi_code}" {ss}>{pi_name}</option>
			<!-- End Paylist -->
			</select></td>
                      </tr>
                      <tr id=tr1 style="DISPLAY:"> 
                        <td width="18%" align="right" nowrap>客户号：</td>
                        <td> <input name="merid" type="text" class="inputstyle" size="50" value="{merid}" maxlength="50">                        </td>
                      </tr>
                      <tr id=tr2 style="DISPLAY:"> 
                        <td align="right" nowrap>&nbsp;</td>
                        <td><span class="p9gray">此处填写您的支付帐号、客户号或客户id等，此帐号在支付服务提供商处取得；</span><br>
			 	<font color=red>特殊说明：如果您选择接口类型为支付宝，请按如下格式填写:<br>身份ID|email帐号   中间以|分开 否则将无法正常支付</font>			</td>
                      </tr>
                      <tr id=tr3 style="DISPLAY:"> 
                        <td width="18%" align="right" nowrap>私钥：</td>
                        <td> <input name="ikey" type="text" class="inputstyle" size="50" value="{ikey}" maxlength="100">                        </td>
                      </tr>
                      <tr id=tr4 style="DISPLAY:"> 
                        <td align="right" nowrap>&nbsp;</td>
                        <td><span class="p9gray">私钥是您在支付系统后台自行设置的，有的叫“私钥”、有的叫“校验码”，有的就是您的商户号密码。如果不知道如何填写，请咨询您的支付服务提供商；</span></td>
                      </tr>
                      <tr> 
                        <td width="18%" align="right" valign="top" nowrap>接口描述：</td>
                        <td><font color="red">{description}</font></td>
                      </tr>
                      <tr> 
                        <td width="18%" align="right" nowrap>支持交易货币：</td>
                        <td> <a id="paycurshow"><input type="checkbox" name="curpay[]" id=cb0 value="CNY" checked>人民币</a> </td>
                      </tr>
                      <tr> 
                        <td width="18%" align="right" nowrap>详细介绍：</td>
                        <td colspan="3"> <textarea name="paynotice" cols=40 rows=5>{paynotice}</textarea>                        </td>
                      </tr>
                      <tr style="display:none"> 
                        <td width="18%" align="right" nowrap>是否立即启用：</td>
                        <td width="82%" colspan="3"> 
			  <input type="radio" name="state" value="1"  {state1}>是 
                          <input type="radio" name="state" value="0" {state0}>否 <font color=red>如果选择否,则需要启用后才能在支付方式中显示</font>                        </td>
                      </tr>
                      <tr>
                        <td align="right" nowrap>&nbsp;</td>
                        <td height="50" colspan="3"><input type=hidden name="payid" value="{payid}">
                          <input type=submit name="ss" value="{submit}">
                          &nbsp;&nbsp;
                        <input name="button" type="button" onClick="history.go(-1)" value=" 取 消 "></td>
                      </tr>
                    </table>  </form>
<script language="javascript">
	function checkform()
	{
		var arr_count = new Array() ;
		arr_count["WANGYIN"] = 1;
		arr_count["WANGYIN_OUT"] = 1;
		arr_count["ALIPAY"] = 1;
		arr_count["IPS"] = 2;
		arr_count["IPAY"] = 1;
		arr_count["SHOUXIN"] = 2;
		arr_count["6688"] = 1;
		arr_count["8848"] = 1;
		arr_count["EPAY"] = 1;
		arr_count["NPS"] = 1;
		arr_count["NPS_OUT"] = 3;
		arr_count["WESTPAY"] = 1;
		arr_count["CHINAPAY"] = 1;
		arr_count["CNCARD"] = 1;
		arr_count["PAYPAL"] = 7;
		arr_count["PAYPAL_NOIPN"] = 7;
		arr_count["HOMEWAY"] = 1;
		arr_count["NOCHEK"] = 1;
		arr_count["99BILL"] = 1;
		arr_count["XPAY"] = 1;
		arr_count["PAYDOLLAR"] = 10;
		arr_count["ECS"] = 2;
		arr_count["TWV"] = 1;
		arr_count["GWPAY"] = 1;
		arr_count["ENETS"] = 2;
		arr_count["TENPAY"] = 1;
		arr_count["ADVANCE"] = 12;
		arr_count["CHINAPNR"] = 1;
		arr_count["YEEPAY"] = 1;
		arr_count["OFFLINE"] = 1;

		if ((form1.payment.value=='') || form1.payment.value.length>50){
			form1.payment.focus();
			alert("请输入支付方式名称");
			return false;
		}	
		if (form1.merid.value=='') {
			form1.merid.focus();
			alert("客户号不能为空");
			return false;
		}
		if (form1.ikey.value=='') {
			form1.ikey.focus();
			alert("私钥不能为空");
			return false;
		}
		if (form1.ptype.value==0){
			alert("请选择支付接口类型");
			form1.ptype.focus();
			return false;		
		}
		
		var mark = 0 ;
		var num = arr_count[form1.ptype.value];
		for (i = 0; i < num; i++)
		{
			tempcb = "cb" + i;
			if (document.getElementById(tempcb).checked)
			{
				mark = 1;
				break;
			}
		}
		if (mark == 0)
		{
			alert("请选择支持的交易货币！");
			return false;
		}

		save();
		form1.submit();
	}

	function typechg(a){
		var arr_zf = new Array() ;
		var arr_cur = new Array() ;
		arr_zf["WANGYIN"] = "网银网上支付是独立的安全支付平台，为商户提供便捷、安全、稳定的电子商务支付解决方案。点击本链接申请即可获得网银在线网关特别优惠价:年服务费全免，手续费1％！<br><a href='http://www.payex.cn/chinabank/payreg.html' target='_blank'><img src='../../images/payimg/apply-imm.gif' border='0' align=right></a>";
		arr_zf["ALIPAY"] = "支付宝网站(www.alipay.com)是国内先进的网上支付平台，由全球最佳B2B公司阿里巴巴公司创办，致力于为网络交易用户提供优质的安全支付服务。<br><a href='http://www.alipay.com/' target='_blank'><img src='../../images/payimg/apply-imm.gif' border='0' align=right></a><br><br><br>";
		arr_zf["IPS"] = "";
		arr_zf["IPAY"] = "";
		arr_zf["SHOUXIN"] = "";
		arr_zf["6688"] = "";
		arr_zf["8848"] = "";
		arr_zf["EPAY"] = "";
		arr_zf["NPS"] = "";
		arr_zf["NPS_OUT"] = "";
		arr_zf["WESTPAY"] = "";
		arr_zf["CHINAPAY"] = "";
		arr_zf["CNCARD"] = "";
		arr_zf["PAYPAL"] = "Paypal是一个以帐户为主的系统，容许任何人以E-mail地址，透过信用卡及银行帐户，安全地支付及存入网上各类帐项，是现在网络上流行的网络信用卡， 现在对包括中国在内的近40个国家开放。<br><a href='http://www.paypal.com.cn' target='_blank'><img src='../../images/payimg/apply-imm.gif' border='0' align=right></a>";
		arr_zf["PAYPAL_NOIPN"] = "Paypal是一个以帐户为主的系统，容许任何人以E-mail地址，透过信用卡及银行帐户，安全地支付及存入网上各类帐项，是现在网络上流行的网络信用卡， 现在对包括中国在内的近40个国家开放。<br><a href='http://www.paypal.com.cn' target='_blank'><img src='../../images/payimg/apply-imm.gif' border='0' align=right></a>";
		arr_zf["HOMEWAY"] = "和讯在线支付";
		arr_zf["NOCHEK"] = "NOCHEX在线支付";
		arr_zf["99BILL"] = "快钱(<a href='http://www.99bill.com/' target='_blank'>www.99bill.com</a>)是国内第一家基于EMAIL和手机号码的网上支付平台。支持国内外7亿张银联卡、7亿张MASTER卡、13亿张VISA卡！<br><a href='http://www.99bill.com/index/hd/99bill_hd2.html' target='_blank'><font color=#FF6600>&gt;&gt;查看银行卡范围</font></a> <br>400万成熟的注册用户！先进安全的技术保障！至真至诚的服务质量！是商家搭建网上支付平台的首选！ <br><a href='https://www.99bill.com/webapp/jsp/AccountManage/accountRegAction.do?cmd=initializtion' target='_blank'><font color=#FF6600>即刻注册快钱</font></a> <br>现在注册快钱更可参加快钱积分兑奖活动，抢夺有礼(<a href='http://www.99bill.com/index/points/html/index.htm' target='_blank'><font color=#FF6600>查看积分兑奖活动详情</font></a>)";
		arr_zf["XPAY"] = "";
		arr_zf["PAYDOLLAR"] = "";
		arr_zf["ECS"] = "";
		arr_zf["TWV"] = "";
		arr_zf["GWPAY"] = "";
		arr_zf["ENETS"] = "Website: https://www.enetspayments.com.sg/";
		arr_zf["TENPAY"] = "腾讯财付通支付。Website: https://www.tencent.com/";
		arr_zf["CHINAPNR"] = "汇付天下支付。Website: http://www.chinapnr.com/";
		arr_zf["YEEPAY"] = "易宝支付。Website: http://www.yeepay.com/";
		arr_zf["ADVANCE"] = "预存款支付是客户通过在网站上的预存款进行支付的一种支付方式。";
		arr_zf["OFFLINE"] = "线下支付是指所有非在线的支付方式，包括邮局汇款、银行汇款、电汇、支票或者上门付款、上门收款的方式。";
		arr_cur["WANGYIN"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {wangyin_cny}>人民币";
		arr_cur["WANGYIN_OUT"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {wangyin_out_cny}>人民币";
		arr_cur["ALIPAY"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {alipay_cny}>人民币";
		arr_cur["IPS"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {ips_cny}>人民币 <input type=checkbox name=curpay[] id=cb1 value=USD {ips_usd}>美元";
		arr_cur["IPAY"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {ipay_cny}>人民币";
		arr_cur["SHOUXIN"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {shouxin_cny}>人民币 <input type=checkbox name=curpay[] id=cb1 value=USD {shou_usd}>美元";
		arr_cur["6688"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {6688_cny}>人民币";
		arr_cur["8848"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {8848_cny}>人民币";
		arr_cur["EPAY"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {epay_cny}>人民币";
		arr_cur["NPS"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {nps_cny}>人民币";
		arr_cur["NPS_OUT"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {nps_out_cny}>人民币 <input type=checkbox name=curpay[] id=cb1 value=USD {nps_out_usd}>美元 <input type=checkbox name=curpay[] id=cb2 value=EUR {nps_out_eur}>欧元";
		arr_cur["WESTPAY"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {westpay_cny}>人民币";
		arr_cur["CHINAPAY"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {chnapay_cny}>人民币";
		arr_cur["CNCARD"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {cncard_cny}>人民币";
		arr_cur["PAYPAL"] = " <input type=checkbox name=curpay[] id=cb0 value=USD {paypal_usd}>美元 <input type=checkbox name=curpay[] id=cb1 value=CAD {paypal_cad}>加拿大元 <input type=checkbox name=curpay[] id=cb2 value=EUR {paypal_eur}>欧元 <input type=checkbox name=curpay[] id=cb3 value=GBP {paypal_gbp}>英磅 <input type=checkbox name=curpay[] id=cb4 value=JPY {paypal_jpy}>日元 <input type=checkbox name=curpay[] id=cb5 value=AUD {paypal_aud}>澳元 <input type=checkbox name=curpay[] id=cb6 value=CNY {paypal_cny}>人民币";
		arr_cur["PAYPAL_NOIPN"] = " <input type=checkbox name=curpay[] id=cb0 value=USD {paypal_noipn_usd}>美元 <input type=checkbox name=curpay[] id=cb1 value=CAD {paypal_noipn_cad}>加拿大元 <input type=checkbox name=curpay[] id=cb2 value=EUR {paypal_noipn_eur}>欧元 <input type=checkbox name=curpay[] id=cb3 value=GBP {paypal_noipn_gbp}>英磅 <input type=checkbox name=curpay[] id=cb4 value=JPY {paypal_noipn_jpy}>日元 <input type=checkbox name=curpay[] id=cb5 value=AUD {paypal_noipn_aud}>澳元 <input type=checkbox name=curpay[] id=cb6 value=CNY {paypal_noipn_cny}>人民币";
		arr_cur["HOMEWAY"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {homeway_cny}>人民币";
		arr_cur["NOCHEK"] = " <input type=checkbox name=curpay[] id=cb0 value=GBP {nochex_gbp}>英磅";
		arr_cur["99BILL"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {99bill_cny}>人民币";
		arr_cur["XPAY"]	= " <input type=checkbox name=curpay[] id=cb0 value=CNY {xpay_cny}>人民币";
		arr_cur["PAYDOLLAR"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {paydollar_cny}>人民币 <input type=checkbox name=curpay[] id=cb1 value=HKD {paydollar_hkd}>港币 <input type=checkbox name=curpay[] id=cb2 value=USD {paydollar_usd}>美元 <input type=checkbox name=curpay[] id=cb3 value=SGD {paydollar_sgd}>新加坡元 <input type=checkbox name=curpay[] id=cb4 value=JPY {paydollar_jpy}>日元 <input type=checkbox name=curpay[] id=cb5 value=TWD {paydollar_twd}>新台币 <input type=checkbox name=curpay[] id=cb6 value=AUD {paydollar_aud}>澳元 <input type=checkbox name=curpay[] id=cb7 value=EUR {paydollar_eur}>欧元 <input type=checkbox name=curpay[] id=cb8 value=GBP {paydollar_gbp}>英磅 <input type=checkbox name=curpay[] id=cb9 value=CAD {paydollar_cad}>加拿大元";
		arr_cur["ECS"] = " <input type=checkbox name=curpay[] id=cb0 value=USD {ecs_usd}>美元 <input type=checkbox name=curpay[] id=cb1 value=EUR {ecs_eur}>欧元";
		arr_cur["TWV"] = " <input type=checkbox name=curpay[] id=cb0 value=TWD {twv_twd}>新台币";
		arr_cur["GWPAY"] = " <input type=checkbox name=curpay[] id=cb0 value=TWD {gwpay_twd}>新台币";
		arr_cur["ENETS"] = " <input type=checkbox name=curpay[] id=cb0 value=USD {enets_usd}>美元 <input type=checkbox name=curpay[] id=cb1 value=SGD {enets_sgd}>新加坡元";
		arr_cur["TENPAY"] = " <input type=checkbox name=curpay[] id=cb1 value=CNY {tenpay_cny}>人民币";
		arr_cur["CHINAPNR"] = " <input type=checkbox name=curpay[] id=cb1 value=CNY {chinapnr_cny}>人民币";
		arr_cur["YEEPAY"] = " <input type=checkbox name=curpay[] id=cb1 value=CNY {yeepay_cny}>人民币";
		arr_cur["ADVANCE"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {advance_cny}>人民币 <input type=checkbox name=curpay[] id=cb1 value=USD {advance_usd}>美元 <input type=checkbox name=curpay[] id=cb2 value=EUR {advance_eur}>欧元 <input type=checkbox name=curpay[] id=cb3 value=GBP {advance_gbp}>英磅 <input type=checkbox name=curpay[] id=cb4 value=CAD {advance_cad}>加拿大元 <input type=checkbox name=curpay[] id=cb5 value=AUD {advance_aud}>澳元 <input type=checkbox name=curpay[] id=cb6 value=RUB {advance_rub}>卢布 <input type=checkbox name=curpay[] id=cb7 value=HKD {advance_hkd}>港币 <input type=checkbox name=curpay[] id=cb8 value=TWD {advance_twd}>新台币 <input type=checkbox name=curpay[] id=cb9 value=KRW {advance_krw}>韩元 <input type=checkbox name=curpay[] id=cb10 value=SGD {advance_sgd}>新加坡元 <input type=checkbox name=curpay[] id=cb11 value=JPY {advance_jpy}>日元";
		arr_cur["OFFLINE"] = " <input type=checkbox name=curpay[] id=cb0 value=CNY {offline_cny}>人民币 <input type=checkbox name=curpay[] id=cb1 value=USD {offline_usd}>美元 <input type=checkbox name=curpay[] id=cb2 value=EUR {offline_eur}>欧元 <input type=checkbox name=curpay[] id=cb3 value=GBP {offline_cny}>英磅 <input type=checkbox name=curpay[] id=cb4 value=CAD {offline_cad}>加拿大元 <input type=checkbox name=curpay[] id=cb5 value=AUD {offline_aud}>澳元 <input type=checkbox name=curpay[] id=cb6 value=RUB {offline_rub}>卢布 <input type=checkbox name=curpay[] id=cb7 value=HKD {offline_hkd}>港币 <input type=checkbox name=curpay[] id=cb8 value=TWD {offline_twd}>新台币 <input type=checkbox name=curpay[] id=cb9 value=KRW {offline_krw}>韩元 <input type=checkbox name=curpay[] id=cb10 value=SGD {offline_sgd}>新加坡元 <input type=checkbox name=curpay[] id=cb11 value=JPY {offline_jpy}>日元";

		if(a == "" || a == "0"){
			document.getElementById("paycurshow").innerHTML= "";
		}else{
			document.getElementById("paycurshow").innerHTML= arr_cur[a];
		}
		
		if(a == "" || a == "0" || a == "OFFLINE" || a == "ADVANCE"){
			tr1.style.display="none";
			tr2.style.display="none";
			tr3.style.display="none";
			tr4.style.display="none";
			if(a == "OFFLINE" || a == "ADVANCE"){
				aaa.innerHTML= arr_zf[a];
			}else{
				aaa.innerHTML= "";
			}
			a = "spacer";
		}else{
			tr1.style.display="";
			tr2.style.display="";
			tr3.style.display="";
			tr4.style.display="";
			//aaa.innerHTML= arr_zf[a];
		}
		
		document.form1.show_mod.src='../../images/payimg/'+a+'.gif' ;
	}
	typechg("{default}");
</script>
