<%@ page language="java" import="java.util.*,org.nutz.json.Json,com.letousky.lottery.util.InsiderCenterFormat" pageEncoding="UTF-8"%>
<%
	String betjson = (String)request.getAttribute("betjson");
	String strssid = (String)request.getAttribute("strssid");
	HashMap betMap = Json.fromJson(HashMap.class,betjson);
	int Money = (int)Double.parseDouble(betMap.get("money").toString());
%>
<%@ include file="../../common/headtop.jsp"%>
	<link href="<%=request.getContextPath()%>/letoula/css/betting.css" rel="stylesheet" type="text/css" />
	<script type='text/javascript'>
		var betJson = '<%=betjson%>';
		var marketid = '<%=betMap.get("strssid").toString()%>';
		var info = '<%=betMap.get("info").toString()%>';
		var gamecode = '<%=betMap.get("gameCode").toString()%>';
		var danma = '<%=betMap.get("danmaid").toString()%>';
		var mcn = '<%=betMap.get("mcn").toString()%>';
		var tempstr = '<%=betMap.get("tempstr").toString()%>';
		var newhy = '<%=betMap.get("newhy").toString()%>';
		var countMoney = '<%=Money%>';
		var betItem = eval('(' + betJson + ')');
	</script>
  </head>
  <body>
