<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>支付基本设置</title>
<LINK href="<?=base_url()?>csdj/admin/images/admin.css" type="text/css" rel="stylesheet">
<SCRIPT type="text/javascript" src="<?=base_url()?>csdj/admin/js/admin.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/setcolor.js"></script>
</head>
<BODY style="margin:2px">
	<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#A2DAE7" width="100%" style="border-collapse:collapse;">
	<form method="post" Name="myForm" action="<?=site_url('admin/setting/payedit')?>"> 
  	<tr>
    		<td height="20" colspan="2" class="title" align="center">支付宝在线支付选项设置&nbsp;&nbsp;（<font color=red>此接口为及时倒帐接口</font>）</td>
  	</tr>
  	<tr>
    		<td width="30%" align="right">支付宝支付:</td>
    		<td>
		    <input id="zt1" onClick="document.getElementById('alipay').style.display='';" type="radio" name="CS_Alipay" value="1"<?php if(CS_Alipay==1) echo ' checked';?>/><label for="zt1">开启</label>&nbsp;&nbsp;
		    <input id="zt2" onClick="document.getElementById('alipay').style.display='none';" type="radio" name="CS_Alipay" value="0"<?php if(CS_Alipay==0) echo ' checked';?>/><label for="zt2">关闭</label>&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;注册地址:&nbsp;&nbsp;<a href="https://b.alipay.com/order/productIndex.htm" target="pay">https://b.alipay.com/order/productIndex.htm</a>
		</td>
  	</tr>
        <tbody id="alipay" <?php if(CS_Alipay==0){echo 'style="display:none"';}?>>
  	<tr>
    		<td align="right">支付接口 :</td>
    		<td ><select name="CS_Alipay_JK" style="Width:150px"><option value="1"<?php if(CS_Alipay_JK==1) echo ' selected';?>>双功能接口(推荐)</option><option value="2"<?php if(CS_Alipay_JK==2) echo ' selected';?>>即时到账接口</option></select></td>
  	</tr>
  	<tr>
    		<td align="right">合作者ID :</td>
    		<td ><input name="CS_Alipay_ID" type="text" value="<?=CS_Alipay_ID?>" size=40>&nbsp;&nbsp;以2008开头的纯数字</td>
  	</tr>
  	<tr>
    		<td align="right">安全验效码KEY:</td>
    		<td ><input name="CS_Alipay_Key" type="text" value="<?=CS_Alipay_Key?>" size=40>&nbsp;&nbsp;安全验效码KEY</td>
  	</tr>
  	<tr>
    		<td align="right">支付宝帐号:</td>
    		<td><input name="CS_Alipay_Name" type="text" value="<?=CS_Alipay_Name?>" size=40></td>
  	</tr>
        </tbody>

<?php
$CS_Wypay=( ! defined('CS_Wypay'))?'0':CS_Wypay;
$CS_Wypay_ID=( ! defined('CS_Wypay_ID'))?'':CS_Wypay_ID;
$CS_Wypay_Key=( ! defined('CS_Wypay_Key'))?'':CS_Wypay_Key;
?>
  	<tr>
    		<td height="20" colspan="2" class="title" align="center">网银在线支付选项设置</td>
  	</tr>
  	<tr>
    		<td width="30%" align="right">网银在线支付:</td>
    		<td>
		    <input id="zts11" onClick="document.getElementById('wypay').style.display='';" type="radio" name="CS_Wypay" value="1"<?php if($CS_Wypay==1) echo ' checked';?>/><label for="zts11">开启</label>&nbsp;&nbsp;
		    <input id="zts12" onClick="document.getElementById('wypay').style.display='none';" type="radio" name="CS_Wypay" value="0"<?php if($CS_Wypay==0) echo ' checked';?>/><label for="zts12">关闭</label>&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;注册地址:&nbsp;&nbsp;<a href="http://chinabank.com.cn/" target="pay">http://chinabank.com.cn/</a>
		</td>
  	</tr>
        <tbody id="wypay" <?php if($CS_Wypay==0){echo 'style="display:none"';}?>>
  	<tr>
    		<td align="right">商务ID号 :</td>
    		<td ><input name="CS_Wypay_ID" type="text" value="<?=$CS_Wypay_ID?>" size=40>&nbsp;&nbsp;>商务ID号</td>
  	</tr>
  	<tr>
    		<td align="right">安全密钥KEY:</td>
    		<td ><input name="CS_Wypay_Key" type="text" value="<?=$CS_Wypay_Key?>" size=40>&nbsp;&nbsp;>安全密钥KEY</td>
  	</tr>
        </tbody>

  	<tr>
    		<td height="20" colspan="2" class="title" align="center">财付通在线支付选项设置&nbsp;&nbsp;（<font color=red>此接口为及时倒帐接口</font>）</td>
  	</tr>
  	<tr>
    		<td width="30%" align="right">财付通支付:</td>
    		<td>
		    <input id="zts1" onClick="document.getElementById('tenpay').style.display='';" type="radio" name="CS_Tenpay" value="1"<?php if(CS_Tenpay==1) echo ' checked';?>/><label for="zts1">开启</label>&nbsp;&nbsp;
		    <input id="zts2" onClick="document.getElementById('tenpay').style.display='none';" type="radio" name="CS_Tenpay" value="0"<?php if(CS_Tenpay==0) echo ' checked';?>/><label for="zts2">关闭</label>&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;注册地址:&nbsp;&nbsp;<a href="http://mch.tenpay.com/market/index.shtml" target="pay">http://mch.tenpay.com/market/index.shtml</a>
		</td>
  	</tr>
        <tbody id="tenpay" <?php if(CS_Tenpay==0){echo 'style="display:none"';}?>>
  	<tr>
    		<td align="right">商务ID号 :</td>
    		<td ><input name="CS_Tenpay_ID" type="text" value="<?=CS_Tenpay_ID?>" size=40>&nbsp;&nbsp;>商务ID号</td>
  	</tr>
  	<tr>
    		<td align="right">安全密钥KEY:</td>
    		<td ><input name="CS_Tenpay_Key" type="text" value="<?=CS_Tenpay_Key?>" size=40>&nbsp;&nbsp;>安全密钥KEY</td>
  	</tr>
        </tbody>

  	<tr align="center">
    		<td height="36" colspan="2" ><input type="submit" name="Submit" class="italk-bt" value=" 保 存 "></td>
  	</tr></form>
	</table>
</body>
</html>

