get("countrycode"); $compcode = $request->get("compcode"); $parentcode = $request->get("parentcode"); $matchday = $request->get("matchday"); 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"]; //selection for champ tables $first_in = $comparr["first_in"]; $second_in = $comparr["second_in"] + $comparr["first_in"]; $last_preout = $comparr["last_preout"] + $comparr["last_out"]; $last_out = $comparr["last_out"]; //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 = ""; } $champalltours = tours_table($champid); $champscoredtours = active_tours_table($champid); $catcnt = count($champalltours); $cstcnt = count($champscoredtours); $scoredids = array(); for ($i=0; $i<$cstcnt; $i++) { $row = $champscoredtours[$i]; $scoredids[] = $row["id"]; } //define tour_id by its number $actualtour = $champalltours[$matchday-1]; //tour matches data $tourmatches = list_of_match_table($actualtour["id"]); $tmcnt = count($tourmatches); //tournir table after current tour $champtable = get_tournir_table_by_tour($actualtour["id"]); $ctcnt = count($champtable); } 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 $actualtour["tour_name"] . " - $champname ($champcountry, $champdivision) - Статистика"; tpl_block_end(); tpl_block_start("cenblock2"); //main central block } tpl_block_end(); tpl_block_start("cenblock4"); if ($parentid > 0) { ?>
Команды | И | В | Н | П | М | О | |
---|---|---|---|---|---|---|---|
" . ($i+1) . " | "; print "" . $row["name"] . " | "; print "" . $row["count"] . " | "; print "" . $row["win"] . " | "; print "" . $row["drawn"] . " | "; print "" . $row["defeat"] . " | "; print "" . $row["diff"] . " | "; print "" . $row["spot"] . " | "; print "