<%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <!DOCTYPE html> <html lang="en"> <head> <script src="https://cdn.tailwindcss.com"></script> <link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link href="https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=Carme&display=swap" rel="stylesheet" /> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> </head> <body class="w-screen h-screen"> <%@include file="jspf/sidebarJSP.jspf" %> <div class="p-4 sm:ml-64"> <div class="p-4 border-2 border-gray-200 border-dashed rounded-lg dark:border-gray-700 mt-14" > <h1>Créer un nouvelle utilisateur :</h1> <form class="space-x-[1dvh] w-full flex" action="CreateUserServlet" method="post" > <div class="flex flex-col"> <div class="w-[20dvw]"> <label for="lastname" class="block mb-2 text-sm font-medium text-gray-900" >Nom :</label > <div class="relative mb-6"> <div class="absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none" > <svg class="w-4 h-4 text-gray-500" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 16" > <path d="m10.036 8.278 9.258-7.79A1.979 1.979 0 0 0 18 0H2A1.987 1.987 0 0 0 .641.541l9.395 7.737Z" /> <path d="M11.241 9.817c-.36.275-.801.425-1.255.427-.428 0-.845-.138-1.187-.395L0 2.6V14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2.5l-8.759 7.317Z" /> </svg> </div> <input type="text" id="lastname" name="lastname" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full ps-10 p-2.5" placeholder="nom..." /> </div> </div> <div class="w-[20dvw]"> <label for="firstname" class="block mb-2 text-sm font-medium text-gray-900" >Prenom :</label > <div class="relative mb-6"> <div class="absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none" > <svg class="w-4 h-4 text-gray-500" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 16" > <path d="m10.036 8.278 9.258-7.79A1.979 1.979 0 0 0 18 0H2A1.987 1.987 0 0 0 .641.541l9.395 7.737Z" /> <path d="M11.241 9.817c-.36.275-.801.425-1.255.427-.428 0-.845-.138-1.187-.395L0 2.6V14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2.5l-8.759 7.317Z" /> </svg> </div> <input type="text" id="firstname" name="firstname" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full ps-10 p-2.5" placeholder="prénom..." /> </div> </div> </div> <div class="flex flex-col"> <div class="w-[20dvw]"> <label for="email" class="block mb-2 text-sm font-medium text-gray-900" >Email :</label > <div class="relative mb-6"> <div class="absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none" > <svg class="w-4 h-4 text-gray-500" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 16" > <path d="m10.036 8.278 9.258-7.79A1.979 1.979 0 0 0 18 0H2A1.987 1.987 0 0 0 .641.541l9.395 7.737Z" /> <path d="M11.241 9.817c-.36.275-.801.425-1.255.427-.428 0-.845-.138-1.187-.395L0 2.6V14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2.5l-8.759 7.317Z" /> </svg> </div> <input type="text" id="email" name="email" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full ps-10 p-2.5" placeholder="name@gmail.com" /> </div> </div> <div class="w-[20dvw]"> <label for="username" class="block mb-2 text-sm font-medium text-gray-900" >Username :</label > <div class="relative mb-6"> <div class="absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none" > <svg class="w-4 h-4 text-gray-500" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 16" > <path d="m10.036 8.278 9.258-7.79A1.979 1.979 0 0 0 18 0H2A1.987 1.987 0 0 0 .641.541l9.395 7.737Z" /> <path d="M11.241 9.817c-.36.275-.801.425-1.255.427-.428 0-.845-.138-1.187-.395L0 2.6V14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2.5l-8.759 7.317Z" /> </svg> </div> <input type="text" id="username" name="username" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full ps-10 p-2.5" placeholder="utilisateur..." /> </div> </div> </div> <div class="flex flex-col"> <div class="w-[20dvw]"> <label for="password" class="block mb-2 text-sm font-medium text-gray-900" >Mot de passe :</label > <div class="relative mb-6"> <div class="absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none" > <svg class="w-4 h-4 text-gray-500" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20" > <path d="M10 0a10 10 0 1 0 10 10A10.011 10.011 0 0 0 10 0Zm0 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 13a8.949 8.949 0 0 1-4.951-1.488A3.987 3.987 0 0 1 9 13h2a3.987 3.987 0 0 1 3.951 3.512A8.949 8.949 0 0 1 10 18Z" /> </svg> </div> <input type="password" id="password" name="password" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full ps-10 p-2.5" placeholder="mot de passe..." /> </div> </div> <div class="w-[20dvw]"> <label for="password" class="block mb-2 text-sm font-medium text-gray-900" >Fonction :</label > <div class="relative mb-6"> <div class="absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none" > <svg class="w-4 h-4 text-gray-500" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20" > <path d="M10 0a10 10 0 1 0 10 10A10.011 10.011 0 0 0 10 0Zm0 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 13a8.949 8.949 0 0 1-4.951-1.488A3.987 3.987 0 0 1 9 13h2a3.987 3.987 0 0 1 3.951 3.512A8.949 8.949 0 0 1 10 18Z" /> </svg> </div> <input type="text" id="fonction" name="fonction" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full ps-10 p-2.5" placeholder="fonction..." /> </div> </div> </div> <div class="flex flex-col"> <div class="w-[20dvw] h-[100%] grid place-items-center"> <div> <button type="submit" class="relative inline-flex items-center justify-center p-0.5 mb-2 me-2 overflow-hidden text-sm font-medium text-gray-900 rounded-lg group bg-gradient-to-br from-purple-600 to-blue-500 group-hover:from-purple-600 group-hover:to-blue-500 hover:text-white focus:ring-4 focus:outline-none focus:ring-blue-300" > <span class="relative px-5 py-2.5 transition-all ease-in duration-75 bg-white rounded-md group-hover:bg-opacity-0" > Creer l'utilisateur </span> </button> </div> </div> </div> </form> <c:if test="${param.sucess == true}" var="resultatTest" scope="page"> <h1>L'utilisateur a bien était créer !</h1> </c:if> <c:if test="${param.sucess == false}" var="resultatTest" scope="page"> <h1>Erreur dans la création de l'utilisateur.</h1> </c:if> </div> </div> </body> </html>