Ajout du changements d'informations sur le /profile. Début pour le /event. Modification du CSS.
Co-authored-by: Charpentier Juliette <juliette.charpentier1@etu.u-pec.fr>
This commit is contained in:
@@ -85,7 +85,7 @@ if (!$email) {
|
||||
}
|
||||
|
||||
|
||||
$newURL = "/account/profile";
|
||||
$newURL = "/";
|
||||
header("Location: " . $newURL);
|
||||
die();
|
||||
|
||||
|
@@ -48,6 +48,15 @@ if (isset($_COOKIE['userData'])) {
|
||||
<img src="https://cdn-icons-png.flaticon.com/512/4139/4139948.png" alt="Avatar">
|
||||
<h2>Mettre à jour mes informations</h2>
|
||||
<p>Modifiez les informations de votre profil.</p>
|
||||
<?php
|
||||
if (isset($_GET['result'])) {
|
||||
if ($_GET['result'] == "updatefailed") {
|
||||
echo "<p class='text' style='color:red; padding-left:0;'>❎ Une erreur est survenue lors de la mise à jour de vos informations.</p>";
|
||||
} else if ($_GET["result"] == "updatesuccess") {
|
||||
echo "<p class='text' style='color:green; padding-left:0;'>✅ Vos informations ont été mises à jour avec succès.</p>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<form action="/tools/updater.php" method="post">
|
||||
<div class="form-group">
|
||||
<label for="name"><span style="color:red;"><abbr title="Requis">*</abbr></span> Prénom</label>
|
||||
|
@@ -98,7 +98,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/tools/dbConnect.php';
|
||||
echo "<p class='text'>Rôle : " . $role . "</p>";
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
window.location.href = '/account/profile';
|
||||
window.location.href = '/';
|
||||
</script> <?php
|
||||
} else {
|
||||
echo "<p class='text'>Aucun utilisateur n\'a été ajouté.</p>";
|
||||
|
Reference in New Issue
Block a user