// Colonne suivante : Equipe qui se déplace if ($pronosticOrdi == '2' or $pronosticOrdi == 'N') { echo "<td class=\"eqg pronostic \">" . $equipev . "</td>\n"; } else { echo "<td class=\"eqg\">" . $equipev . "</td>\n"; } //on affiche les répartitions if ($repartition && $stat == 'O') { $match = $repartition[$compteur]; $choix1 = $match['choix1']; $choixN = $match['choixN']; $choix2 = $match['choix2']; $choix1 = str_replace("td", "td id=repartition ", $choix1); $choixN = str_replace("td", "td id=repartition ", $choixN); $choix2 = str_replace("td", "td id=repartition ", $choix2); $prono = getPronosticNumero($pronostic, $i); if ($prono == "1") { $choixN = str_replace("vert", "gris", $choixN); $choixN = str_replace("jaune", "gris", $choixN); $choixN = str_replace("rouge", "gris", $choixN); $choix2 = str_replace("vert", "gris", $choix2); $choix2 = str_replace("jaune", "gris", $choix2); $choix2 = str_replace("rouge", "gris", $choix2); } if ($prono == "N") { $choix1 = str_replace("vert", "gris", $choix1); $choix1 = str_replace("jaune", "gris", $choix1); $choix1 = str_replace("rouge", "gris", $choix1); $choix2 = str_replace("vert", "gris", $choix2); $choix2 = str_replace("jaune", "gris", $choix2); $choix2 = str_replace("rouge", "gris", $choix2);
function getPronosticEstJoue($pronostic, $i, $chaineaRechercher) { if ($pronostic) { // Lecture des pronostics du joueur $pronostic = getPronosticNumero($pronostic, $i); // Recherche $pos = strpos($pronostic, $chaineaRechercher); if (is_int($pos) == false) { return false; } else { return true; } } return false; }
// $pronostic=getPronosticJoueur($joueur_id,$jeu_id); $pronostic = extraitPronosticJoueur($ListeCompletPronostic, $joueur_id); $flash = $pronostic["flash"]; $nbResultats = 0; $nbResultats7 = 0; $nbBonResultats = 0; $NbMatchsJoues = 0; for ($i = 1; $i <= $nbMatchsDeCeJeu; $i++) { $resultatJeu = getResultatNumero($Resultat, $i); if ($resultatJeu) { $nbResultats = $nbResultats + 1; if ($i <= 7) { $nbResultats7 = $nbResultats7 + 1; } } $pronosticJeu = getPronosticNumero($pronostic, $i); if ($pronosticJeu) { $NbMatchsJoues++; } $posresultat = isResultatBon($pronosticJeu, $resultatJeu); if ($posresultat) { $nbBonResultats++; } } /* if ($NbMatchsJoues!=0) $moyenne=round(($nbBonResultats/$NbMatchsJoues*100),0); else $moyenne=""; */ // $moyenne=$ListeresultatOk[$i]/$NbMatchsJoues[$i]*100;