<%@ page language="java" import="java.util.*,java.text.*,com.letousky.lottery.delegate.WinsFlat,com.letousky.lottery.action.AuxiliaryData,com.letousky.lottery.util.InsiderCenterFormat" pageEncoding="UTF-8"%>
<%
String rootUrl=request.getContextPath();
String[] parmas=new String[]{"501","0","1"};
List list=new WinsFlat().wins(parmas);
Object[] obj=list.toArray();
InsiderCenterFormat  format  =  new InsiderCenterFormat();
String[] pm = null;
List winsItem = new AuxiliaryData().winsSel(pm);
Object[] ws = winsItem.toArray();

String[] parmas_leij = null;
String[] leiJiZhongJiang = new AuxiliaryData().buyWinningLJZ(parmas_leij); 
String money = String.valueOf((int)Double.parseDouble(leiJiZhongJiang[0]) + 90000000);
int lgs = 10 - money.length();
for(int j=0;j<lgs;j++){
	money = "0"+money; 
}
%>
<%@include file='/common/headtop.jsp' %>
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/member.css" />
<!-- ======================================投注记录==================================== -->
<SCRIPT type=text/javascript src="<%=request.getContextPath()%>/js/jquery.min.js"></SCRIPT>
<link href="<%=request.getContextPath()%>/letoula/user/css/account.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/letoula/useraccount/css/date_input.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/letoula/css/top.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/letoula/css/user_c.css" rel="stylesheet" type="text/css" />

<script type='text/javascript' src='<%=request.getContextPath()%>/letoula/js/plugin/library.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/letoula/js/plugin/date_input.js'></script>

<script type='text/javascript'>
		var url = '<%=request.getContextPath()%>';
</script>
<!--<script type='text/javascript' src='<%=request.getContextPath()%>/letoula/js/public.js'></script>
--><!-- ======================================投注记录==================================== -->
</head>
<body>
<%@include file='/common/topLine.jsp' %>
<%@include file='/common/nav.jsp' %>
<script type='text/javascript'>
			var userid='<%=userAry[1] %>';