<%@ include file="../top.jsp"%>
<div class="bgGray">
<%@ include file="../../common/nav.jsp"%>
</div>
    <div id='homeMain'>
    	<div class='zq_yhfa'>
    		<div class='dgq_yhfa1'>
    			<div class='dgp_tit'>
    				<i class='dq_bolltit'>1</i>
    				<%=ide.getLotteryType(betMap.get("gameCode").toString())%>奖金优化方案
    				<span id='jq_end_time_tip' style='color: red; margin-left: 10%;'>
    				
    				</span>
    			</div>
    			<div class='dgpyhtab'>
    				<table width="100%" class='dgp_tab' border='0' cellspacing='0' cellpadding='0'>
    					<thead>
    						<tr>
    							<th>自选场次</th><th>对阵</th><th>胆码</th><th>投注选项(参考奖金指数)</th><th>过关方式</th>
    						</tr>
    					</thead>
    					<tbody id='jq_add_matchList'>
    					
    					</tbody>
    				</table>
    			</div>
    		</div>
    		<div class='dgq_yhfa1'>
    			<div class='dgp_tit'>
    				<i class='dq_bolltit'>2</i>
    				输入金额，优化奖金
    				<span class='dgp_fz12'>(输入金额≥原方案金额，且整除2)</span>
    			</div>
    			<div class='dgpyhtab'>
    				<strong class='redY jh_buy'>计划购买
    					<input type='text' class='jq_input_shadow shadow_input' onkeyup='TXTOnkeyval()'  id='jq_plan_amount' value='<%=Money%>' />元
    				</strong>
    				<p class='jh_buy_p'>
    					<input type='radio' name='optimizeType' type='radio' class='yhradio xuanz' checked='checked' value='1' />平均优化
    					<i class='text999'>各单注的奖金比较平均，任何彩果下盈利基本一致。</i>
    				</p>
    				<p class='jh_buy_p'>
    					<input type='radio' name='optimizeType' class='yhradio' type='radio' value='2' />博热优化
    					<i class='text999'>命中概率最高的单注奖金最大化，其它趋于保本。</i>
    				</p>
    				<p class='jh_buy_p'>
    					<input type='radio' name='optimizeType' class='yhradio' type='radio' value='3' />搏冷优化
    					<i class='text999'>单注奖金较高的方案增加倍数，其它趋于保本。</i>
    				</p>
    				<a href="javascript:void(0)" class='youhuabtn' onclick='TXT_Price()' id='jq_immediately_optimize'>立即优化</a>
    			</div>
    		</div>
    		<div class='dgq_yhfa1' style='border:none;'>
    			<div class='dgp_tit'>
    				<i class='dq_bolltit'>3</i>
    				手动调整方案倍数
    				<span class='dgp_fz12'>(可以手动调整单注倍数，“0”代表删除该注)</span>
    			</div>
    			<div class='dgpyhtab'>
    				<table width="100%" class='dgp_tab' border='0' cellspacing='0' cellpadding='0'>
    					<thead>
    						<tr>
    							<th width='5%'>序号</th><th width='60%'>单注</th><th width='15%'>倍数</th><th>理论奖金</th>
    						</tr>
    					</thead>
    					<tbody id='yh_add_betList'>
    						
    					</tbody>
    				</table>
    				<div class='hit_div' id='jq_hit_div'>
    					<strong class='redY'>实际金额：<span id='jq_hit_amount'><%=Money%></span></strong>
    					单注理论奖金区间：
    					<span class='redY' id='jq_view_prize'>
    					</span>元
    					<i class='text999'>(最终奖金以出票为准)</i>
    				</div>
    			</div>
    		</div>
    		<div class='jchmyh_btn' id='jq_div_submit'>
    			<a href="javascript:void(0)" onclick='submitMain()' class='jh_btn jh_btnblue' id='jq_upload_file'>提交</a>
    		</div>
    	</div>
    	<form name='FormSubmit' id='FormSubmit' action='<%=request.getContextPath()%>/PutForwordAction.do?action=BettingUpload' onsubmit='return true' method='POST'>
	    	<input type='hidden' name='Muliptile' value='<%=betMap.get("Muliptile")%>' />
	    	<input type='hidden' name='money' id="subMoney" value='<%=betMap.get("money")%>' />
	    	<input type='hidden' name='zs' value='<%=betMap.get("zs")%>' />
	    	<input type='hidden' name='manner' value='<%=betMap.get("manner")%>' />
	    	<input type='hidden' name='title' value='<%=betMap.get("title")%>' />
	    	<input type='hidden' name='description' value='<%=betMap.get("description")%>' />
	    	<input type='hidden' name='isopen' value='<%=betMap.get("isopen")%>' />
	    	<input type='hidden' name='openusers' value='<%=betMap.get("openusers")%>' />
	    	<input type='hidden' name='isUpload' value='<%=betMap.get("isUpload")%>' />
	    	<input type='hidden' name='payofftc' value='<%=betMap.get("payofftc")%>' />
	    	<input type='hidden' name='copies' id='subCopies' value='<%=betMap.get("copies")%>' />
	    	<input type='hidden' name='betcopies' id='subBetCopies' value='<%=betMap.get("betcopies")%>' />
	    	<input type='hidden' name='eachPrice' id='subeachPrice' value='<%=betMap.get("eachPrice")%>' />
	    	<input type='hidden' name='ensures' value='<%=betMap.get("ensures")%>' />
	    	<input type='hidden' name='chipinNums' id='subchipinNums' value='<%=betMap.get("chipinNums")%>' />
	    	<input type='hidden' name='hmfaType' value='<%=betMap.get("hmfaType")%>' />
	    	<input type='hidden' name='moneyFw' value='<%=betMap.get("moneyFw")%>' />
	    	<input type='hidden' name='issue' value='<%=betMap.get("issue")%>' />
	    	<input type='hidden' name='info' value='<%=betMap.get("info")%>' />
	    	<input type='hidden' name='gameCode' value='<%=betMap.get("gameCode")%>' />
	    	<input type='hidden' name='spvalue' value='spValue' />
    	</form>
    </div>

    <!--提示层-->
<div class="tips_m" style="width:500px; " id="blk2">
    <div class="tips_b">
         <div class="tips_box">
         	<div class="tips_title">
                 <h2>温馨提示</h2>
             </div>
             <div class='alert_c'>
             	<div class='state error'>
             		<span class='eroorMsg'>您好，请选择过关方式！</span>
             	</div>
             </div>
             <div class='tips_sbt'>
             	<input type='button' class='btn_Dora_b' id='yclass_alert_ok' onclick='closeWindow("blk2")' value='确   定' />
             </div>
         </div>
    </div>
</div> 
<%@ include file="../../common/footer.jsp"%>
<script type='text/javascript' src='<%=request.getContextPath()%>/letoula/js/setting.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/letoula/jingcai/js/opt.js'></script>