$v) { $b[$k] = strtolower($v[$subkey]); } asort($b); foreach($b as $key=>$val) { $c[] = $a[$key]; } return $c; } $weAreGymImg = 'data:image/png;base64,'.base64_encode(file_get_contents('../../../minisite/img/wearegym.png')); $url = 'http://fig-docs.com/swisstiming/odf/getlatestmessage.php?CompetitionCode=OG2016&DocumentCode=GRW340100&DocumentType=DT_CUMULATIVE_RESULT'; $rss_file = file_get_contents($url); // Si les XML ne sont pas sur le serveur if($rss_file==""){ if (!isset($_GET['mode']) && $_GET['mode'] !== 'mobileapp'){ echo "

FIG logo
"; } echo"
Results will be displayed here on August 21 at 11:00 local time!

"; if (!isset($_GET['mode']) && $_GET['mode'] !== 'mobileapp'){ echo "Back"; }else{ echo "Back"; } } $xml = new SimpleXMLElement($rss_file) or die ("Results will be published in a minute"); ?>
FIG logo"; } ?> Competition[0]->ExtendedInfos[0]->SportDescription[0]['DisciplineName']; $apparatus = $xml->Competition[0]->ExtendedInfos[0]->SportDescription[0]['SubEventName']; $subdiv = $xml->Competition[0]->ExtendedInfos[0]->ExtendedInfo[0]['Value']; $rotation = $xml->Competition[0]->ExtendedInfos[0]->ExtendedInfo[1]['Value']; echo "

2016 Games of the XXXI Olympiad RIO DE JANEIRO (BRA) - $disc $apparatus

"; ?>
Back"; }else{ echo "Back"; } ?> Competition[0]->Result[$i]['Rank']; $so = (string)$xml->Competition[0]->Result[$i]['SortOrder']; $point = (string)$xml->Competition[0]->Result[$i]['Result']; if($point == ""){ $lastname = ""; $NOC = ""; $id = ""; $score = ""; $diff = ""; $exec = ""; $pen = ""; }else{ $a=0; $id_profile1 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[0]->Description[0]['IFId']; $lastname1 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[0]->Description[0]['FamilyName']; $firstname1 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[0]->Description[0]['GivenName']; $id_profile2 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[1]->Description[0]['IFId']; $lastname2 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[1]->Description[0]['FamilyName']; $firstname2 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[1]->Description[0]['GivenName']; $id_profile3 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[2]->Description[0]['IFId']; $lastname3 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[2]->Description[0]['FamilyName']; $firstname3 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[2]->Description[0]['GivenName']; $id_profile4 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[3]->Description[0]['IFId']; $lastname4 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[3]->Description[0]['FamilyName']; $firstname4 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[3]->Description[0]['GivenName']; $id_profile5 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[4]->Description[0]['IFId']; $lastname5 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[4]->Description[0]['FamilyName']; $firstname5 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->Composition[0]->Athlete[4]->Description[0]['GivenName']; $NOC = (string)$xml->Competition[0]->Result[$i]->Competitor[0]['Organisation']; $app1 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[0]['Value']; $app2 = (string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[1]['Value']; $tab_gym[$i]['ribbons']['difficulty']=(string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[0]->Extension[0]['Value']; $tab_gym[$i]['ribbons']['execution']=(string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[0]->Extension[1]['Value']; $tab_gym[$i]['ribbons']['penality']=(string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[0]->Extension[2]['Value']; $tab_gym[$i]['ch']['difficulty']=(string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[1]->Extension[0]['Value']; $tab_gym[$i]['ch']['execution']=(string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[1]->Extension[1]['Value']; $tab_gym[$i]['ch']['penality']=(string)$xml->Competition[0]->Result[$i]->Competitor[0]->ExtendedResults[0]->ExtendedResult[1]->Extension[2]['Value']; $tab_gym[$i]['place']=$place; $tab_gym[$i]['so']=$so; $tab_gym[$i]['note']=$point; $tab_gym[$i]['nom1']=$lastname1; $tab_gym[$i]['nom2']=$lastname2; $tab_gym[$i]['nom3']=$lastname3; $tab_gym[$i]['nom4']=$lastname4; $tab_gym[$i]['nom5']=$lastname5; $tab_gym[$i]['prenom1']=$firstname1; $tab_gym[$i]['prenom2']=$firstname2; $tab_gym[$i]['prenom3']=$firstname3; $tab_gym[$i]['prenom4']=$firstname4; $tab_gym[$i]['prenom5']=$firstname5; $tab_gym[$i]['id_profile1'] = $id_profile1; $tab_gym[$i]['id_profile2'] = $id_profile2; $tab_gym[$i]['id_profile3'] = $id_profile3; $tab_gym[$i]['id_profile4'] = $id_profile4; $tab_gym[$i]['id_profile5'] = $id_profile5; $tab_gym[$i]['pays']=$NOC; $tab_gym[$i]['app1']=$app1; $tab_gym[$i]['app2']=$app2; if($pen != "ACCEPTED" && $pen != "REJECTED"){ $tab_gym[$i]['pen']=$pen; } $tab_gym[$i]['id_profile'] = $id_profile; } } if($tab_gym != ""){ $tab_gym = subval_sort($tab_gym,'so'); } $i=0; while ($tab_gym[$i]['note'] != ""){ ?>
Rk Name NF 5 Ribbons 3 Clubs 2 Hoops Total





<? echo $tab_gym[$i]['pays'] ?>


Back"; }else{ echo "Back"; } ?>