forked from LeMoutonElectrique/StageAlexy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.php
More file actions
82 lines (50 loc) · 1.51 KB
/
test.php
File metadata and controls
82 lines (50 loc) · 1.51 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
require_once("StructLib.php");
require_once("FunctionLib.php");
echo getHead("Titre de Test");
?>
<?php
?>
<?php
//echo getListProductsInfos();
@$json = file_get_contents("jeux.json");
$liste_jeux = json_decode($json, true);
$nombre_jeux = count($liste_jeux);
$liste_prix = array();
$liste_nom = array();
$liste_image = array();
$liste_date = array();
$liste_support = array();
$suports =array();
//echo $nombre_jeux."<br><br><br><br><br>";
foreach ($liste_jeux as $key => $value){
$jeux = $liste_jeux[$key];
$liste_nom[$key] = $jeux["nom"];
$liste_prix[$key] = $jeux["prix"];
//var_dump($liste_prix);
$liste_image[$key] = $jeux["image"];
$liste_date[$key] = $jeux["date"];
$liste_support[$key] = $jeux["support"];
foreach ($liste_support as $supkey => $supvalue) {
$supports[$supkey] = $supvalue;
}
//echo $key." => ".$liste_nom[$key]." => ".$liste_prix[$key]/*." => ".$supports*/."\n<br>";
}
$i = 12;
//for ($i=0; $i < $nombre_jeux ; $i++) {
echo "<h1 class=\"pagejeux\" id=\"".$i."\">".$liste_nom[$i]."</h1>"."\n<br><br><br>";
echo "<img src=\"images jeux/".$liste_image[$i]."\">";
echo "";
//}
//var_dump($liste_support);
//var_dump(expression)
//var_dump($ListeActualités);
/*$listeJeux=json_decode($json, true);
if ($listeJeux == NULL) {
echo ("Votre page ne peut pas être chargée, veuillez réessayer ultérieurement");
exit();
}
var_dump($listeJeux);*/
$test = $_POST['clicked'];
echo $test;
?>