<h1>
    Paramètres de compte
</h1>

<!-- Balise pour charger le fichier script -->
<script type="text/javascript">
    init_file("param_account_manager.js");
</script>

<form method="post" action="index.php?page=update">
    <fieldset id="form_param">
        <label for="login_value">Login :</label>
        <label id="login_value"><?php echo $_SESSION["user"]->getLogin(); ?></label>
        <br/>
        <br/>
        <label for="name_value">Nom :</label>
        <label id="name_value"><?php echo $_SESSION["user"]->getNom(); ?></label>
        <button type="button" onclick="javascript:showEditBox('name')" id="name_edit">Modifier</button>
        <br/>
        <br/>
        <label for="prenom_value">Prénom :</label>
        <label id="prenom_value"><?php echo $_SESSION["user"]->getPrenom(); ?></label>
        <button type="button" onclick="javascript:showEditBox('prenom')" id="prenom_edit">Modifier</button>
        <br/>
        <br/>
        <button type="button" onclick="javascript:changepassword();">Changer le mot de passe</button>
        <br/>
        <br/>
        <input type="hidden" id="new_name" name="new_name" value="null" />
        <input type="hidden" id="new_prenom" name="new_prenom" value="null" />
        <input type="hidden" id="new_password" name="new_password" value="null" />
        <button type="button" onclick="javascript:navigate('index.php?page=account')">Retour</button>
        <button type="submit">Valider</button>


    </fieldset>
</form>