Commit 27f3beb966454046efdc2e3131289080a2eb9d84
1 parent
fa68e797
Ajout de orga.php
Showing
1 changed file
with
50 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,50 @@ | @@ -0,0 +1,50 @@ | ||
1 | +<?php | ||
2 | +# DEBUG | ||
3 | +# e_ : est | ||
4 | +# r_ : a le droit de | ||
5 | +$e_connecte = true; | ||
6 | +$r_voir = $e_connecte; | ||
7 | +$r_vote = true; | ||
8 | +$r_proposer = true; | ||
9 | + | ||
10 | +if ($r_voir) { | ||
11 | + if ($r_vote) { | ||
12 | + if ($r_proposer) { | ||
13 | +?> | ||
14 | +<h2>Ajouter un évènement</h2> | ||
15 | +<form id="nvEv"> | ||
16 | + <label for="nom">Nom :</label><br/><input type="text" name="nom"><br/> | ||
17 | + <label for="desc">Description :</label><br/><textarea name="desc"></textarea><br/> | ||
18 | + <h3>Dates proposées</h3> | ||
19 | + <div id="nvEvDates"> | ||
20 | + Pas de date proposée pour l'instant. | ||
21 | + </div> | ||
22 | + <form id="nvDate" action="#"> | ||
23 | + <h4>Proposer une date</h4> | ||
24 | + <label for="nvDateDate">Date :</label><br/><input type="datetime"name="nvDateDate"/><br/> | ||
25 | + <label for="nvDateDuree">Durée :</label><br/><input type="time"name="nvDateDuree"/><br/> | ||
26 | + <input class="btn btn-default" type="submit" value="Proposer la date"> | ||
27 | + </form> | ||
28 | + <input class="btn btn-primary" type="submit" value="Ajouter l'évènement"> | ||
29 | +</form> | ||
30 | +<?php | ||
31 | + } | ||
32 | +?> | ||
33 | +<h2>Évènements à planifier</h2> | ||
34 | +<div class="ev"> | ||
35 | + | ||
36 | +</div> | ||
37 | +<?php | ||
38 | + } | ||
39 | +?> | ||
40 | +<h2>Évènements fixés</h2> | ||
41 | +<?php | ||
42 | +} else { | ||
43 | +?> | ||
44 | +<p class="bg-danger"> | ||
45 | +Vous devez vous connecter pour gérer l'organisation des évènements. | ||
46 | +</p> | ||
47 | +<?php | ||
48 | +} | ||
49 | + | ||
50 | +?> | ||
0 | \ No newline at end of file | 51 | \ No newline at end of file |