<%@page import="java.net.URLDecoder"%>
<%@page language="java" import="java.util.regex.Pattern,java.util.*,com.letousky.lottery.action.IdentityBindAction,com.letousky.lottery.util.Base64DecoderEncoder" pageEncoding="UTF-8"%>
<%
             String cyuser = request.getParameter("cyuser")==null?"":request.getParameter("cyuser");
             boolean b = Pattern.matches("[\\u4E00-\\u9FA5]+", cyuser);
             if(!b){
            	 cyuser=new String(cyuser.getBytes("ISO-8859-1"), "utf-8");//解决乱码用的
             }
            
             
%>
<!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="竞彩,足彩,nba彩票,nba竞彩,竞彩乐,cpzg,即时比分,jingcai,竞彩赛果,竞彩奖金,竞彩足球,竞彩篮球,竞彩玩法介绍,竞彩网上投注,竞彩线上投注,体育竞彩店,竞彩足球,竞彩篮球,传统足球,NBA视频,中国竞彩网,中国竞彩,竟彩,中国竟彩网,中国竟彩足球,竟彩足球,英超德甲,意甲,西甲,曼联"/>
	<meta http-equiv="description" content="买竞彩就上彩票中国,中国最专业权威的竞彩网上委托投注网站,国内首家竞彩投注社区,提供竞彩,竞彩足球,竞彩篮球,竞彩推荐,竞彩投注,传统足彩,足彩,足球彩票,体育彩票等服务."/>
	<link href="<%=request.getContextPath()%>/letoula/user/css/account.css" rel="stylesheet" type="text/css" />
	<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/member.css" />
	<script src="<%=request.getContextPath() %>/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/menu.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/common.js"></script>
	<link href="<%=request.getContextPath()%>/letoula/useraccount/css/date_input.css" rel="stylesheet" type="text/css" />
	</head>
	<body>

      		<%@include file='../../letoula/top.jsp' %>
			<%@include file='/common/nav.jsp' %>
    	<script type='text/javascript'>
			var userid='<%=userAry[1] %>';
			var nikeName = '<%=userAry[2]%>';
		</script>
    	<div id='homeMain'>
    	
    		<div id='contentL'>
    			  <%@include file='/member/memberLeft.jsp' %>
    		</div>
    		
    		<div id='contentRight'>
    			<div class='TitleBlueTxt2'>
    				发起人:<%=cyuser%>&nbsp;的跟单明细修改：	
    			</div>
    			<div class='RightWidth_content'>
    				
    				<table class='RightWidth_contenttab01' align='center' id='anther_list' border='0' cellspacing='0' cellpadding='0'>
    					<colgroup><col width="164"/><col width="183"/><col width="218" /><col /></colgroup>
  						<thead><tr><th>彩种</th><th>已定制人数</th><th>跟单总金额</th><th>操作</th></tr>
				  		</thead>
				  		<tbody>
				  		</tbody>
    				</table><div class='loding'><img src='../images/loding.gif' /></div>
    				
    				<div class='page'>
    		<!--<span class='f_an_gs'>
    					单页方案个数:
    			<a href="javascript:void(0)" s_val="10" class='an_x_z'>10</a>
    			<a href="javascript:void(0)" s_val="50">50</a>
    		</span>-->
    		<span class='f_an_page'>
    					
    		</span>
    	</div>
    			</div>
    		</div>
    		
    	</div>
<%@include file='/common/footer.jsp' %>
<script type='text/javascript'>
  		var nikeName='<%=cyuser%>';
  		var cyuser = '<%=userAry[2]%>';
  		$('.loding').show();
  		$.getJSON('../data/tary_single_user.jsp?r='+Math.random(),{'userNikeName':nikeName},function(JSON){
  				var tr='';
  				if(JSON.items.length == 0) tr = '<tr><td colspan="10">没有找到相关的记录！</td></tr>';
  				$('.singleuser').empty();
  				if(JSON.result == '0000'){
  					
  					$(JSON.items).each(function(i,v){
  						var listBg = i % 2 == 0 ? 'WhiteBg' : 'ContentLight';
  						tr += '<tr class="'+listBg+'"><td><strong>'+lotName[v.lotName]+'</strong></td><td><b class="font_red">'+v.zdr+'</b>人</td><td><b class="font_red">'+v.price+'</b>元</td><td><a href="javascript:void(0)" class="star" onclick="show_tr(this)">我要定制</a></td></tr><tr style="display:none"><td class="custom-td" colspan="4" align="left">每次认购金额：<input type="text" id="canyuMoney'+i+'" /><input type="button" class="d_blue"  onclick=CostumDate_add("'+v.lotName+'","'+nikeName+'","'+cyuser+'",'+i+') value="提交"/></td></tr>';
  					});
  					$('#anther_list > tbody').html(tr);
  				}else{
  					alert(JSON.result);
  				}
  			$('.loding').hide();
  		});
  		
  		function show_tr(_this){
  			
  			if(_this.className=='star') $(_this).removeClass('star').addClass('end').parents('tr').next('tr').show();
  			else $(_this).removeClass('end').addClass('star').parents('tr').next('tr').hide();
  			
  		}
  		
 function CostumDate_add(gameCode,starNikeName,canyuNikeName,s){
	
	var canyuMoney = $('#canyuMoney'+s+'').val();
	
	$.getJSON('../data/tary_save_yq.jsp?r='+Math.random(),{'gameCode':gameCode,'starNikeName':starNikeName,'canyuNikeName':canyuNikeName,'canyuMoney':canyuMoney},function(requestText){
		
		if(requestText.result == '0000') {
			location.href = '../../member/costum.jsp';
		}else{
			alert(requestText.result);
		}
	});
}
  		
  </script>
