get("countrycode"); $compcode = $request->get("compcode"); $teamid = $request->get("teamid"); $parentcode = $request->get("parentcode"); if ( (ereg("^[a-z0-9\-\_]+$", $countrycode)) && (ereg("^[a-z0-9\-\_]+$", $compcode)) && ($comparr = championat_code($countrycode, $compcode)) ) { $GLOBALVAR["statcountry"] = $countrycode; //variable to send to news block $champid = $comparr["champ_id"]; $champname = $comparr["champ_name"]; $champcountry = $comparr["country_name"]; $champcountryid = $comparr["country_id"]; $champdivision = $comparr["champ_division"]; $champtype = $comparr["cup"]; $subchamps = $comparr["sub_champs"]; $forum_url = $comparr["forum_url"]; //parent tournir if ( (ereg("^[a-z0-9\-\_]+$", $parentcode)) && ($parentarr = championat_code($countrycode, $parentcode)) ) { $parentid = $parentarr["champ_id"]; $parentname = $parentarr["champ_name"]; $parentsubchamps = $parentarr["sub_champs"]; } else { $parentid = 0; $parentname = ""; } $players = get_players($champid, $teamid, $champcountryid); $team = get_teaminfo($champid, $teamid); $stadium = $team[0][stadium]; $coach = $team[0][coach]; $autogoals_opp = get_opp_autogoals_count_query($champcountryid, $champid, $teamid); } else { $error = 1; /* END OF MODULE-DEPENDENT FUNCTION CALLS */ /* START OF BLOCKS DEFINITION */ //css styles for stat tpl_block_start("addstyle"); print ""; tpl_block_end(); //news block tpl_block_start("crblock2"); @include("_news_block.inc.php"); tpl_block_end(); tpl_block_start("pagetitle"); //page title here print $team[0]["team_name"] . ". Информация о команде " . " - $champname ($champcountry, $champdivision) - Статистика"; tpl_block_end(); tpl_block_start("cenblock2"); //main central block } ?> 0) { ?>
- Cтадии турнира
Финальная (сводная) стадия
0) print $parentname . " - "; ?>
Эмблема <?php print $champname; ?>
Информация и статистика команды в этом турнире

\n"; print "
\""
"; print "
"; print "
" . $team[0]["team_name"] . "
"; if ($team[0]["team_site"] != "") { print "Сайт: "; print "" . $team[0]["team_site"] . "
"; print "
"; } for ($si = 0; $si < count($stadium); $si++) { if (!empty($stadium[$si])) { print "Домашний стадион:
"; print $stadium[$si]["stadium_name"]; print " (" . $stadium[$si]["city_name"]; if ($stadium[$si]["max_visitors"] > 0) { print ", вместимость: "; print $stadium[$si]["max_visitors"]; } print ")
"; } } print "
\n"; print "
\n"; if (count($coach) > 0) print "
Главный тренер
"; for ($si = 0; $si < count($coach); $si++) { if (!empty($coach[$si])) { print "
"; print "
"; print "\"\" "; print $coach[$si]["tr_firstname"] ." ". $coach[$si]["tr_lastname"]; print "
"; print "
"; print "Дата рождения: "; $plb = explode("-", $coach[$si]["tr_birthday"]); $plb_s = $plb[2].".".$plb[1].".".$plb[0]; print $plb_s; print "
"; print "Период работы в команде: "; $plb = explode("-", $coach[$si]["tt_from"]); $plb_s = $plb[2].".".$plb[1].".".$plb[0]; print $plb_s." - "; if ($coach[$si]["tt_to"] == '9999-99-99') print "по настоящее время"; else { $plb = explode("-", $coach[$si]["tt_to"]); $plb_s = $plb[2].".".$plb[1].".".$plb[0]; print $plb_s; } print "
\n"; print "
"; } } // squad if (count($players)>0) { print "
Состав
"; print "
\n"; print "\n"; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print "\n"; $allmissedgoals = 0; $allgoals = 0; $allpenalty = 0; $allautogoals = 0; $allcards0 = 0; $allcards1 = 0; $allcards2 = 0; for ($j = 0; $j < count($players); $j++) { $prow = $players[$j]; print ""; print ""; print ""; // расчет возраста $plb = explode("-", $prow["pl_birthday"]); $plb_s = $plb[2] . "." . $plb[1] . "." . $plb[0]; print ""; print ""; // for goalkeeper if ($prow["role_id"] == 4) { print ""; $allmissedgoals += count($prow["minus"]); } else print ""; // goals if (count($prow["penalty"]) > 0) print ""; else print ""; print ""; print ""; print ""; print ""; print ""; print "\n"; // counting totals $allgoals += count($prow["goals"]); $allpenalty += count($prow["penalty"]); $allautogoals += count($prow["autogoals"]); $allcards0 += $prow["cards0"]; $allcards1 += $prow["cards1"]; $allcards2 += $prow["cards2"]; } /* autogoals */ if (count($autogoals_opp) > 0) print "\n"; for ($j=0; $j "; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print "\n"; $allgoals = $allgoals + $autogoals_opp[$j]["goals_count"]; } /* totals */ print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print "\n"; print "
АмпСтрИгрокД/рМатчипГ/СГ/пПаГ\"ж\"\"2ж\"\"к\"
" . getVisitorPlayerType($prow["role_id"]) . "\"\"" . $prow["pl_lastname"] . " " . $prow["pl_firstname"] . "$plb_s" . count($prow["games"]) . "/" . count($prow["changes"]) . "" . count($prow["minus"]) . "/" . (count($prow["games"]) + count($prow["changes"]) - count($prow["aregoals"])) . " " . count($prow["goals"]) . "/" . count($prow["penalty"]) . "" . count($prow["goals"]) . "" . count($prow["assist"]) . "" . count($prow["autogoals"]) . "" . $prow["cards0"] . "" . $prow["cards2"] . "" . $prow["cards1"] . "
Автоголы игроков команд-соперниц:
"; print $autogoals_opp[$j]["pl_lastname"] . " " . $autogoals_opp[$j]["pl_firstname"] . " (" . $autogoals_opp[$j]["team_name"] . ")"; print "  " . $autogoals_opp[$j]["goals_count"] . "     
Вся команда $allmissedgoals" . $allgoals; if ($allpenalty>0) print "/" . $allpenalty; print " " . $allautogoals . "" . $allcards0 . "" . $allcards2 . "" . $allcards1 . "
" . "Амп - амплуа
" . "Стр - страна (гражданство)
" . "Д/р - дата рождения
" . "Матчи - выход в осн. составе/выход на замену
" . "пГ/С - пропущено голов/сухие матчи (для вратарей)
" . "Г/п - голы/в том числе с пенальти
" . "аГ - голы в свои ворота
" . "П - голевые передачи (пасы)
" . "\"\" - желтые карточки
" . "\"\" - красные карточки
" . "\"\" - желтая + красная карточки в одном матче
" . "
\n"; } ?>