<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.letousky.lottery.delegate.CalendarTableManage"%>
<%@page import="java.util.List"%>
<%@page import="com.letousky.lottery.util.TimeUtil"%>
<%@page import="com.letousky.lottery.util.StandardFormat"%>
<%@page import="com.letousky.lottery.delegate.SelectIssueCurManage"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<link href="<%=request.getContextPath() %>/Letousky/numberLetou/css/share.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath() %>/Letousky/numberLetou/css/buyLottery.css" rel="stylesheet" type="text/css" />
<%
	CalendarTableManage ct = new CalendarTableManage();
	List list=ct.getCurSoldItems(new String[]{}, "C0026");
	Map map = new HashMap();
	for(int j=0;j<list.size();j++){
		String[] s=(String[])list.get(j);
		map.put(s[1],new String[]{s[1],s[2],s[3],TimeUtil.string2time(s[4]),StandardFormat.lotStateMap.get(s[16])});
	}
	String[] strA = new String[]{"201","110","202","204"};
	for(int i=0;i<strA.length;i++){
		String[] result=(String[])map.get(strA[i]);
		if(result==null){
			result=new String[5];
			result[0]=strA[i];//玩法代号
			result[1]="--";//期号
			result[3]="--年--月--日 --:--";//截止时间
			result[4]=StandardFormat.lotStateMap.get("-21");//销售状态
		}
		out.print("<label style='display: none; margin:6px 0px 0px 5px;float: left;' id='timeId"+result[0]+"'>"+result[3]+"</label>");
		out.print("<label style='display: none; margin:6px 0px 0px 5px;float: left;' id='stateId"+result[0]+"'>"+result[4]+"</label>");
		out.print("<label style='display: none; margin:6px 0px 0px 5px;float: left;' id='issue"+result[0]+"'>"+result[1]+"</label>");
	}
%>
<div id="bets" style="display: none;">2</div>
<script type="text/javascript">
var playId;
function changeMenu(_self){
	var lis=_$('uMenu').getElementsByTagName('li');
	for(var i=0;i<lis.length;i++){
		if(_self==i){
			lis[i].className="menuSpanOver";continue;
		}
		lis[i].className="menuSpan";
	}
}
</script>
<div class="buyLottery">
	<div class="buyLottery1">
		<div style="float: left;font-size: 12px;font-weight: bold;line-height: 31px; width:80px; color:#132D61;"> | 快速代购</div>
		<ul id="uMenu">
		<li class="menuSpanOver" onclick="clearTimeout(playId);_$('frm').src='<%=request.getContextPath() %>/Letousky/vote/ssq/buy/ssq_buy.jsp?wagerType=onlyType';playId=setTimeout('changeMenu(0);',1);">双色球</li>
		<li class="menuSpan" onclick="clearTimeout(playId);_$('frm').src='<%=request.getContextPath()%>/Letousky/vote/dlt/buy/dlt_buy.jsp?wagerType=dlt_only';playId=setTimeout('changeMenu(1);',1);">大乐透</li>
		<li class="menuSpan" onclick="clearTimeout(playId);_$('frm').src='<%=request.getContextPath()%>/Letousky/vote/3d/buy/3d_buy.jsp?wagerType=3d_only';playId=setTimeout('changeMenu(2);',1);">福彩3D</li>
		<!--  <li class="menuSpan" onclick="clearTimeout(playId);_$('frm').src='<%=request.getContextPath()%>/Letousky/vote/szfc/buy/szfc_buy.jsp?wagerType=szfc_only';playId=setTimeout('changeMenu(3);',1);">深圳风采</li></ul> --> 
	</div><!-- buyLottery1 -->
	<div class="buyLottery2">
		<iframe id="frm" width="100%" height="100%" src="<%=request.getContextPath()%>/Letousky/vote/ssq/buy/ssq_buy.jsp?wagerType=onlyType" scrolling="no" frameborder="0" marginwidth="0"/></iframe>
	</div>
</div><!-- buyLottery -->