</script>
<!-- ======================================投注记录==================================== -->
<div class="row mt10">
 <div class="memberL fleft">
      <ul>
       <li class="on"><em class="memberL_icon1"></em><a href="<%=request.getContextPath()%>/member/index.jsp">我的账户</a><u></u></li>
       <li><em class="memberL_icon2"></em><a href="<%=request.getContextPath()%>/member/tzjl.jsp">投注记录</a><u></u></li>
       <li><em class="memberL_icon3"></em><a href="<%=request.getContextPath()%>/member/costum.jsp">定制跟单</a><u></u></li>
       <li><em class="memberL_icon4"></em><a href="<%=request.getContextPath()%>/member/account_details.jsp">账户明细</a><u></u></li>
      </ul>
      <ol>
         <li><a href="<%=request.getContextPath()%>/member/prepayIntro.jsp"  class="bgRed">充　　值</a><em>|</em></li>
         <li><a href="<%=request.getContextPath()%>/member/prepayOntro.jsp">提　　款</a></li>
         <li><a href="<%=request.getContextPath()%>/member/userInfo.jsp">个人资料</a><em>|</em></li>
         <li><a href="<%=request.getContextPath()%>/member/password_upd.jsp">账户安全</a></li>
      </ol>
      <div class="loginText">
         <span><b>账户安全</b><br />双重密码保护账户</span>
         <span><b>兑奖安全</b><br />百万大奖安全到账</span>
         <span><b>提款安全</b><br />迅速处理提款安全</span>
      </div>
  </div>
      <!-- ==================================充值======================================= -->
       		<div id='contentRight'>
    			<div class='RightWidth_title'>充值</div> 
    			<div class='RightWidth_content'>
    				<form action="<%=request.getContextPath()%>/TradeAction.do?action=prePaidApplyNew" onsubmit='return checkform();' id='sub_confirm' method="post">
    					<div class='wyczbg' id='pay_bank_list'>
    						<ul class='wycz_con'>
    							<li class='wycz_con_title'>充值金额：</li>
    							<li class='wycz_con_nr'>
    								<input type='text' name='czMoney' class='gray' id='OrderAmount' size='10' onkeyup="this.value=this.value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1');" />
    								 元 <span class='font_red'>(存入至少5元)</span>
    							</li>
    							<li class='wycz_con_title'>充值方式：</li>
    							<li class='wycz_con_nr'>请选择您开通的网上银行或第三方账户 <span class='font_red'>(在您使用网上银行充值前，请确认已经到银行柜台开通网银)</span></li>
    						</ul>
    						<div class='wycz_bank'>
    							<div class='BankList bankimgon'>
    								<input type="radio" name="payType" id="pat" checked="checked" value="BOCB2C" class="text_radio1" />
    								<span class='icon zgyh'></span>
    							</div>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" value="ICBCB2C" class="text_radio1" />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon gsyh'></span>
									</label>
    							</div>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" value="CMB" class="text_radio1" />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon zsyh'></span>
									</label>
    							</div>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" value="CCB" class="text_radio1" />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon jsyh'></span>
									</label>
    							</div>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" value="ABC" class="text_radio1" />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon nyyh'></span>
									</label>
    							</div>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" value="SPDB" class="text_radio1" />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon pdyh'></span>
									</label>
    							</div>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" value="CIB" class="text_radio1" />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon xyyh'></span>
									</label>
    							</div>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" value="GDB" class="text_radio1" />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon gdfz'></span>
									</label>
    							</div>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" value="SDB" class="text_radio1" />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon szfz'></span>
									</label>
    							</div>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" value="CMBC" class="text_radio1" />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon msyh'></span>
									</label>
    							</div>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" value="COMM" class="text_radio1" />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon jtyh'></span>
									</label>
    							</div>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" value="CITIC" class="text_radio1" />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon zxyh'></span>
									</label>
    							</div>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" value="CEBBANK" class="text_radio1" />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon gdyh'></span>
									</label>
    							</div>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" value="SPABANK" class="text_radio1" />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon payh'></span>
									</label>
    							</div>
    						</div>
    						<div class='wycz_bank wycz_bankbg'>
    							<div class='BankList'>
    								<input type="radio" name="payType" id="pat" class="text_radio1" value="zhifubao"  />
									<label class='icon-box' id='img_1' for="bank1">
										<span class='icon cft'></span>
									</label>
    							</div>
    						</div>
    						<div class='Clear clear'></div>
    						<div class='wytabbg'>
    							<input type='button' id='submitPay' onclick='checkform()' class='user_czbtn142' value='确认无误，充值' />
    						</div>
    					</div>
    					
    				</form>
    			</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 style='text-align:center;'>
             	    <b class='def'></b>
             	     <strong class='errorMsg'>存入金额至少为5元</strong>
                     </p>
                 <p style='text-align:center;'><input type='button' class='btn_Dora_b' id='yclass_alert_ok' onclick="seaDetails('blk2','h')" value='关 闭' /></p>
                 </div>
               </div>
          </div> 
</div>
<%@include file='/common/footer.jsp' %>
<script type='text/javascript'>
	
	function checkform(){
		
		var money = document.getElementById('OrderAmount').value;
		
		if(parseInt(money) < 0.1 || money.length <= 0){
			create_class.seaDetails('blk2','s','存入金额至少为5元');
			return false;
		}
		
		document.getElementById('sub_confirm').submit();
	}
	
	$('.text_radio1').click(function(){
		$('.bankimgon').removeClass('bankimgon');
		$(this).parent('div').addClass('bankimgon');
	});
	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";
        $('.eroorMsg').text(txt);
		sh == 's' ? $('#bd,#'+nd+'').show() : $('#bd,#'+nd+'').hide();
	}
</script>

