Commit 39ac3a5d authored by Romain Benit's avatar Romain Benit 🥇
Browse files

Modification de navigation pour les topics, mais sans contrôle du mdp

parent 2d3a0887
......@@ -175,7 +175,7 @@ session_start(); // Demmare la Session
<button class="btn btn-outline-secondary" onclick="bascule('form');">Lire un message</button>
<form METHOD="post" ACTION="consommateur.php" id="form" style="visibility: hidden;"
<form METHOD="post" ACTION="consommateur.php" id="form" style="visibility: hidden;">
<p>Nom de topic</p>
<div class="form-group">
<input type="text" class="form-control" name="topic" value="" required/>
......@@ -194,7 +194,24 @@ session_start(); // Demmare la Session
} else {
$_SESSION['login'] = $login;
<form METHOD="post" ACTION="consommateur.php" >
<!-- Envoi en caché du nom de topic -->
<input name="topic" type="hidden" value="<?php echo $_POST['topic']; ?>">
<p>Mot de passe : </p>
<div class="form-group">
<input type="password" class="form-control" name="password" value="" pattern=".{6,}" required/>
<div class="form-group">
<input class="btn btn-outline-secondary" type="submit" name="Valider" value="Valider">
} else {
<h1>Lecture de votre recommandé éléctronique.<br></h1>
<?php include_once('header.php'); ?>
// Gestion des sessions
<!doctype html>
<html lang="fr">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" type="image/x-icon" href="/Imgs/favicon.ico"/>
<!-- Bootstrap core CSS -->
<link href="./style/css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="./style/css/sticky-footer-navbar.css" rel="stylesheet">
<script type="text/javascript">
function bascule(id) {
if (document.getElementById(id).style.visibility == "hidden")
document.getElementById(id).style.visibility = "visible";
else document.getElementById(id).style.visibility = "hidden";
<body >
<h1>Lecture de votre recommandé éléctronique.<br></h1>
// BENIT Romain
// V1.1
......@@ -136,13 +173,18 @@
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
<script src="../../assets/js/vendor/popper.min.js"></script>
<script src="../../dist/js/bootstrap.min.js"></script>
<form action="deconnexion.php">
<input type="button" value="Accueil" onclick="window.location.href='accueil.php';">
<input type="submit" value="Déconnexion">
<?php include('footer.php'); ?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment