account.php 975 B

1234567891011121314151617181920212223
  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="login">Identifiant</label>
  10. <input type="text" id="login" name="login" value="<?php echo $myUser->login; ?>" class="form-control"/>
  11. <label for="password">Nouveau mot de passe</label>
  12. <input type="password" id="password" name="password" class="form-control"/>
  13. <label for="confirmPassword">Nouveau mot de passe (Confirmation)</label>
  14. <input type="password" id="confirmPassword" name="confirmPassword" class="form-control"/>
  15. <br/>
  16. <input class="btn btn-primary" type="submit" value="Enregistrer">
  17. </form>
  18. </div>
  19. </div>
  20. <?php require_once __ROOT__.'footer.php' ?>