コード例 #1
0
ファイル: inscription.php プロジェクト: maxeber/eshop
function formInscription()
{
    global $client;
    global $toutValide;
    global $erreurs;
    echo "\n        <!-- Form -->\n        <form action='inscription.php' method='post' id='inscription' class='form form-horizontal width-sm' role='form'>\n            <!-- Titre -->\n            <h1>";
    // Si l'utilisateur est authentifié
    echo (isset($_SESSION['authentification']) ? "Mise à jour de vos info" : "Inscription") . "</h1>";
    // Affichage des champs
    afficherChamp("text", "Genre", "genre");
    afficherChamp("text", "Prénom", "prenom");
    afficherChamp("text", "Nom", "nom");
    afficherChamp("text", "Courriel", "courriel");
    afficherChamp("text", "Adresse", "adresse");
    afficherChamp("text", "Ville", "ville");
    afficherChamp("text", "Code Postal", "codePostal");
    afficherChamp("text", "Province", "province");
    afficherChamp("text", "Téléphone", "numeroTelephone");
    afficherChamp("text", "Nom d'usager", "nomUsager");
    // Si l'utilisateur n'est pas authentifié
    if (!isset($_SESSION['authentification'])) {
        afficherChamp("password", "Mot de Passe", "motDePasse");
        afficherChamp("password", "Confirmation", "confirmationMotDePasse");
    }
    echo "\n            <!-- Submit -->\n            <br><br><input class='btn btn-success submit pull-right' type='submit' name='valider' value='Valider'>\n        </form>\n        <!-- Fin Form -->";
}
コード例 #2
0
ファイル: changerMotDePasse.php プロジェクト: maxeber/eshop
function afficherForm()
{
    echo "\n    <h1 class='text-center'>Changement du mot de passe</h1>\n        <form action='changerMotDePasse.php' method='post' id='authentification' class='form form-horizontal width-xs' role='form'>";
    afficherChamp("Mot de passe actuel", "motDePasseActuel");
    afficherChamp("Nouveau mot de passe", "motDePasseNouveau");
    afficherChamp("Confirmation", "motDePasseConfirmation");
    echo "\n        </div>\n        <br><input class='btn btn-primary pull-right submit' type='submit' name='valider' value='Valider'>\n    </form>";
}