<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
<title>{echo admin_title()}</title>
<!--header-->
{template _:header}
</head>
<body>
<div class="layui-layout layui-layout-admin">
<!--top-->
{template _main_top}
<!--nav-->
{template _main_nav}
	<div class="position"><h1>随行付</h1></div>
	<div class="layui-body admin-body">
		<div class="admin-content">
			<div class="layui-tab layui-tab-brief" lay-filter="gate">
				<ul class="layui-tab-title layui-tab-links">
					<li class="<!--{if request()->action() == 'index'}-->layui-this<!--{/if}-->"><a href="{echo url('SubpaySuixing/index')}">参数配置</a></li>
					<li class="<!--{if request()->action() == 'merchant'}-->layui-this<!--{/if}-->"><a href="{echo url('SubpaySuixing/merchant')}">商户入网</a></li>
				</ul>
				<div class="layui-tab-content">
					<form name="form_suixing" id="form_suixing" method="post" action="{echo \befen\get_url()}">
					<table class="layui-table">
						<tbody>
							<tr>
								<td class="td1">机构编号(orgId)</td>
								<td class="td2"><input type="text" name="suixing_orgId" id="suixing_orgId" class="layui-input" value="{$suixing_orgId}" placeholder=""></td>
							</tr>
							<tr>
								<td class="td1">商户编号(mno)</td>
								<td class="td2">
									<div class="layui-input-inline" style="width:100%;"><input type="text" name="merchant_name" id="merchant_name" class="layui-input" value="{echo input('param.merchant_name')}" placeholder="商户名称"></div>
								</td>
							</tr>
							<tr>
								<td class="td1">随行付公钥<br />suixing_PublicKey.pem</td>
								<td class="td2"><textarea name="suixing_PublicKey_body" id="suixing_PublicKey_body" class="layui-textarea">{$suixing_PublicKey_body}</textarea></td>
							</tr>
							<tr>
								<td class="td1">服务商私钥<br />suixing_PrivateKey.pem</td>
								<td class="td2"><textarea name="suixing_PrivateKey_body" id="suixing_PrivateKey_body" class="layui-textarea">{$suixing_PrivateKey_body}</textarea></td>
							</tr>
							<!--
							<tr>
								<td class="td1">&nbsp;</td>
								<td class="td2">
									<button type="submit" name="submit_suixing" value="submit_suixing" id="submit_suixing" class="layui-btn">提交</button>
									<button type="reset" id="reset" class="layui-btn layui-btn-primary">重置</button>
								</td>
							</tr>
							-->
						</tbody>
					</table>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<!--footer-->
{template _:footer}
<script type="text/javascript">
layui.use("element", function(){
	var element = layui.element;
	element.on("tab(gate)", function(elem){

	});
});
$("#submit_suixing").click(function(){
	ajaxSubmit(this, "", "#form_suixing");
});
$('#form_suixing input[name=merchant_name]').autoComplete({
	url: "{echo url('merchant/index')}",
	field: "",
	value: "{echo input('param.merchant_name')}",
	name_hidden: "merchant_id",
	value_hidden: "{echo input('param.merchant_id')}",
});
</script>
</body>
</html>