<?php
/**
 * Vue Accueil
 *
 * PHP Version 7
 *
 * @category  PPE
 * @package   GSB
 * @author    Réseau CERTA <contact@reseaucerta.org>
 * @author    José GIL <jgil@ac-nice.fr>
 * @copyright 2017 Réseau CERTA
 * @license   Réseau CERTA
 * @version   GIT: <0>
 * @link      http://www.reseaucerta.org Contexte « Laboratoire GSB »
 */

?>
<body style="background-image: /*url(images/fond.jpg)*/;
  background-repeat: no-repeat;
  width: 40px%;
  height: 100%;
  ">
<div id="accueil">
    <h2>
        Modifier un utilisateur<small> - Admin :
            <?php
            //echo $_SESSION['prenom'] . ' ' . $_SESSION['nom']
            ?></small>
    </h2>
</div>
<?php

$id = filter_input(INPUT_GET, 'id', FILTER_SANITIZE_STRING);

$nom = filter_input(INPUT_POST, 'nom', FILTER_SANITIZE_STRING);
$prenom = filter_input(INPUT_POST, 'prenom', FILTER_SANITIZE_STRING);
$login = filter_input(INPUT_POST, 'login', FILTER_SANITIZE_STRING);
$mdp = filter_input(INPUT_POST, 'mdp', FILTER_SANITIZE_STRING);

?>
<form action="../index.php?uc=gestionusers&action=modifier&id=<?php echo $id ?>" method="post">
    <p>Nom : <input type="text" name="nom" value="<?php echo $nom; ?>"      /></p>
    <p>Prenom : <input type="text" name="prenom" value="<?php echo $prenom; ?>"            /></p>
    <p>login : <input type="text" name="login" value="<?php echo $login; ?>" /></p>
    <p>mot de passe : <input type="text" name="mdp" value="<?php echo $mdp; ?>" /></p>
    <p><input type="submit" value="Enregistrer"></p>
</form>

<body>