STATISTICS - COUNTRY REPRESENTATIVES - $karta
$virsraksta_valsts html; $arrCountryParticipants = []; $lines = array_map(function($v){ return "" . explode("|~|", $v)[1]; }, file($path)); foreach($lines as $line) { $buffer = $line; include "pieteikums/includes/list.txt"; if ($dall_valsts == $nation) { array_push($arrCountryParticipants,$buffer); } } $lines = array_map(function($v){ return "" . explode("|~|", $v)[1]; }, file($path2)); foreach($lines as $line) { $buffer = $line; include "pieteikums/includes/list.txt"; if ($dall_valsts == $nation) { array_push($arrCountryParticipants,$buffer); } } $lines = array_map(function($v){ return "" . explode("|~|", $v)[1]; }, file($path3)); foreach($lines as $line) { $buffer = $line; include "pieteikums/includes/list.txt"; if ($dall_valsts == $nation) { array_push($arrCountryParticipants,$buffer); } } echo ""; setlocale(LC_ALL, 'lv_LV.UTF-8'); sort($arrCountryParticipants, SORT_LOCALE_STRING); foreach($arrCountryParticipants as $line) { $buffer = $line; include "pieteikums/includes/list.txt"; include "pieteikums/includes/teamstatus.php"; if ($groupName == $dateStarts1) {$groupfin = $finalgroup1;} else if ($groupName == $dateStarts2) {$groupfin = $finalgroup2;} else if ($groupName == $dateStarts3) {$groupfin = $finalgroup3;} else if ($groupName == $dateStarts4) {$groupfin = $finalgroup4;} else if ($groupName == $dateStarts5) {$groupfin = $finalgroup5;} else $groupfin = ""; if (($klubs != "") && ($pilseta != "")) {$klubs = "".$klubs." / ".$pilseta."" ;} else $klubs = $klubs.$pilseta; echo ""; } echo "
\"\" \"".$nation."\" ".$surname." ".$name." ".$byear." ".$klubs." ".$groupfin."
"; // Example of use //$rrr = (getFiles('pieteikums/userdata/1459403671/$karta')); //$files = array(); //foreach ($rrr as $k => $v) { //$saturs = file_get_contents($v); //$saturs = substr("$saturs", 30); //$dg = split("~", $saturs); //if ($dg[13] == $dall_valsts) $files[$dg[2]+50000] = "".$dg[3]." ".$dg[4]." (".$dg[5].") /".$dg[1]." / ".$dg[0]." /"; //if ($dg[26] == $dall_valsts) $files[$dg[2]+10000] = "".$dg[16]." ".$dg[17]." (".$dg[18].") /".$dg[1]." / ".$dg[0]." /"; //if ($dg[39] == $dall_valsts) $files[$dg[2]+20000] = "".$dg[29]." ".$dg[30]." (".$dg[31].") /".$dg[1]." / ".$dg[0]." /"; //} //setlocale(LC_COLLATE, array('lv_LV.UTF-8','lv_LV@euro','lv_LV','latvian')); //sort($files, SORT_LOCALE_STRING); // Sorts the Array //foreach ($files as $key => $image) // Display Images //{ //echo $image; //echo '
'; //} echo <<
html; } ?>

ATBALSTĪTĀJI

Suunto SIS Celotajs RedBull
LMP SCOTT Pulsometrs Sporta laboratorija
Therabody ROVER medalasunkausi.lv