account.php 966 B

123456789101112131415161718192021
  1. <?php require_once __DIR__.DIRECTORY_SEPARATOR.'header.php'; ?>
  2. <?php if(!$myUser->connected()) header('location: index.php'); ?>
  3. <div class="jumbotron">
  4. <div class="jumbotron-contents">
  5. <form method="POST" action="action.php?action=save_user&amp;id=<?php echo $myUser->id;?>">
  6. <h2>Mon profil</h2>
  7. <label for="login">Identifiant</label>
  8. <input type="text" id="login" name="login" value="<?php echo $myUser->login; ?>" class="form-control"/>
  9. <label for="password">Nouveau mot de passe</label>
  10. <input type="password" id="password" name="password" class="form-control"/>
  11. <label for="confirmPassword">Nouveau mot de passe (Confirmation)</label>
  12. <input type="password" id="confirmPassword" name="confirmPassword" class="form-control"/>
  13. <br/>
  14. <input class="btn btn-primary" type="submit" value="Enregistrer">
  15. </form>
  16. </div>
  17. </div>
  18. <?php require_once __ROOT__.'footer.php' ?>