<html>
<head>
<title>{{$title}}</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<link href="resources/css/constyle.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="resources/js/jquery.js"></script>
<script type="text/javascript" src="resources/js/jquery.slide.js"></script>
<script type="text/javascript" src="resources/js/jquery.tabs.js"></script>
<script type="text/javascript" src="resources/js/global.js"></script>
<script type="text/javascript" src="resources/js/common.js"></script>
<script>
  function checkpay(form){
	 if(form.Amount.value==''){
		 alert("请输入要支付的金额，至少10块");
		 form.Amount.focus();
		 return false;
	 }
	 if(isNaN(form.Amount.value)){
		 alert("金额只能是正整数");
		 form.Amount.focus();
		 return false;
	 }
	 return confirm("支付后耐心等待浏览器返回支付结果，\n\n在此过程中请不关闭浏览器窗口！\n\n现在支付吗？");
  }
</script>
</head>
<body>
{{include file="user_top.inc.html"}}
<div id="main">
<div class="inner">


	<div class="left">{{include file="user_d_left.inc.html"}}</div>
	<div class="right">
	    <ul class="maintitle">
			<li id="mainlink"><img src="resources/images/user/pay.gif" width="50" height="50" align="absmiddle"> 冲值</li>
			<li class="tar">当前位置: <a href="../user/index.php"  target="_blank">管理</a> > 冲值</li>
		</ul>		 
        {{if $EnableNetPay == 1}}
		<form onSubmit="return checkpay(this)" action='onlinepay2.php' method='post' target="_blank">
		<table class="table">	
		      <tr>
			     <td colspan="2" align="center">
					<img height=21 alt=Visa src="resources/images/user/logo_ccVisa.gif" width=37>
					<img alt=Mastercard src="resources/images/user/logo_ccMC.gif">
					<img alt="American Express" src="resources/images/user/logo_ccAmex.gif">
					<img alt=Discover src="resources/images/user/logo_ccDiscover.gif">
					<img alt=eCheck src="resources/images/user/logo_ccEcheck.gif">
					<img alt=PayPal src="resources/images/user/PayPal_mark_37x23.gif">
				 </td>
			  </tr>
			  <tr>
				  <td colspan="2" align="center" class="red">{{$CurUser}} 网上汇入</td>
			  </tr>
			  <tr>
				  <td> 用 户：</td>
				  <td>{{$CurUser}}</td>
			  </tr>
			  <tr>
				  <td>预付款余额：</td>
				  <td>￥{{$UserSurplus}}</td>
			  </tr>
			  <tr>
				  <td>汇入预付款：</td>
				  <td><INPUT name='Amount' class="inputbox" value="{{$Amount}}">&nbsp;元</td>
			  </tr>
			  <tr>
				  <td>选择支付接口：</td>
				  <td>
				     {{section name=key loop=$PayTypes}}
					 <input type="radio" name="paycode" value="{{$PayTypes[key].pay_code}}" {{if $PayTypes[key].pay_selected==1 }} checked{{else}}{{/if}}>&nbsp;{{$PayTypes[key].pay_name}}&nbsp;
					 {{/section}}
				  </td>
			  </tr>
			  <tr>
				  <td colspan="2" align="center"><input type="submit" class="btn" value="开始支付"><input type="hidden" name="OrderID" value="{{$OrderID}}"></td>
			  </tr>
		 </table>
		 </form>
         {{else}}
         <span class="super">网上支付功能未开通 <a href='#' onClick='history.back()'>[返回]</a></span>
        {{/if}}
	</div>


</div>
</div>
{{include_php file="user_foot.inc.php"}}
</body></html>
