account.php 817 B

123456789101112131415161718192021
  1. <?php require_once __DIR__.DIRECTORY_SEPARATOR.'header.php'; ?>
  2. <?php if (!$myUser->connected()) {
  3. header('location: index.php');
  4. } ?>
  5. <div class="jumbotron">
  6. <div class="jumbotron-contents">
  7. <form method="POST" action="action.php?action=save_user&amp;id=<?php echo $myUser->id;?>">
  8. <h2>Mon profil</h2>
  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' ?>