<%@ page session="true" contentType="text/html; charset=UTF-8" import="com.sportwetten.mcbet.util.*, com.sportwetten.mcbet.misc.Languages, com.sportwetten.mcbet.properties.*, com.sportwetten.mcbet.localization.BundleManager" %> <% String domain = Settings.getDomain(request); String curLang = LangUtils.getCurrentLang(request); String curDate = DateTimeUtils.getTopTime( curLang, "dd/MM/yyyy", domain); String showall=(String)session.getAttribute("show"); // // Initialization of Bundle // BundleManager bundle = new BundleManager( request, BundleManager.MCBET_BUNDLE_NAME ); %> var bgColor1 = "color1c"; var bgColor2 = "color2"; var classStr = bgColor1; function showLeagueHeader(league) { var out = ""; var showall = "<%=showall%>"; // switch additional title in header switch (what) { case 'tod': message = "<%=bundle.getString( "LEAG_007_0004" )%>"; break; case 'otr': message = "<%=bundle.getString( "LEAG_007_0005" )%>"; break; case 'day1': message = "<%=bundle.getString( "LEAG_007_0011" )%>"; break; case 'day2': message = "<%=bundle.getString( "LEAG_007_0012" )%>"; break; case 'day3': message = "<%=bundle.getString( "LEAG_007_0013" )%>"; break; case 'day4': message = "<%=bundle.getString( "LEAG_007_0014" )%>"; break; case 'day5': message = "<%=bundle.getString( "LEAG_007_0015" )%>"; break; case 'day6': message = "<%=bundle.getString( "LEAG_007_0016" )%>"; break; case 'day7': message = "<%=bundle.getString( "LEAG_007_0017" )%>"; break; default: message = "<%=bundle.getString( "LEAG_007_0006" )%>"; break; } out += ""; out += " "; out += " "; out += " "; out += " "; out += " "; out += " "; out += "
/images/edge1.gif\" alt=\"\" height=\"20\" width=\"6\" />" + league[0] + "" + message + " /images/space.gif\" border=\"0\" width=\"5\" height=\"1\" alt=\"\" />
"; out += ""; out += " "; out += " "; out += " "; out += " "; out += " "; out += " "; out += " "; out += " "; out += " "; out += " "; out += " "; out += " "; out += "
/images/space.gif\" alt=\"\" height=\"1\" width=\"1\" />
/images/space.gif\" border=\"0\" width=\"5\" height=\"1\" alt=\"\" />" + league[1] + "/images/space.gif\" alt=\"\" height=\"30\" width=\"1\" />"; out += " "; out += " "; //if (what != 'otr' && showall == 'all') { // out += " "; //} out += " "; if (league[8] == 0 && sport == 1195196) { out += " "; } out += " "; out += "
/images/icons/dateorder.gif\" title=\"<%=bundle.getString( "QTP_001_0002" )%>\" alt=\"<%=bundle.getString( "QTP_001_0002" )%>\" height=\"9\" width=\"10\" border=\"0\" hspace=\"3\" vspace=\"3\" />/images/icons/printversion.gif\" border=\"0\" width=\"10\" height=\"9\" title=\"<%=bundle.getString( "RES_011_0005" )%>\" alt=\"<%=bundle.getString( "RES_011_0005" )%>\" align=\"middle\" hspace=\"3\" vspace=\"3\"/>/images/icons/statistic.gif\" title=\"<%=bundle.getString( "LEAG_007_0007" )%>\" alt=\"<%=bundle.getString( "LEAG_007_0007" )%>\" height=\"8\" width=\"9\" border=\"0\" hspace=\"3\" vspace=\"3\" />
"; out += "
/images/space.gif\" border=\"0\" width=\"1\" height=\"1\" alt=\"\" />
/images/space.gif\" border=\"0\" width=\"5\" height=\"1\" alt=\"\" />"; return out; } function rf(i) { i.c = i.checked } function rc(i) { if (i.c) i.c = i.checked = false else i.c = true } function showAsianHc( hcValue ) { if ( hcValue != '' && parseFloat(hcValue) > 0 ) { return "+" + hcValue; } return hcValue; } function showLeague(league, matches) { var show = 0; var entries = 13; // if you add an oddtype increment this value and showmorelink var isDefault = league[6]; var isOutright = league[8]; var odds; var rows = 0; var out = ""; //debug(matches); //document.writeln("oddType="+oddType); switch(oddType) { case "1X2": league[9] = "<%=bundle.getString( "RES_017_0038")%>"; break; case "Double Chance": league[9] = "<%=bundle.getString( "RES_017_0041")%>"; break; case "Asians": league[9] = "<%=bundle.getString( "RES_017_0039")%>"; break; case "Handicaps": league[9] = "<%=bundle.getString( "RES_017_0040")%>"; break; case "Half Time": league[9] = "<%=bundle.getString( "RES_017_0044")%>"; break; case "2nd HalfTime": league[9] = "<%=bundle.getString( "RES_017_0117")%>"; break; case "Under/Over": league[9] = "<%=bundle.getString( "RES_017_0042")%>"; break; case "Total": league[9] = "<%=bundle.getString( "RES_017_0043")%>"; break; default: league[9] = "<%=bundle.getString( "RES_017_0038")%>"; break; } //document.write(checkLeague(league)); if (checkLeague(league)) { show = 1; } if (show == 1) { league[8] = 0; out += showLeagueHeader(league); out += ""; out += " "; out += " "; out += " "; out += " "; if (oddType == "Double Chance") { out += " "; } else if (oddType == "Asians") { out += " "; out += " "; } else if (oddType == "Handicaps") { out += " "; out += " "; } else if (oddType == "Under/Over") { out += " "; } else if (oddType == "Total") { out += " "; out += " "; } else { out += " "; } if (oddType == "Double Chance") { out += " "; } else if (oddType == "Asians") { out += " "; } else if (oddType == "Under/Over") { out += " "; out += " "; } else if (oddType == "Total") { out += " "; } else { out += " "; } if (oddType == "Double Chance") { out += " "; } else if (oddType == "Under/Over") { out += " "; } else if (oddType == "Total") { out += " "; } else { out += " "; } out += " "; out += " "; for (i = 0; i < matches.length; i+=entries) { //document.write("checkMatch="+checkMatch(checkMatch(matches[i+2], isOutright)+"
"); switch(oddType) { case '1X2': odds = matches[i+4].split("|"); break; case 'Asians': odds = matches[i+5].split("|"); break; case 'Handicaps': odds = matches[i+6].split("|"); break; case 'Double Chance': odds = matches[i+7].split("|"); break; case 'Under/Over': odds = matches[i+8].split("|"); break; case 'Total': odds = matches[i+9].split("|"); break; case 'Half Time': odds = matches[i+10].split("|"); break; case '2nd HalfTime': odds = matches[i+11].split("|"); break; default: odds = matches[i+4].split("|"); break; } if (odds[1] != '' && odds[1] != '1.00') { if (checkMatch(matches[i+2], isOutright)) { out += " "; out += " "; out += " "; out += " "; if (oddType == 'Asians' || oddType == 'Handicaps' || oddType == 'Total' || oddType == 'Under/Over') { if (odds[1] != '' && odds[1] != '1.00') { if (oddType == 'Asians') { out += ""; } else { out += ""; } } else { out += " "; } } out += " "; if (oddType == 'Asians') { // if Asian Handicap show here second handicap else show draw odd out += " "; } else { out += " "; } out += " "; out += showMoreLink(matches[i+12], league[2], matches[i]); // more, leagueid, eventid out += " "; classStr = switchColor(classStr); rows++; } } } if (rows > 0) { out += showLeagueFooter(show, isAcceptBets); document.write(out); return 1; } else { return 0; } } else { return 0; } } // outrights function showOutright(league, matches, odds) { var show = 0; var isDefault = league[6]; var isOutright = league[8]; var row = 0; var out = ""; switch(oddType) { case '1X2': league[9] = "<%=bundle.getString( "RES_017_0038")%>"; break; case 'Double Chance': league[9] = "<%=bundle.getString( "RES_017_0041")%>"; break; case 'Asians': league[9] = "<%=bundle.getString( "RES_017_0039")%>"; break; case 'Handicaps': league[9] = "<%=bundle.getString( "RES_017_0040")%>"; break; case 'Half Time': league[9] = "<%=bundle.getString( "RES_017_0044")%>"; break; case 'Under/Over': league[9] = "<%=bundle.getString( "RES_017_0042")%>"; break; case 'Total': league[9] = "<%=bundle.getString( "RES_017_0043")%>"; break; default: league[9] = "<%=bundle.getString( "RES_017_0038")%>"; break; } if (checkLeague(league)) { show = 1; } if (show == 1) { out += showLeagueHeader(league); out += "
<%=bundle.getString( "SP_018_0005")%>
/images/space.gif\" alt=\"\" height=\"1\" width=\"30\" border=\"0\" />
<%=bundle.getString( "SP_018_0004")%>S1XAHC11HC1<%=bundle.getString( "RES_017_0071")%><%=bundle.getString( "RES_017_0071")%><%=bundle.getString( "RES_017_0073")%>1X2AHC2<%=bundle.getString( "RES_017_0073")%> <%=bundle.getString( "RES_017_0080")%>X12<%=bundle.getString( "RES_017_0075")%><%=bundle.getString( "RES_017_0075")%>2 
" + matches[i] + "" + matches[i+3] + "   " + matches[i+1].replace(/"/g, "'") + "" + getCombination(odds[0]) + "" + showAsianHc(odds[4]) + "" + odds[4] + " "; if ( odds[1] != '' && odds[1] != '1.00' ) { out += odds[1]; out += "
"; if ( isAcceptBets == true ) { name = "bet" + matches[i]; value = league[2] + "|" + matches[i] + "|" + matches[i+1].replace(/"/g, "'") + "|" + oddType + "|" + league[9]; if (oddType == 'Double Chance') { value += "|1X|1X|" + odds[1] + "|1"; } else if (oddType == 'Under/Over') { value += "|Under|<%=bundle.getString("RES_017_0073")%>|" + odds[1] + "|1|" + odds[4] + "|Total:" + odds[4]; } else if (oddType == 'Handicaps') { name += "1"; var handicap = odds[4].split(":"); value += "|1|1|" + odds[1] + "|1|" + odds[4] + "|Part1:" + handicap[0] + ":Part2:" + handicap[1]; } else if (oddType == 'Half Time') { name += "1"; value += "|1|1|" + odds[1] + "|1"; } else if (oddType == '2nd Half Time') { name += "1"; value += "|1|1|" + odds[1] + "|1"; } else if (oddType == 'Total') { name += "1"; value += "|Under|<%=bundle.getString("RES_017_0073")%>|" + odds[1] + "|1|" + odds[4] + "|Total:" + odds[4]; } else if (oddType == 'Asians') { var handicap = odds[4].split(":"); value += "|1|1|" + odds[1] + "|1|" + odds[4] + "|h1:" + odds[4] + ":h2:" + odds[2]; } else if (oddType == '1X2') { name += "1"; value += "|1|1|" + odds[1] + "|1"; } out += ""; } } else { out += "/images/space.gif\" border=\"0\" width=\"1\" height=\"33\" alt=\"\" />"; } out += "
" + showAsianHc(odds[2]) + ""; if ( odds[2] != '' && odds[2] != '1.00' ) { out += odds[2]; out += "
"; if ( isAcceptBets == true ) { name = "bet" + matches[i]; value = league[2] + "|" + matches[i] + "|" + matches[i+1].replace(/"/g, "'") + "|" + oddType + "|" + league[9]; if (oddType == 'Double Chance') { value += "|X2|X2|" + odds[2] + "|1"; } else if (oddType == 'Handicaps') { name += "2"; value += "|X|X|" + odds[2] + "|1|" + odds[4] + "|Part1:" + handicap[0] + ":Part2:" + handicap[1]; } else if (oddType == 'Half Time') { name += "2"; value += "|X|X|" + odds[2] + "|1"; } else if (oddType == '2nd Half Time') { name += "2"; value += "|X|X|" + odds[2] + "|1"; } else if (oddType == 'Total') { name += "2"; value += "|Equal|<%=bundle.getString("RES_017_0080")%>|" + odds[2] + "|1|" + odds[4] + "|Total:" + odds[4]; } else if (oddType == '1X2') { name += "2"; value += "|X|X|" + odds[2] + "|1"; } out += ""; } } else { out += "/images/space.gif\" border=\"0\" width=\"1\" height=\"33\" alt=\"\" />"; } out += "
"; if ( odds[3]!= '' && odds[3] != '1.00' ) { out += odds[3]; out += "
"; if ( isAcceptBets == true ) { name = "bet" + matches[i]; value = league[2] + "|" + matches[i] + "|" + matches[i+1].replace(/"/g, "'") + "|" + oddType + "|" + league[9]; if (oddType == 'Double Chance') { value += "|12|12|" + odds[3] + "|1"; } else if (oddType == 'Under/Over') { value += "|Over|<%=bundle.getString("RES_017_0075")%>|" + odds[3] + "|1|" + odds[4] + "|Total:" + odds[4]; } else if (oddType == 'Handicaps') { name += "3"; value += "|2|2|" + odds[3] + "|1|" + odds[4] + "|Part1:" + handicap[0] + ":Part2:" + handicap[1]; } else if (oddType == 'Half Time') { name += "3"; value += "|2|2|" + odds[3] + "|1"; } else if (oddType == '2nd Half Time') { name += "3"; value += "|2|2|" + odds[3] + "|1"; } else if (oddType == 'Total') { name += "3"; value += "|Over|<%=bundle.getString("RES_017_0075")%>|" + odds[3] + "|1|" + odds[4] + "|Total:" + odds[4]; } else if (oddType == 'Asians') { var handicap = odds[4].split(":"); value += "|2|2|" + odds[3] + "|1|" + odds[2] + "|h1:" + odds[4] + ":h2:" + odds[2]; } else if (oddType == '1X2') { name += "3"; value += "|2|2|" + odds[3] + "|1"; } out += ""; } } else { out += "/images/space.gif\" border=\"0\" width=\"1\" height=\"33\" alt=\"\" />"; } out += "
"; out += " "; out += " "; out += " "; out += " "; out += " "; out += " "; out += " "; out += " "; for ( i = 0; i < odds.length; i+= 6 ) { out += " "; out += " "; out += " "; out += " "; out += " "; classStr = switchColor(classStr); row++; } out += "
"; out += " <%=bundle.getString( "SP_018_0005")%> " + matches[0] + " <%=bundle.getString( "SP_018_0004")%>: " + matches[2] + "
"; out += " " + matches[1] + "  (" + getCombination(league[7]) + ")
/images/space.gif\" alt=\"\" height=\"5\" width=\"1\" border=\"0\" />
"; out += "
<%=bundle.getString( "SP_018_0005" )%>
/images/space.gif\" alt=\"\" height=\"1\" width=\"30\" border=\"0\" />
/images/space.gif\" alt=\"\" height=\"1\" width=\"1\" border=\"0\" />/images/space.gif\" alt=\"\" height=\"1\" width=\"80\" border=\"0\" />
" + odds[i] + " " + odds[i+1] + ""; out += " "; out += " "; out += " "; out += " "; out += " "; out += "
"; if ( isAcceptBets == true ) { var name = "bet1" + odds[i+2]; var value = odds[i+4]; out += " "; } out += "" + odds[i+3] + "
"; out += "
"; out += "
/images/space.gif\" border=\"0\" width=\"1\" height=\"5\" alt=\"\" />
"; out += " "; out += " "; out += " "; out += " "; out += " "; out += " "; out += "
\" class=\"button_reset\" /> \" class=\"button_submit\" onclick=\"this.form.submit(); clearSelectedItems(this.form)\" />
"; out += "
/images/space.gif\" border=\"0\" width=\"1\" height=\"1\" alt=\"\" />
"; out += "
"; if (row > 0 && oddType == '1X2') { document.write(out); return 1; } else { return 0; } } else { return 0; } } function showNextFive(matches){ var show = 0; var odds; //debug(matches); if (matches.length != 0) { document.writeln(""); document.writeln(" "); document.writeln(" "); if (mostPlayed==1) document.writeln(" "); else document.writeln(" "); <%-- <%=bundle.getString( "SP_018_0015" )%> --%> document.writeln(" "); document.writeln("
/images/edge1.gif\" alt=\"\" height=\"20\" width=\"6\" />
<%=bundle.getString( "SP_018_0017" )%>
/images/space.gif\" alt=\"\" height=\"1\" width=\"360\" />
<%=bundle.getString( "SP_018_0015" )%>
/images/space.gif\" alt=\"\" height=\"1\" width=\"360\" />
"); document.writeln(""); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln("
/images/space.gif\" alt=\"\" height=\"1\" width=\"1\" />
/images/space.gif\" alt=\"\" height=\"1\" width=\"5\" />
"); document.writeln(" /images/space.gif\" alt=\"\" height=\"5\" width=\"1\" />
"); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); for (i = 0; i < matches.length; i+=8) { odds = matches[i+6].split("|"); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.writeln(" "); document.write(" "); document.write(" "); document.write(" "); document.writeln(" "); document.writeln(" "); classStr = switchColor(classStr); } out = showLeagueFooter(1, isAcceptBets); document.write(out); } }
<%=bundle.getString( "SP_018_0005")%>
/images/space.gif\" alt=\"\" height=\"1\" width=\"30\" border=\"0\" />
<%=bundle.getString( "SP_018_0004")%>S1X2 
" + matches[i] + "" + matches[i+3] + "   " + matches[i+1].replace(/"/g, "'") + "" + getCombination(odds[0]) + ""); if ( (odds[1] != '' && odds[1] != '1.00') ) { document.write(odds[1]); document.write("
"); if ( isAcceptBets == true ) { var name = "bet" + matches[i] + "1"; var value = matches[i+4] + "|" + matches[i] + "|" + matches[i+1].replace(/"/g, "'") + "|" + "1X2|1X2|1|1|" + odds[1] + "|1"; document.write(""); } } else { document.write("/images/space.gif\" border=\"0\" width=\"1\" height=\"33\" alt=\"\" />"); } document.writeln("
"); if ( odds[2] != '' && odds[2] != '1.00' ) { document.write(odds[2]); document.write("
"); if ( isAcceptBets == true ) { var name = "bet" + matches[i] + "2"; var value = matches[i+4] + "|" + matches[i] + "|" + matches[i+1].replace(/"/g, "'") + "|" + "1X2|1X2|X|X|" + odds[2] + "|1"; document.write(""); } } else { document.write("/images/space.gif\" border=\"0\" width=\"1\" height=\"33\" alt=\"\" />"); } document.writeln("
"); if ( odds[3] != '' && odds[3] != '1.00' ) { document.write(odds[3]); document.write("
"); if ( isAcceptBets == true ) { var name = "bet" + matches[i] + "3"; var value = matches[i+4] + "|" + matches[i] + "|" + matches[i+1].replace(/"/g, "'") + "|" + "1X2|1X2|2|2|" + odds[3] + "|1"; document.write(""); } } else { document.write("/images/space.gif\" border=\"0\" width=\"1\" height=\"33\" alt=\"\" />"); } document.writeln("
<%=bundle.getString( "SP_018_0016")%>