99) { if ($club1 == $n) {$est=1;$tour='cl'; if ($stage <= 8) {if ($goals1 > $goals2) {$qw = $qw+1; $points = $points+1;} elseif ($goals1 == $goals2) {$qd = $qd+1; $points = $points+0.5;} else $ql=$ql+1;} if ($stage > 8) {if ($goals1 > $goals2) {$w = $w+1; $points = $points+2;} elseif ($goals1 == $goals2) {$d = $d+1; $points = $points+1;} else $l=$l+1;} } if ($club2 == $n) {$est=1;$tour='cl'; if ($stage <= 8) {if ($goals1 < $goals2) {$qw = $qw+1; $points = $points+1;} elseif ($goals1 == $goals2) {$qd = $qd+1; $points = $points+0.5;} else $ql=$ql+1;} if ($stage > 8) {if ($goals1 < $goals2) {$w = $w+1; $points = $points+2;} elseif ($goals1 == $goals2) {$d = $d+1; $points = $points+1;} else $l=$l+1;} } if (($stage >= 13)&($ind1 == 0)) {$bonus = $bonus+4;$ind1=1;} if (($stage == 28)&($ind1 == 1)) {$bonus = $bonus+5;$ind1=2;} if (($stage == 29)&($ind1 == 2)) {$bonus = $bonus+1;$ind1=3;} if (($stage == 31)&($ind1 == 3)) {$bonus = $bonus+1;$ind1=4;} if (($stage == 35)&($ind1 == 4)) {$bonus = $bonus+1;$ind1=5;} //*****подсчет матчей клубов } } } //**********клубы-участники lc //if (($j == 2015)&(($n == 104)|($n == 48))) {$bonus = $bonus+1;} //|($n == 71)|($n == 127)($n == 82)|($n == 141)||($n == 84)|($n == 98) //if (($j == 2017)&(($n == 141)|($n == 48))) {$bonus = $bonus+1;} $ind1=0; //**************le*********************** for ($y=$y1; $y<=$y2; $y++) //**********клубы-участники le { $date=mysql_result($result10, $y, 'data'); $club1=mysql_result($result10, $y, 'club1'); $club2=mysql_result($result10, $y, 'club2'); //************************** if (($club1 == $n)|($club2 == $n)) {$ind = 2; $stage=mysql_result($result10, $y, 'stage'); $stadia=mysql_result($result4, $stage-1, 'name_eng'); $goals1=mysql_result($result10, $y, 'gol1'); $goals2=mysql_result($result10, $y, 'gol2'); //****подсчет матчей клубов if ($club1 == $n) {$est=1;$tour='el'; if ($stage <= 8) {if ($goals1 > $goals2) {$qw = $qw+1; $points = $points+1;} elseif ($goals1 == $goals2) {$qd = $qd+1; $points = $points+0.5;} else $ql=$ql+1;} if ($stage > 8) {if ($goals1 > $goals2) {$w = $w+1; $points = $points+2;} elseif ($goals1 == $goals2) {$d = $d+1; $points = $points+1;} else $l=$l+1;} } if ($club2 == $n) {$est=1;$tour='el'; if ($stage <= 8) {if ($goals1 < $goals2) {$qw = $qw+1; $points = $points+1;} elseif ($goals1 == $goals2) {$qd = $qd+1; $points = $points+0.5;} else $ql=$ql+1;} if ($stage > 8) {if ($goals1 < $goals2) {$w = $w+1; $points = $points+2;} elseif ($goals1 == $goals2) {$d = $d+1; $points = $points+1;} else $l=$l+1;} } if (($stage == 29)&($ind1 == 0)) {$bonus = $bonus+1;$ind1=3;} if (($stage == 31)&($ind1 == 3)) {$bonus = $bonus+1;$ind1=4;} if (($stage == 35)&($ind1 == 4)) {$bonus = $bonus+1;$ind1=5;} //*****подсчет матчей клубов } } //**********клубы-участники le //if (($j == 2017)&(($n == 107)|($n == 169))) {$bonus = $bonus+1;} //if ($j == 2015) // { //if (($n == 83)|($n == 98)|($n == 180)|($n == 125)|($n == 435)|($n == 13)|($n == 197)|($n == 209)|($n == 1037)|($n == 452)) {$bonus = $bonus+4;$ind1=6;} //}; //if (($n == 122)|($n == 56)|($n == 44)|($n == 48)|($n == 67)|($n == 345)|($n == 296)|($n == 84)|($n == 7)|($n == 169)|($n == 408)|($n == 182)|($n == 105)|($n == 263)|($n == 82)|($n == 141)|($n == 127)|($n == 115)|($n == 181)|($n == 126)|($n == 95)|($n == 71)) // {$qW=0;$qD=0;$qL=0;$W=0;$D=0;$L=0;$tour='CL'; //$bonus = 4;$est == 1;} //if (($goals1==99)&(($n == 82)|($n == 127)|($n == 126)|($n == 71))) {$bonus = $bonus+1;} //|($n == 95)|($n == 13)|($n == 84)|($n == 142)|($n == 435)|($n == 56)|($n == 65)|($n == 456)|($n == 107)|($n == 180)|($n == 181)|($n == 141)|($n == 115)|($n == 188)|($n == 948)|($n == 243)|($n == 122)|($n == 169)|($n == 296)|($n == 408)|($n == 83)|($n == 307)|($n == 156)|($n == 263) $points=($qw*2+$qd)/2+$w*2+$d+$bonus; if (($est == 1)|($bonus<>0)) { $qws=$qws+$qw;$qds=$qds+$qd;$qls=$qls+$ql; $ws=$ws+$w;$ds=$ds+$d;$ls=$ls+$l; $bonuss=$bonuss+$bonus;$pointss=$pointss+$points; $est=0;$tour='-';$points=0; $sw=$sw+1; } $qw=0;$qd=0;$ql=0; $ind1=0; $w=0;$d=0;$l=0;$bonus=0; //**************le*********************** } $ind = 0; }//конкретная страна $y0++; endwhile; //**********все клубы if ($j == 2017) {$sw=$kol;} $coef0 = $pointss/$sw; $coef = round($coef0, 3); if ($coef > $coef0) $coef = $coef-0.001; $sw=0; $s1617=$coef; $fl = mysql_result($result2, $country-1, 'flag'); $s0307 = $s0203+$s0304+$s0405+$s0506+$s0607; $s0408 = $s0304+$s0405+$s0506+$s0607+$s0708; $s0509 = $s0405+$s0506+$s0607+$s0708+$s0809; $s0610 = $s0506+$s0607+$s0708+$s0809+$s0910; $s0711 = $s0607+$s0708+$s0809+$s0910+$s1011; $s0812 = $s0708+$s0809+$s0910+$s1011+$s1112; $s0913 = $s0809+$s0910+$s1011+$s1112+$s1213; $s1014 = $s0910+$s1011+$s1112+$s1213+$s1314; $s1115 = $s1011+$s1112+$s1213+$s1314+$s1415; $s1216 = $s1112+$s1213+$s1314+$s1415+$s1516; print "\n\n"; $z++; endwhile; mysql_close(); ?>
  
 







Экстремальный портал