Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!DOCTYPE html>
<html lang="fr">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" type="text/css" href="formulaire.css" media="screen" title="bbxcss" />
    
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>

    <title>Interparfums</title>
</head>

<body>
    <div class="container">
        <h3 class="display-2 text-center">Interparfums</h3>
        <hr>
        <script type="text/javascript">
            d = new Date();
            document.write("<p>Aujourd'hui, nous sommes le : <span style='color:red;'>");
            document.write(d.toLocaleDateString());
            document.write("</span></p>");
        </script>

        <h2 class="display-4 text-center">Demande d'accès \ Matériels informatique</h2>
        <br>
        <br>
        <h2 class="display-8 text-center">Informations utilisateur</h2>

        <?php
        if ($_POST) {
            extract($_POST);
            // 1. connexion BDD
            $pdo = new PDO('mysql:host=10.4.101.23;dbname=dbbglpi', 'root', '5b0b8b9aff', array(PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING, PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));



            //  2. Contrôler en PHP que l'on receptionne bien toute les données saisies dans le formulaire
            //echo '<pre>';
            //print_r($_POST);
            //echo '</pre>';

            // 3. Réaliser le traitement PHP permettant d'insérer un employé directement via le formulaire
            $resultat = $pdo->exec("INSERT INTO employes VALUES (DEFAULT, '$nom', '$prenom', '$date_entree', '$contrat', '$date_sortie', '$manager', '$service',  '$fonction', '$batiment', '$etage', '$bureau', '$remplace', '$ordinateur_fixe', '$ordinateur_portable', '$telephone_fixe', '$telephone_portable' '$casque', '$autres', '$adobe_acrobat', '$sap', '$adobe_creative', '$adresse_mail', '$vray', '$compte_extranet', '$extranet', '$cognos', '$ged')");

            echo '<div class="col-md-6 offset-md-3 alert alert-success text-center"><strong>L\'employé <span class="text-primary">' . $nom . '</span> a bien été enregistré !!!</strong></div>';
        }
        ?>

        <form method="post" action="" class="col-md-4 offset-md-4 text-center">

            <div class="form-group">
                <label for="nom">Nom</label>
                <input type="text" required class="form-control" id="nom" name="nom" placeholder="Saisir votre nom" onChange="javascript:this.value=this.value.toUpperCase()">
            </div>

            <div class="form-group">
                <label for="prenom">Prénom</label>
                <input type="text" required class="form-control" id="prenom" name="prenom" placeholder="Saisir votre prénom" onchange="this.value = this.value.charAt(0).toUpperCase() + this.value.substr(1);">
            </div>

            <div class="form-group">
                <label for="date_embauche">Date d'entrée</label>
                <input type="date" required class="form-control" id="date_entree" name="date_entree">
            </div>

            <div class="form-group">
                <label for="contrat">Contrat</label>
                <select class="form-control" id="contrat" name="contrat">
                    <option selected>Type de contrat</option>
                    <option value="1">CDI</option>
                    <option value="2">CDD</option>
                    <option value="3">Interim</option>
                    <option value="4">Stage</option>
                </select>
            </div>

            <div class="form-group">
                <label for="date_embauche">Date de sortie</label>
                <input type="date" class="form-control" id="date_sortie" name="date_sortie">
            </div>

            <div class="form-group">
                <label for="manager">Manager</label>
                <input type="text" class="form-control" id="manager" name="manager" placeholder="Saisir votre manager" onChange="javascript:this.value=this.value.toUpperCase()">
            </div>

            <div class="form-group">
                <label for="service">Service</label>
                <select class="form-control" id="service" name="service">
                    <option selected>Choisissez votre service</option>
                    <option value="1">Export</option>
                    <option value="2">Finance</option>
                    <option value="3">France</option>
                    <option value="4">Informatique</option>
                    <option value="5">Marketing</option>
                    <option value="6">Production</option>
                    <option value="7">Rochas</option>
                </select>
            </div>

            <div class="form-group">
                <label for="fonction">Fonction</label>
                <input type="text" class="form-control" id="fonction" name="fonction" placeholder="Saisir votre fonction">
            </div>

            <div class="form-group" >
                <label for="batiment">Bâtiment</label>
                <select class="form-control" id="batiment" name="batiment">
                    <option selected>N°</option>
                    <option value="1">1 Rond point des Champs-Élysées</option>
                    <option value="2">4 Rond point des Champs-Élysées</option>
                </select>
            </div>

            <div class="form-group" id="etage" style="display:none;">
                <label for="etage">Etage</label>
                <select class="form-control" id="etage" name="etage">
                    <option selected id="init">N°</option>
                    <option value="1" class="opt">1er</option>
                    <option value="2" id="deux">2ème</option>
                    <option value="3" class="opt">3ème</option>
                    <option value="4" class="opt">4ème</option>
                    <option value="5" class="opt">5ème</option>
                    <option value="6" class="opt">6ème</option>
                </select>
            </div>

            <div class="form-group">
                <label for="bureau">Bureau</label>
                <input type="text" class="form-control" id="bureau" name="bureau" placeholder="Saisir votre bureau">
            </div>

            <div class="form-group">
                <label for="remplace">Remplace le poste de</label>
                <input type="text" class="form-control" id="remplace" name="remplace" placeholder="Saisir votre remplacement">
            </div>
            <br>


            <div id="options" class="display-8 text-center">
                <p class="show">
                    <a href="#options" style="color:black">Matériels requis &darr;</a>
                </p>
                <p class="hide">
                    <a href="#start" style="color:black">Matériels requis &uarr;</a>
                </p>

                <p>
                    <input class="form-check-input position-static" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                    <label class="form-check-label" for="inlineRadio1">Ordinateur fixe</label>
                    
                </p>

                <p>
                    <input class="form-check-input position-static" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                    <label class="form-check-label" for="inlineRadio1">Ordinateur portable</label>
                    
                </p>

                <p>
                <input class="form-check-input position-static" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                    <label class="form-check-label" for="inlineRadio1">Téléphone fixe</label>
                </p>

                <p>
                <input class="form-check-input position-static" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                    <label class="form-check-label" for="inlineRadio1">Téléphone portable</label>
                </p>

                <p>
                <input class="form-check-input position-static" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                    <label class="form-check-label" for="inlineRadio1">Casque</label>
                </p>

                <p>
                    <label for="autres">Autres :</label>
                    <input type="text" class="form-control" id="autres" name="autres" placeholder="Autres">
                </p>
            </div>

            <div id="optionsBis" class="display-8 text-center">
                <p class="show">
                    <a href="#optionsBis" style="color:black">Logiciels requis &darr;</a>
                </p>
                <p class="hide">
                    <a href="#start" style="color:black">Logiciels requis &uarr;</a>
                </p>

                <p>
                <input class="form-check-input position-static" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                    <label class="form-check-label" for="inlineRadio1">Adobe Acrobat Pro</label>
                </p>

                <p>
                <input class="form-check-input position-static" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                    <label class="form-check-label" for="inlineRadio1">Adobe Creative Cloud</label>
                    </select>
                </p>

                <p>
                    <label for="adresse_mail">Adresse Mail</label>
                    <select class="form-control" id="adresse_mail" name="adresse_mail">
                        <option selected></option>
                        <option value="1">@interparfums.fr</option>
                        <option value="2">@rochas.com</option>
                    </select>
                </p>

                <p>
                <input class="form-check-input position-static" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                    <label class="form-check-label" for="inlineRadio1">VRay \ Rhino</label>
                </p>

                <p>
                <input class="form-check-input position-static" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                    <label class="form-check-label" for="inlineRadio1">Compte Extranet</label>
                    </select>
                </p>

                <p>
                <input class="form-check-input position-static" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                    <label class="form-check-label" for="inlineRadio1">Extranet No Reply</label>
                </p>

                <p>
                <input class="form-check-input position-static" type="checkbox" id="blankCheckbox" value="option1" aria-label="...">
                    <label class="form-check-label" for="inlineRadio1">Cognos</label>
                </p>
            </div>

            <div id="optionsTrois" class="display-8 text-center">
                <p class="show">
                    <a href="#optionsTrois" style="color:black">SAP &darr;</a>
                </p>
                <p class="hide">
                    <a href="#start" style="color:black">SAP &uarr;</a>
                </p>

                <p class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1">
                    <label class="form-check-label" for="inlineRadio1">A</label>
                </p>

                <p class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2">
                    <label class="form-check-label" for="inlineRadio2">B</label>
                </p>

                <p class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2">
                    <label class="form-check-label" for="inlineRadio2">C</label>
                </p>

                <p class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2">
                    <label class="form-check-label" for="inlineRadio2">D</label>
                </p>
            </div>

            <div id="optionsQuatre" class="display-8 text-center">
                <p class="show">
                    <a href="#optionsQuatre" style="color:black">GED &darr;</a>
                </p>
                <p class="hide">
                    <a href="#start" style="color:black">GED &uarr;</a>
                </p>

                <p class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1">
                    <label class="form-check-label" for="inlineRadio1">A</label>
                </p>

                <p class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2">
                    <label class="form-check-label" for="inlineRadio2">B</label>
                </p>

                <p class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2">
                    <label class="form-check-label" for="inlineRadio2">C</label>
                </p>

                <p class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2">
                    <label class="form-check-label" for="inlineRadio2">D</label>
                </p>
            </div>


            <button type="submit" class="col-md-12 btn btn-dark mb-4">Enregister</button>
        </form>
    </div>

</body>

<script>
$("#batiment").change(function()
{
    $("#etage").show();

    $(".opt").attr("selected",false);
    if($("#batiment option:selected").val() == '1') {
        $(".opt").hide();
        $("#deux").attr("selected",true);
    }
    else
    {
        $(".opt").show();
        $("#deux").attr("selected",false);
        $("#init").attr("selected",true);
    }
});





</script>

</html>
            
          
!
            
              #options,#optionsBis, #optionsTrois, #optionsQuatre{
    margin-bottom:20px;
    font-size: 20px;
}
#options p, #optionsBis p, #optionsTrois p, #optionsQuatre p{
	display:none;
}
#options .show, #optionsBis .show, #optionsTrois .show, #optionsQuatre .show{
	display:block;
}
#options:target .show, #optionsBis:target .show, #optionsTrois:target .show, #optionsQuatre:target .show{
	display:none;
}
#optionsBis .hide, #options .hide, #optionsTrois .hide, #optionsQuatre .hide{
	display:none;
}
#optionsBis:target .hide,#options:target .hide, #optionsTrois:target .hide, #optionsQuatre:target .hide{
	display:block;
}
#optionsBis:target p,#options:target p, #optionsTrois:target p, #optionsQuatre:target p{
	display:block;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console