<%@ 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);
String ens = betMap.get("ensures").toString();
String ensures = ens.equals("0") ? "1" : ens;
int Money = (int)Double.parseDouble(betMap.get("money").toString());
int yesMoney = (int)(Money * 0.5);
%>
<%@include file='/common/header.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" />
<link href="<%=request.getContextPath()%>/letoula/css/betting.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='<%=request.getContextPath()%>/letoula/js/plugin/date_input.js'></script>
<!-- ======================================投注记录==================================== -->

<body>
<%@include file='/letoula/top.jsp' %>
<div class="bgGray">
<%@include file='/common/nav.jsp' %>
</div>
<!-- ======================================投注记录==================================== -->
<script type='text/javascript'>
		var betJson = '<%=betjson%>';
		var betItem = eval('(' + betJson + ')');
		var money = '<%=Money%>';
</script>
 <div id='homeMain' style="padding:10px 0;">
    	<div align='center' style='position:relative;'>
    		<div align='center' class='Buytitle'>
    			<strong style='float:left'>
    				<%=ide.getLotteryType(betMap.get("gameCode").toString())%>
    			</strong>
    		</div>
    		<form name='FormSubmit' id='FormSubmit' action='<%=request.getContextPath()%>/PutForwordAction.do?action=BettingEntrance' method='POST'>
    		  <input type="hidden" name="org.apache.struts.taglib.html.TOKEN" value= "<%=session.getAttribute("org.apache.struts.action.TOKEN")%>"/>
    		
    			<table width='1000' align='center' class='BuyContfirmbox' border='0' cellspacing='0' cellpadding='0' style='margin:0 auto;'>
    				<tbody>
    					<tr>
    						<th align='right'>认购设置</th>
    						<td align='left'>
    							<input type='radio' name='rg' class='betSetting' id='rg' checked='checked' value='1' />全额认购
    							<input type='radio' name='hm' class='betSetting' id='hm' value='2' />发起合买
    						</td>
    					</tr>
    					<tr style='border:medium currentColor none'>
    						<th width='12%' align='right' valign='middle'>
    							投注信息
    						</th>
    						<td align='left'>方案倍数 <b><%=betMap.get("Muliptile")%></b> 倍，总金额 <strong class='redtxt2'><%=betMap.get("money")%></strong> 元。
            				</td>
    					</tr>
    					<tr>
    						<th></th>
    						<td>
    							<div class='SubmitMode' id='SubmitMode'>
    								<div style='width: 283px; height: 42px; padding-left: 230px; float: left; position: relative;'>
    									<input name='ButtonTogether' class='betbtn' id='BuySubmit' onclick='setting.checkLogin()' style='float:left;' type="button" value='' />
    								</div>
    								<div style='width: 350px; text-align: left; padding-top: 10px; padding-left: 215px; float: left;'>
    									<input type='checkbox' id='ok_raw' checked='checked' />同意《<a href="#">贝壳彩代购协议</a>》 并已认可投注详情。
    								</div>
    								<div style='clear:both'></div>
    							</div>
    						</td>
    					</tr>
    					<tr>
    						<th align='right'></th>
    						<td class='WhiteBg' align='left'>
    							<p class='redtxt'>重要提示：您投注时的竞彩奖金指数有可能在出票时发生变化，实际数值以票样信息为准。请仔细校对本方案是否与您的投注相符，一旦提交，将按照本方案交易，无法更改！</p>
    							<p>		   过关方式：<%=betMap.get("mcn")%>  					   </p>
    						</td>
    					</tr>
    					<tr>
    						<th align='right'>投注详情</th>
    						<td>
    							<table class='BuyContfirmbox02' width='98%' align='center' border='0' cellspacing='0' cellpadding='0'>
    								<tbody>
    									<tr align='center' style='color:#333'>
    										<th width='10%'>场次</th>
    										<th width='25%'>主队</th>
    										<th width='25%'>客队</th>
    										<th>选项</th>
    									</tr>
    										<%
    											String manner = betMap.get("manner").toString();
    											List numArr = ide.getBetZuCaiNumber(betMap.get("info").toString(),betMap.get("strssid").toString(),betMap.get("gameCode").toString(),manner);
    											String chipinNumber = "";
    											for(int i = 0; i < numArr.size(); i++)
    											{
    												String[] viewArr = (String[])numArr.get(i);
    												chipinNumber+=viewArr[5];
    												if(viewArr[5].indexOf("9/")==-1){
    													out.println("<tr align='center'><td>"+viewArr[0]+"</td><td>"+viewArr[1]+"</td><td>"+viewArr[2]+"</td><td class='numbertd'>"+viewArr[4]+"</td></tr>");
    												}
    											}
    											if(manner.equals("2")){
    												chipinNumber = chipinNumber.substring(0,chipinNumber.length()-2);
    											}else{
    												chipinNumber = chipinNumber.substring(0,chipinNumber.length()-1);
    											}
    											//out.println(chipinNumber);
    										%>
    								</tbody>
    							</table>
    						</td>
    					</tr>
    					<tr class="hmtr">
    						<th align='right'>购买形式</th>
    						<td align='left'>
	    						<p>
	    							我要提成：
	    							<select id='comm'>
	    							  	<option value='0'>0</option>
	    							  	<option value='1'>1</option>
	    							  	<option value='2'>2</option>
	    							  	<option value='3'>3</option>
	    							  	<option value='4' selected='selected'>4</option>
	    							  	<option value='5'>5</option>
	    							  	<option value='6'>6</option>
	    							  	<option value='7'>7</option>
	    							  	<option value='8'>8</option>
	    							</select>
	    							  % <font color='#666666' style='margin-left:10px;'>注：只有方案盈利，发起人才能享受盈利部分的提成。</font>
	    						</p>
	    						<p>我要认购:<input type='text' name='sbCopies' size='3'  class='t_input' id='sbConpies' value='<%=yesMoney%>' />元 <span class='tips_sp' id='uRgE'>您至少要认购1元</span>
    							<p><input type='checkbox' name='downside' id='downside' />我要保底:<input type='text' name='side' class='t_input' size='3' id='side' value='0' disabled=true />元 <span class='tips_sp' id='baodi'>您至少要保底1元</span></p>
    							<p><font color='#666666'>[注]冻结资金将在网站截止销售时，根据该方案的销售情况，返还到您的预付款中。</font></p>
	    						<p>
	    							是否公开:
	    							<input type="radio" name="gk" id="gk0"  class="m_r3" value="0" onclick="getOpen()"  />公开(<font color='red'>亮单</font>)         
    				   			<input type="radio" name="gk" id="gk1" class="m_r3" value="1"  onclick="getOpen()" checked="checked"/>不公开(<font color='red'>只允许自己查看方案</font>)
	    						</p>
    						</td>
    					</tr>
    					<tr class="hmtr">
    						<th align='right'>方案宣传</th>
    						<td align='left'>
    							<p>方案标题：<input type='text' class='t_input' name='schmeTitle' id='schmeTitle' maxLength='20' value="合买中大奖,不在是梦" /><font color="#666666">最多20个字符</font></p>
    							<p>方案描述：<textarea rows='2' cols='20' maxLength='200' name='description' class='p_input'  id='description' >此单太绝,跟单必盈</textarea><font color="#666666">最多200个字符</font></p>
    						</td>
    					</tr>
    				</tbody>
    			</table>
    			<input type='hidden' name='Muliptile' value='<%=betMap.get("Muliptile")%>' />
    			<input type='hidden' name='money' 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='isopen' id="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='chipinNums' value='<%=chipinNumber%>' />
    			<input type='hidden' name='moneyFw' value='<%=betMap.get("moneyFw")%>' />
    			<input type='hidden' name='issue' value='<%=betMap.get("issue")%>' />
    			<input type='hidden' name='moneyFw' value='<%=betMap.get("moneyFw")%>' />
    			<input type='hidden' name='info' value='<%=betMap.get("info")%>' />
    			<input type='hidden' name='gameCode' value='<%=betMap.get("gameCode")%>' />
    			<input type='hidden' name='spvalue' value='<%=betMap.get("spvalue")%>' />
    			
    			<input type='hidden' name='copies' id='subcopies' value='<%=betMap.get("copies")%>' />
    			<input type='hidden' name='eachPrice' id='subeachPrice' value='<%=betMap.get("eachPrice")%>' />
    			<input type='hidden' name='payofftc' id='payofftc' value='<%=betMap.get("payofftc")%>' />
    			<input type='hidden' name='hmfaType' id='hmfaType' value='<%=betMap.get("hmfaType")%>' />
    			<input type='hidden' name='betcopies' id='betcopies' value='<%=betMap.get("betcopies")%>' />
    			<input type='hidden' name='ensures' value='<%=ensures%>' />
    			<input type='hidden' name='title' id='title' value='<%=betMap.get("title")%>' />
    			<input type='hidden' name='description' id='subdescription' value='<%=betMap.get("description")%>' />
    		</form>
    	</div>
    </div>

<%@include file='/common/footer.jsp' %>

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

