-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEuro2016.php
More file actions
42 lines (34 loc) · 957 Bytes
/
Euro2016.php
File metadata and controls
42 lines (34 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<title>Euro 2016</title>
<link rel="stylesheet" href="css/style.css">
<meta charset="UTF-8">
</head>
<body>
<?php
require_once('autoload.php');
include_once('affichage.php');
include_once('PDO.php');
include_once('loadData.php');
use Classes\Competition;
use Classes\Rencontres;
use Classes\Teams;
$euro2016 = new Competition($bdd, 'xml/competition.xml');
// si il n'y a pas d'equipes en paramètres get, affiche la liste des groupes
if (!isset($_GET['grp'])) {
for ($i=0; $i<count($euro2016->getTabGroups()); $i++) {
$groupe = $euro2016->getTabGroups()[$i];
afficheGroupe($groupe).'<br/>';
}
echo '<a href="importation.php">Importation</a> / <a href="exportation.php">exportation</a>';
}
// sinon on affiche la liste des matchs du groupe
else {
rencontres($euro2016);
echo '<br/><a href="Euro2016.php" class="retour">Retour à la liste</a>';
}
loadDataFromDb($bdd);
?>
</body>
</html>