Commit 8e29b8cb authored by System Administrator's avatar System Administrator
Browse files

Merge branch 'master' of...

Merge branch 'master' of https://gricad-gitlab.univ-grenoble-alpes.fr/ferrafli/RIE-2017-ProjetTutore-G1
parents 0ffccff1 ce98ae73
**TRUEACK**
===========
\ No newline at end of file
===========
Cette application est un equivalent à l'accusé réception de Laposte en numérique.
L'utilisateur peut envoyer un message avec preuve d'envoi et recevoir une preuve de lecture du message envoyé.
La certifications de l'envoi et de la lecture se font grâce à la blockchain.
......@@ -177,7 +177,7 @@ session_start(); // Demmare la Session
<br>
<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/>
......@@ -196,7 +196,24 @@ session_start(); // Demmare la Session
<?php
} else {
require_once("consommateur.php");
$_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>
<div class="form-group">
<input class="btn btn-outline-secondary" type="submit" name="Valider" value="Valider">
</div>
</form>
<?php
//require_once("consommateur.php");
}
} else {
......
<h1>Lecture de votre recommandé éléctronique.<br></h1>
<?php include_once('header.php'); ?>
<?php
// Gestion des sessions
session_start();
?>
<!doctype html>
<html lang="fr">
<head>
<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"/>
<title>Accueil</title>
<!-- 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";
}
</script>
</head>
<body >
<h1>Lecture de votre recommandé éléctronique.<br></h1>
<?php
include('header.php');
// BENIT Romain
// V1.1
......@@ -136,13 +173,18 @@
<?php
}
?>
include('footer.php');
?>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" 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>
</body>
</html>
<form action="deconnexion.php">
<input type="button" value="Accueil" onclick="window.location.href='accueil.php';">
<input type="submit" value="Déconnexion">
</form>
<?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