Commit 67ef4d805cca008e77236e52e2522af2ab49e8e4
Merge branch 'master' of ssh://servclubinfo.insecure.deule.net/crep
Showing
3 changed files
with
54 additions
and
1 deletions
Show diff stats
menu.php
news.php
1 | 1 | <?php |
2 | 2 | require_once("creds.php"); |
3 | - $link = mysql_connect(MYSQL_HOSTNAME, MYSQL_USERNAME, MYSQL_PASSWORD) | |
3 | + $link = mysql_connect(__MYSQL_HOSTNAME__, __MYSQL_USERNAME__, __MYSQL_PASSWORD__) | |
4 | 4 | or die("Impossible de se connecter : " . mysql_error()); |
5 | 5 | echo 'Connexion reussie'; |
6 | 6 | ... | ... |
... | ... | @@ -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 | 51 | \ No newline at end of file | ... | ... |