connexion et style #10
| @@ -97,4 +97,9 @@ body { | ||||
|     position: fixed; | ||||
|     bottom: 0; | ||||
|     width: 100%; | ||||
| } | ||||
|  | ||||
| input[type="text"], input[type="password"] { | ||||
|     width: 300px; | ||||
|     margin: 0 auto; | ||||
| } | ||||
| @@ -13,20 +13,6 @@ | ||||
|             font-family: 'Barlow', sans-serif; | ||||
|         } | ||||
|     </style> | ||||
|     <script> | ||||
|         // Fonction de validation du formulaire | ||||
|         function validateForm() { | ||||
|             const username = document.getElementById('username').value; | ||||
|             const password = document.getElementById('password').value; | ||||
|             const role = document.querySelector('input[name="role"]:checked'); | ||||
|  | ||||
|             if (username == "" || password == "" || !role) { | ||||
|                 alert("Tous les champs doivent être remplis, y compris le choix du rôle."); | ||||
|                 return false; | ||||
|             } | ||||
|             return true; | ||||
|         } | ||||
|     </script> | ||||
| </head> | ||||
| <body> | ||||
|  | ||||
| @@ -41,8 +27,8 @@ | ||||
|  | ||||
| <main class="main-content"> | ||||
|     <h2>Connexion à l'application</h2> | ||||
|      | ||||
|     <form action="authentification.php" method="POST" onsubmit="return validateForm()"> | ||||
|     <br> | ||||
|     <form action="connexionVerif.php" method="POST" onsubmit="return validateForm()"> | ||||
|         <div class="mb-3"> | ||||
|             <label for="username" class="form-label">Nom d'utilisateur</label> | ||||
|             <input type="text" class="form-control" id="username" name="username" required> | ||||
| @@ -52,23 +38,7 @@ | ||||
|             <label for="password" class="form-label">Mot de passe</label> | ||||
|             <input type="password" class="form-control" id="password" name="password" required> | ||||
|         </div> | ||||
|  | ||||
|         <div class="mb-3"> | ||||
|             <label class="form-label">Choisissez votre rôle</label> | ||||
|             <div class="form-check"> | ||||
|                 <input class="form-check-input" type="radio" name="role" id="praticien" value="praticien"> | ||||
|                 <label class="form-check-label" for="praticien"> | ||||
|                     Praticien | ||||
|                 </label> | ||||
|             </div> | ||||
|             <div class="form-check"> | ||||
|                 <input class="form-check-input" type="radio" name="role" id="visiteur" value="visiteur"> | ||||
|                 <label class="form-check-label" for="visiteur"> | ||||
|                     Visiteur | ||||
|                 </label> | ||||
|             </div> | ||||
|         </div> | ||||
|  | ||||
|         <br> | ||||
|         <button type="submit" class="btn btn-primary">Se connecter</button> | ||||
|     </form> | ||||
| </main> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user