This repository has been archived by the owner on Oct 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
options.php
59 lines (58 loc) · 2.58 KB
/
options.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
<?php include (__DIR__ .'/include/header.inc.php'); ?>
<?php include (__DIR__ .'/outils/get_infos.php'); ?>
<header>
<div class="slogan">
<a href="dashboard.php"><img src="img/logo.png" alt="Logo du Trombinouc"></a>
<p>
Le Trombinouc des R&T
</p>
</div>
<div class="connexion">
<form id="rechercher" action="outils/rechercher.php" method="GET">
<input type="text" name="pseudo" placeholder="Pseudo"/>
<input type="submit" id="rechercher" value="Rechercher"/>
<input type="button" value="Se déconnecter" onclick="parent.location='deconnexion.php'"/>
</form>
</div>
</header>
<nav>
<ul>
<li><a href="dashboard.php">Dashboard</a></li>
<li><a href="http://ent.unice.fr">Accès ENT</a></li>
<li><a href="http://iutsa.unice.fr/gpushow2/?dept=RT&interactive">Planning des cours</a></li>
<?php echo "<li><a href='profil.php?pseudo={$_SESSION['pseudo']}'>Profil</a></li>"; ?>
<li><a href="options.php">Paramètres</a></li>
</ul>
</nav>
<div class='options'>
<center>
<form id="pseudo" action="outils/modif_pseudo.php" method="POST">
<h3>Changer son pseudo: </h3>
<input type="text" name="pseudo" placeholder="Nouveau pseudo" required /><br />
<input type="submit" id="pseudo" value="Modifier son pseudo" />
</form>
<form id="email" action="outils/modif_mail.php" method="POST">
<h3>Changer son email: </h3>
<input type="email" name="email" placeholder="Nouvelle adresse email" required /><br />
<input type="submit" id="email" value="Modifier son email" />
</form>
<form id="annee" action="outils/modif_annee.php" method="POST">
<h3>Changer sa date de naissance: </h3>
<input type="text" name="annee" placeholder="Nouvelle année de naissance" required /><br />
<input type="submit" id="annee" value="Modifier son année de naissance" />
</form>
<form id="img" action="outils/modif_img.php" method="POST">
<h3>Changer son image: </h3>
<input type="text" name="img" placeholder="URL de la nouvelle image" required /><br />
<input type="submit" id="img" value="Modifier son image" />
</form>
<form id="mdp" action="outils/modif_mdp.php" method="POST">
<h3>Changer son mot de passe: </h3>
<input type="password" name="mdp_old" placeholder="Ancien mot de passe" required /><br />
<input type="password" name="mdp" placeholder="Nouveau mot de passe" required /><br />
<input type="password" name="mdp_conf" placeholder="Confirmer nouveau mot de passe" required /><br />
<input type="submit" id="mdp" value="Modifier son mot de passe" />
</form>
</center>
</div>
<?php include ('include/footer.inc.php'); ?>