<!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=<!--{$page_charset}-->" />

<title>管理员</title>
<!--{include file="<!--{$cptplpath}-->headerjs.tpl"}-->
<!--{assign var='pluginevent' value=XHook::doAction('adm_head')}-->
</head>
<body>
<!--{assign var='pluginevent' value=XHook::doAction('adm_main_top')}-->
<!--{include file="<!--{$cptplpath}-->lang_all.tpl"}-->
<div class="main-wrap">
  <div class="path"><p>当前位置：系统设置<span>&gt;&gt;</span>支付宝设置<span>&gt;&gt;</span><a href="<!--{$cpfile}-->?c=aplipay">支付宝配置</a></p></div>
  <div class="main-cont">
	<h3 class="title">支付宝配置</h3>
    <form name="myform" id="myform" method="post" action="<!--{$cpfile}-->?c=aplipay" onsubmit='' />
    <input type="hidden" name="a" value="saveedit" />
	<table cellpadding='3' cellspacing='3' class='tab'>
	  <tr>
		<td class='hback_1' width="15%">App_id：<span class='f_red'>*</span></td>
		<td class='hback' width="85%"><input type="text" name="app_id" id="app_id" class="input-150" value="<!--{$aplipay.app_id}-->" /> <span class='f_red' id="dadminname"></span> <font color="#999999">应用ID,您的APPID。</font></td>
	  </tr>
          	  <tr>
		<td class='hback_1' width="15%">合作身份者ID：<span class='f_red'>*</span></td>
		<td class='hback' width="85%"><input type="text" name="partner" id="partner" class="input-150" value="<!--{$aplipay.partner}-->" /> <span class='f_red' id="dadminname"></span> <font color="#999999">合作身份者ID，签约账号，以2088开头由16位纯数字组成的字符串，查看地址：https://b.alipay.com/order/pidAndKey.htm</font></td>
	  </tr>
            <tr>
		<td class='hback_1' width="15%">MD5密钥：<span class='f_red'>*</span></td>
		<td class='hback' width="85%"><input type="text" name="key" id="key" class="input-150" value="<!--{$aplipay.key}-->" /> <span class='f_red' id="dadminname"></span> <font color="#999999">安全检验码，由数字和字母组成的32位字符串，查看地址：https://b.alipay.com/order/pidAndKey.htm</font></td>
	  </tr>
          
	  <tr>
		<td class='hback_1'>notify_url：<span class='f_red'>*</span></td>
		<td class='hback'><input type="text" name="notify_url" id="notify_url" class="input-100" value="<!--{$aplipay.notify_url}-->" /> <span class='f_red' id="dpassword"></span> <font color="#999999">异步通知地址</font></td>
	  </tr>
 	  <tr>
		<td class='hback_1'>return_url：<span class='f_red'>*</span></td>
		<td class='hback'><input type="text" name="return_url" id="return_url" class="input-100" value="<!--{$aplipay.return_url}-->" /> <span class='f_red' id="dconfirmpassword"></span> <font color="#999999">同步跳转</font></td>
	  </tr>
	 <tr>
		<td class='hback_1'>charset：<span class='f_red'>*</span></td>
		<td class='hback'><input type="text" name="charset" id="charset" class="input-100" value="<!--{$aplipay.charset}-->" /> <span class='f_red' id="dconfirmpassword"></span> <font color="#999999">编码格式</font></td>
	  </tr>
            <tr>
		<td class='hback_1'>sign_type：<span class='f_red'>*</span></td>
		<td class='hback'><input type="text" name="sign_type" id="sign_type" class="input-100" value="<!--{$aplipay.sign_type}-->" /> <span class='f_red' id="dconfirmpassword"></span> <font color="#999999">签名方式</font></td>
	  </tr>
            <tr>
		<td class='hback_1'>gatewayUrl：<span class='f_red'>*</span></td>
		<td class='hback'><input type="text" name="gatewayUrl" id="gatewayUrl" class="input-100" value="<!--{$aplipay.gatewayUrl}-->" /> <span class='f_red' id="dconfirmpassword"></span> <font color="#999999">支付宝网关</font></td>
	  </tr>
	  <tr>
		<td class='hback_1'>商户私钥： </td>
		<td class='hback'><textarea name='merchant_private_key' id='merchant_private_key' style='width:50%;height:85px;overflow:auto;color:#444444;'><!--{$aplipay.merchant_private_key}--></textarea></td>
	  </tr>
             <tr>
		<td class='hback_1'>支付宝公钥： </td>
		<td class='hback'><textarea name='alipay_public_key' id='alipay_public_key' style='width:50%;height:85px;overflow:auto;color:#444444;'><!--{$aplipay.alipay_public_key}--></textarea></td>
	  </tr>
	  <tr>
		<td class='hback_none'></td>
		<td class='hback_none'><input type="submit" name="btn_save" class="button" value="保存更新" /></td>
	  </tr>
	</table>
	</form>
  </div>
  <div style="clear:both;"></div>
</div>


<!--{assign var='pluginevent' value=XHook::doAction('adm_footer')}-->
</body>
</html>
<script type="text/javascript">
function checkform() {
	var t = "";
	var v = "";

	t = "adminname";
	v = $("#"+t).val().length;
	if(v<4 || v>16) {
		dmsg("登录帐号必须为4-16个字符！", t);
		return false;
	}

	t = "password";
	v = $("#"+t).val().length;
	if(v<4 || v>16) {
		dmsg("登录密码必须为4-16个字符", t);
		return false;
	}
	return true;
}

function checkpassword() {
	var t = "";
	var v = "";

	t = "oldpassword";
	v = $("#"+t).val();
	if(v=="") {
		dmsg("原密码不能为空", t);
		return false;
	}

	t = "password";
	v = $("#"+t).val().length;
	if(v<4 || v>16) {
		dmsg("新密码必须为4-16个字符！", t);
		return false;
	}
    
	t = "confirmpassword";
	if($("#confirmpassword").val()!=$("#password").val()) {
		dmsg("确认密码不正确！", t);
		return false;
	}
	return true;
}
</script>
