-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreer-tournoi.php
59 lines (48 loc) · 1.38 KB
/
creer-tournoi.php
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Creer tournoi</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="creer-tournoi.css">
</head>
<body>
<div class="nav">
<div class="nav-header">
<img src="logo.png" height="100%" />
</div>
<div class="nav-btn">
<label for="nav-check">
<span></span>
<span></span>
<span></span>
</label>
</div>
<input type="checkbox" id="nav-check">
<div class="nav-links">
<a href="ajouter-participant.php">Ajouter participant</a>
</div>
</div>
<form action="afficher-tournoi.php" method="POST">
<label>Nom du tournoi</label><br /><input type="text" name="nom" required placeholder="Nom du tournoi..." /><br />
<label>Participants</label><br />
<select multiple name="participants[]" size="20" style="height: 100%;" required>
<?php
$participants = json_decode(file_get_contents('participants.json'));
foreach ($participants as $p) {
echo ("<option value=\"$p\" selected=\"true\">$p</option>");
}
?>
</select>
<br />
<input type="submit" value="Valider" />
</form>
<footer>
<p>
© Copyright 2019 Alexis & Ambroise. All rights reserved.
</p>
</footer>
<script type="text/javascript" src="creer-tournoi.js"></script>
</body>
</html>