<?php
	!defined('DIRCMS_MANAGE') && exit('Access Denied!');
?>
<!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>
<title>支付方式管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="admin/template/css/style.css" />
<script type="text/javascript" src="images/js/jquery.min.js"></script>
<script src="images/js/check.func.js"></script>
<script language="javascript" type="text/javascript">
	$(document).ready(function(){
		checkForm(0);
	});
</script>
</head>
<body>
<div id="wrap">
	<div class="tab">
		<ul>
			<li><a href="?file=paymethod&action=manage">支付方式</a></li>
			<li><a href="javascript:void(0);" class="on">详细配置</a></li>			
		</ul>
	</div>
	<div class="main">
	<fieldset>
		<legend>操作提示</legend>
		在线支付的具体参数配置请详细仔细提供商。
	</fieldset>
	<form action="" method="post" name="myform">
	<input type="hidden" name="do_submit" value="1" />
	<input type="hidden" name="id" value="<?php echo $val['id'];?>" />
	<table cellspacing="0" class="sub">
		<tr>
			<td width="120" align="right">支付方式名称：</td>
			<td>
				<input type="text" name="info[name]" size="25" value="<?php echo $val['name'];?>" datatype="limit"  min="2" max="80" />
			</td>
		</tr>
		<tr>
			<td align="right">支付手续费用：</td>
			<td>
			<input type="text" name="info[fee]" datatype="double" value="<?php echo $val['orderby'];?>" size="4" /> 元
			</td>
		</tr>
		<tr>
			<td align="right">支付方式排序：</td>
			<td>
			<input type="text" name="info[orderby]" datatype="number" value="<?php echo $val['orderby'];?>" size="4" />
			</td>
		</tr>
		<tr>
			<td align="right">支付方式描述：</td>
			<td>
			<textarea name="info[desc]" datatype="limit" min="0" max="255" cols="50" rows="5"><?php echo $val['desc'];?></textarea>
			</td>
		</tr>
		<?php if($val['code']=='alipay'){?>
		<tr>
			<td align="right">支付宝帐户：</td>
			<td>
			<input type="text" name="config[alipay_account]" value="<?php echo $config['alipay_account'];?>" datatype="limit"  min="0" max="80" />
			</td>
		</tr>
		<tr>
			<td align="right">交易安全校验码：</td>
			<td>
			<input type="text" name="config[alipay_key]" value="<?php echo $config['alipay_key'];?>" datatype="limit"  min="0" max="80" />
			</td>
		</tr>
		<tr>
			<td align="right">合作者身份ID：</td>
			<td>
			<input type="text" name="config[alipay_partner]" value="<?php echo $config['alipay_partner'];?>" datatype="limit"  min="0" max="80" />
			</td>
		</tr>
		<tr>
			<td align="right">支付接口类型：</td>
			<td>
			<select name="config[service_type]">
				<option value="0"  <?php echo $config['service_type']==0?'selected="selected"':'';?>  >纯担保交易接口</option>
				<option value="1"  <?php echo $config['service_type']==1?'selected="selected"':'';?>>标准实物双接口</option>
				<option value="2"  <?php echo $config['service_type']==2?'selected="selected"':'';?>>即时到账接口</option>
			</select>
			</td>
		</tr>
		<?php }?>
		<tr class="bg2"><td></td><td><input type="button" class="button" onclick="doSubmit(this);" value="确定配置" /> <input type="button" class="button" onclick="window.location.href='<?php echo ADMIN_FILE;?>?file=paymethod&action=manage'" value="取消返回" /></td></tr>
	</table>
	</form>

	</div>
</div>
</body>
</html>