<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>购彩合买方案</title>

<link href="css/hemaifangan.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	//var goucaihemaifanganUrl="<%=request.getContextPath()%>/CYHMAction.do?action=CYHMListPageAjax&lotName=";//全部
	  var goucaihemaifanganUrl="<%=request.getContextPath()%>/CYHMAction.do?action=CYHMListPageIndex1&lotName=";//全部
</script>
<script type="text/javascript" src="<%=request.getContextPath() %>/Letousky/vote/js/ExtFunction.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/Letousky/jsp/js/jq13pack.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/Letousky/jsp/js/share.js"></script>
<script type="text/javascript">window._$=function(id){return document.getElementById(id);};</script>
<script type="text/javascript" src="js/goucaihemaifangan.js"></script>
<script type="text/javascript">
function changDivLot(xname,lot,num,showNum,beforecss,aftercss) {
	try{
		for (var i = 0;i < num; i++) {
			if (i == showNum) {
				//_$(xname + i + i).style.display = 'block';
				_$(xname + i).className = beforecss;
				continue;
			}
			//_$(xname + i + i).style.display = 'none';
			_$(xname + i).className = aftercss;
		}
		//alert(goucaihemaifanganUrl+lot);
		//_$("hemai_content_list_content00").innerHTML="<div style=\"text-align:center;padding-top:30px;\">&nbsp;&nbsp;&nbsp;<img src=\"<%//=request.getContextPath() %>/Letousky/jsp/img/loading.gif\"><br/>正在载入...</div>";
		//goucaihemaifanganList(goucaihemaifanganUrl+lot);//ajax取数据，现改用iframe src
		var frm=document.getElementById('frm1');
		//alert(goucaihemaifanganUrl+lot);
		frm.src=goucaihemaifanganUrl+lot;//点击后改变src
	}catch(e){
			alert("change lot error");
		}
};
</script>
</head>
<%
     String lotName = request.getParameter("lotName");  
     String pageNum = request.getParameter("pageNum"); 
    if(lotName == null){
	    lotName = (String)request.getAttribute("lot"); 
    }
    if(pageNum==null){
       pageNum="1";
    }
    String totalPage = (String)request.getAttribute("totalPage"); 
	if(totalPage == null)
	  totalPage = "0"; 
%>
<body>
<div id="goucaihemaifangan1" class="hemaifn">
<div class="hemaifn_title">
    <div style="width:80px; text-align:center; float:left; line-height:24px; font-weight:900">| 合买方案</div>
	<div class="hemai_content_title">
			<div class="hemai_content_title_list" id="hemai_content_title_list">
				<ul class="title_list">
					<li id="hemai_content_list_content0" onclick="changDivLot('hemai_content_list_content','all','11',0,'beforecss','aftercss')" class="beforecss">全部</li>
					<li id="hemai_content_list_content1" onclick="changDivLot('hemai_content_list_content','201','11',1,'beforecss','aftercss')" class="aftercss">双色球</li>
					<li id="hemai_content_list_content2" onclick="changDivLot('hemai_content_list_content','110','11',2,'beforecss','aftercss')" class="aftercss">大乐透</li>
					<li id="hemai_content_list_content7" onclick="changDivLot('hemai_content_list_content','105','11',7,'beforecss','aftercss')" class="aftercss">排列三</li>
					<li id="hemai_content_list_content8" onclick="changDivLot('hemai_content_list_content','202','11',8,'beforecss','aftercss')" class="aftercss">福彩3D</li>
					<li id="hemai_content_list_content3" onclick="changDivLot('hemai_content_list_content','205','11',3,'beforecss','aftercss')" class="aftercss">七乐彩</li>
					<!--  <li id="hemai_content_list_content4" onclick="changDivLot('hemai_content_list_content','104','11',4,'beforecss','aftercss')" class="aftercss">36选7</li>
					<li id="hemai_content_list_content5" onclick="changDivLot('hemai_content_list_content','204','11',5,'beforecss','aftercss')" class="aftercss">深圳风采</li>-->
					<li id="hemai_content_list_content6" onclick="changDivLot('hemai_content_list_content','203','11',6,'beforecss','aftercss')" class="aftercss">22选5</li>
					<li id="hemai_content_list_content9" onclick="changDivLot('hemai_content_list_content','108','11',9,'beforecss','aftercss')" class="aftercss">七星彩</li>
					<li id="hemai_content_list_content10" onclick="changDivLot('hemai_content_list_content','109','11',10,'beforecss','aftercss')" class="aftercss">排列五</li>
				</ul>
			</div>
		</div>
		</div>
	<div class="hemai_content">
		
		<div class="hemai_content_list" id="hemai_content_list0">
			<ul class="title_list_nolink azurybackgroundcolor"><li class="fanganbiaoti">方案标题</li><li class="faqiren">发起人</li><li class="fangshi">方式</li><li class="zhanji">战绩</li><li class="faqishijian">发起时间</li><li class="zongjine">总金额</li><li class="meigujine">每股金额</li><li class="fenshu">份数</li><li class="yirengoufenshu">已认购</li><li class="jindu">进度</li><li class="haoma">号码</li><li class="ruhuo">入伙</li></ul>
			<div id="hemai_content_list_content00">
				<iframe id="frm1" width="100%" height="100%" src="<%=request.getContextPath()%>/CYHMAction.do?action=CYHMListPageIndex1&lotName=" scrolling="no" frameborder="0" marginwidth="0"/></iframe>
			</div>
		</div>
		<div id="hemai_content_page"></div>
	<div style="font: 0px/0px sans-serif;clear: both;display: block"> </div>
	</div>
</div>
</body>
<script>
//先取所有种玩法的合买方案
//现在没用ajax取list,改用iframe,因为下面的分页导航不好做
//function goucaihemaifanganList(Url){
	//var a = new MyAjax();
	//a.sendPostRequest(null,Url, getGoucaihemaifanganCallback.createDelegate(a));
//}
//goucaihemaifanganList(goucaihemaifanganUrl);
</script>
</html>
