<%@ page language="java" import="java.util.*,com.letousky.lottery.action.IdentityBindAction,com.letousky.lottery.action.ShowUserAction" pageEncoding="UTF-8"%>
<%
	String nikeName = request.getParameter("nikeName");
	double money = Double.parseDouble(request.getParameter("txMoney"));
	double tpr = Double.parseDouble(request.getParameter("tpr"));
	double sypr= tpr - money;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>彩票中国--我的账户--会员中心</title>
    
	<meta http-equiv="pragma" content="no-cache"/>

	<meta http-equiv="cache-control" content="no-cache"/>
	<meta http-equiv="expires" content="0"/>    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
	<meta http-equiv="description" content="This is my page"/>
	<link href="<%=request.getContextPath()%>/letoula/useraccount/css/touzhu.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
  	<div class='buy_rec'>
  		<b class='e_draw'></b>
  		<ul class='my_cos'>
  			<li><a href="addMoney.jsp" class='cur'>提款现金</a></li>
  			<li><a href="addMoney.jsp" >提款记录</a></li>
  		</ul>
  	</div>

  	
	<div class='rge_box'>
		<p class='tk_u'>
			<%=nikeName%>，您本次提款业务明细如下：<br/>
			您此次订单共计<font color='red' class='m_y'><%=money%></font>元，其中0.00元为取款所需费用，到帐金额为<font color='red'><%=money%></font>元。<br/>
			您原有预付款<font color='red'><%=tpr%></font>元，本次取款<font color='red'><%=money%></font>元后，您还有<font color='red'><%=sypr%></font>元预付款。
		</p>
		<div class='add_bank_btn'>
			<a href="javascript:check_sub()" class='btn_Dora_b star_btn'>确认提交</a>
		</div>
	</div>

<!--提示层-->
<div class="tips_m" style="width:375px; " id="blk2">
    <div class="tips_b">
         <div class="tips_box">
         	<div class="tips_title">
                 <h2>温馨提示</h2>
                 <span class="closes"><a href="javascript:seaDetails('blk2','h')" id="close1">关闭</a></span>
             </div>
             <p>
             	<b class='def'></b>
             	<strong class='errorMsg'></strong>
             </p>
             <p><input type='button' class='btn_Dora_b' id='yclass_alert_ok' onclick=seaDetails('blk2','h') value='关 闭' /></p>
            
         </div>
    </div>
</div> 
  </body>
  </html>
<script type='text/javascript' src='<%=request.getContextPath()%>/letoula/js/plugin/library.js'></script>
<script type='text/javascript'>
	
	function check_sub(){
		$.getJSON('../../data/alipay_cash.jsp?r='+Math.random(),{'money':$('.m_y').text()},function(cash){
			
			if(cash.result == '0000'){
				
				seaDetails('blk2','s',cash.result);
				location.href="atm_record.jsp";
			}else
			{
				seaDetails('blk2','s',cash.result);
				return;
			}
		})
	}
	
function seaDetails(nd,sh,txt){
		var off_top=document.documentElement.scrollTop;
		var off_left=document.documentElement.scrollLeft; 
        document.getElementById(nd).style.top=(off_top+50)+"px";
        document.getElementById(nd).style.left=(document.body.clientWidth-500)+"px";
        $('.errorMsg').text(txt);
		sh == 's' ? $('#bd,#'+nd+'').show() : $('#bd,#'+nd+'').hide();
	}
</script>