Skip to content
<!DOCTYPE html>
<!--
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
-->
<html>
<head>
<title>Affectation</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style.css">
<link href="https://fonts.cdnfonts.com/css/star-wars" rel="stylesheet">
<style>
@import url('https://fonts.cdnfonts.com/css/star-wars');
</style>
</head>
<body>
<header>
<h1>affecter un chasseur a un pilote</h1>
</header>
<main>
<form action="affectation">
<fieldset>
<legend>affecter un chasseur à un pilote</legend>
<div>
<label for="pilotes">choisir un pilote :</label>
<select id="pilotes" name="pilotes">
<option th:each="pilotes : ${listePilotes}"
th:value="${pilotes}"
th:text="${pilotes.nom}">
</option>
</select>
</div>
<div>
<label for="chasseurs">choisir un chasseur :</label>
<select id="chasseurs" name="chasseurs">
<option th:each="chasseurs : ${listeChasseurs}"
th:value="${chasseurs}"
th:text="${chasseurs.type_chasseur}">
</option>
</select>
</div>
</fieldset>
<input type="submit" value="Valider"/>
<input type="reset" value="Annuler"/>
</form>
</main>
<footer>
<a href="/menu" class="menu">retour au menu</a>
</footer>
</body>
</html>
......@@ -8,45 +8,45 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<title>cloture mission</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="/style.css">
<link href="https://fonts.cdnfonts.com/css/star-wars" rel="stylesheet">
<style>
@import url('https://fonts.cdnfonts.com/css/star-wars');
</style>
<link rel="stylesheet" href="/style.css"/>
</head>
<body>
<header>
<h1>cloture mission</h1>
<h1><span class='faulty-letter'>{</span> Cloture Mission</h1>
</header>
<main>
<form action="clotureMission" method="post">
<form class='mission' action="/clotureMission" method="post">
<div class='box'>
<label for="missions">Choisir une mission :</label>
<select id="missions" name="missions">
<option th:each="mission : ${missions}" th:value="${mission.idMission}" th:text="${mission.titre}"></option>
</select>
</div>
<div>
<label for="clotureMission">nombre d'heure</label>
<label for="clotureMission">Nombre d'heure</label>
<input type="text" id="heures" name="heures"/>
</div>
<div>
<label for="resultat">resultat mission : </label>
<label for="resultat">Resultat Mission : </label>
<select id="resultat" name="resultats">
<option th:each="resultat : ${resultatMission}" th:value="${resultat}" th:text="${resultat}"></option>
</select>
</div>
<div>
<label>detail</label>
<div>
<label for="pilote">pilote</label>
<select id="pilote" name="pilote">
<option th:each="pilote : ${etatPilote}" th:value="${etatPilote}" th:text="${etatPilote}"></option>
</select>
<label for="chasseur">chasseur</label>
<select id="chasseur" name="chasseur">
<option th:each="chasseur : ${etatChasseur}" th:value="${etatChasseur}" th:text="${etatChasseur}"></option>
</select>
<p> List pilote(s) dans la mission: </p>
<div th:each="pilote : ${pilotes}">
<p th:text="${pilote.nom}"></p>
</div>
<p> List chasseur(s) dans la mission: </p>
<div th:each="chasseur : ${chasseurs}">
<p th:text="${chasseur.type}"></p>
</div>
</div>
<input type="submit" value="Submit"/>
<input type="reset" value="Annuler"/>
</form>
<footer>
<a href="/menu" class="menu">retour au menu</a>
<a href="/menu" class="menu">Retour au Menu</a>
</footer>
</main>
</body>
</html>
......@@ -12,25 +12,32 @@
</head>
<body>
<header>
<h1>fiche chasseur</h1>
<h1><span class='faulty-letter'>{</span> Fiche chasseur</h1>
</header>
<main>
<form th:action="@{/ficheChasseur}" method="post">
<table>
<tr>
<th>identifiant</th>
<th>type chasseur</th>
<th>etat chasseur</th>
<th>Id</th>
<th>Type chasseur</th>
<th>Etat chasseur</th>
</tr>
<tr th:each="chasseur: ${ficheChasseur}">
<td th:text="${chasseur.id_chasseur}"></td>
<td th:text="${chasseur.type_chasseur}"></td>
<td th:text="${chasseur.etat_chasseur}"></td>
<td th:text="${chasseur.idChasseur}"></td>
<td th:text="${chasseur.type}"></td>
<td>
<select id="etat" name="etat">
<option th:each="etat : ${etat}" th:value="${etat}" th:text="${etat}"></option>
</select>
</td>
</tr>
</table>
<a th:href="@{/listeChasseur}">retour a la liste des chasseurs</a>
<input type="submit" value="Submit"/>
</form>
<a th:href="@{/listeChasseur}">Retour a la liste des chasseurs</a>
</main>
<footer>
<a href="/menu" class="menu">retour au menu</a>
<a href="/menu" class="menu">Retour au Menu</a>
</footer>
</main>
</body>
</html>
......@@ -8,31 +8,47 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<title>fiche pilote</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="/style.css">
<link href="https://fonts.cdnfonts.com/css/star-wars" rel="stylesheet">
<link rel="stylesheet" href="/style.css"/>
<link href="https://fonts.cdnfonts.com/css/star-wars" rel="stylesheet"/>
<style>
@import url('https://fonts.cdnfonts.com/css/star-wars');
</style>
</head>
<body>
<header>
<h1>fiche pilote</h1>
<h1><span class='faulty-letter'>{</span> Fiche Pilote</h1>
</header>
<main>
<p>prenom : <span th:text="${pilote.prenom}"></span></p>
<p>nom : <span th:text="${pilote.nom}"></span></p>
<p>race : <span th:text="${pilote.race}"></span></p>
<p>age inscription : <span th:text="${pilote.age}"></span></p>
<p>etat : <span th:text="${pilote.etat}"></span></p>
<!--besoin db des missions afin pouvoir afficher Missions-->
<p>nombre d'heures de vol : </p>
<p>grade : <span th:text="${pilote.grade}"></span></p>
<!--besoin db des missions afin pouvoir afficher Missions-->
<p>liste des missions</p>
<p>type pilote : <span th:text="${pilote.type}"></span></p>
<p>Prenom : <span th:text="${pilote.prenom}"></span></p>
<p>Nom : <span th:text="${pilote.nom}"></span></p>
<p>Race : <span th:text="${pilote.race}"></span></p>
<p>Age à l'inscription : <span th:text="${pilote.age}"></span></p>
<p>Etat : <span th:text="${pilote.etat}"></span></p>
<p>Nombre d'heures de vol :
<span th:text="${nbHeure}"></span>
</p>
<p>Grade : <span th:text="${pilote.grade}"></span></p>
<p>Liste des missions :
<tr th:each="mission : ${missions}">
<td th:text="${mission.titre}"></td>
<td th:text="${mission.type}"></td>
<td th:text="${mission.resultat}"></td>
<td th:text="${mission.statut}"></td>
</tr>
</p>
<p>Rang pilote : <span th:text="${pilote.type}"></span></p>
<form th:action="@{/fichePilote}" method="post">
<p> Modifier état :
<select id="etat" name="etat">
<option th:each="etat : ${etat}" th:value="${etat}" th:text="${etat}"></option>
</select>
</p>
<input type="submit" value="Submit"/>
</form>
</main>
<footer>
<a href="/menu" class="menu">retour au menu</a>
<a href="/menu" class="menu">Retour au Menu</a>
</footer>
</main>
</body>
</html>
......@@ -16,38 +16,42 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</head>
<body>
<header>
<h1>inscription pilote</h1>
<h1><span class='faulty-letter'>{</span> Inscription pilote</h1>
</header>
<main>
<form action="inscriptionPilote" method="post">
<div class="box"/>
<div class="inscription">
<fieldset>
<legend>Inscrire un Pilote</legend>
<label class="label"/>
<div class="form-prenom">
<label for="prenom">prenom</label>
<div class="box">
<label for="prenom">Prenom</label>
<input type="text" id="prenom" name="prenom"/>
</div>
<div class="form-nom">
<label for="nom">nom</label>
<div class="box">
<label class="label" for="nom">Nom</label>
<input type="text" id="nom" name="nom"/>
<!--th:value="${user.nomnom}"-->
</div>
<div>
<label for="races">choisir une race :</label>
<div class='box'>
<label class="label" for="races">Choisir une race :</label>
<select id="races" name="races">
<option th:each="race : ${racePilotes}" th:value="${race}" th:text="${race}"></option>
</select>
</div>
<div class="form-age">
<label for="age">age</label>
<div class="box">
<label class="label" for="age">Age</label>
<input type="text" id="age" name="age"/>
</div>
<div class="button">
<input type="submit" value="Valider"/>
<input type="reset" value="Annuler"/>
</div>
</div>
</form>
</main>
<footer>
<a href="/menu" class="menu">retour au menu</a>
<a href="/menu" class="menu">Retour au Menu</a>
</footer>
</main>
</body>
</html>
......@@ -12,14 +12,14 @@
</head>
<body>
<header>
<h1>liste chasseur</h1>
<h1><span class='faulty-letter'>{</span> Liste chasseur</h1>
</header>
<main>
<table>
<tr>
<th>identifiant</th>
<th>type chasseur</th>
<th>etat chasseur</th>
<th>Id</th>
<th>Type chasseur</th>
<th>Etat chasseur</th>
</tr>
<tr th:each="chasseur: ${listeChasseur}">
<td>
......@@ -30,10 +30,10 @@
<td th:text="${chasseur.etat}"></td>
</tr>
</table>
</main>
<footer>
<a href="/menu" class="menu">retour au menu</a>
<a href="/menu" class="menu">Retour au Menu</a>
</footer>
</main>
</body>
</html>
......@@ -16,17 +16,10 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</head>
<body>
<header>
<h1>Liste Missions Terminées</h1>
<h1><span class='faulty-letter'>{</span> Liste Missions Terminées</h1>
</header>
<main>
<table>
<tr>
<th>Mission</th>
<th>Pilote(s)</th>
<th>Chasseur(s)</th>
<th>Resultat</th>
<th>Nombre d'heures</th>
</tr>
<tr th:each="mission : ${missions}">
<td th:text="${mission.titre}"></td>
<td>
......@@ -54,11 +47,12 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</span>
</td>
</tr>
</table>
</main>
<footer>
<a href="/menu" class="menu">retour au menu</a>
<a href="/menu" class="menu">Retour au Menu</a>
</footer>
</main>
</body>
</html>
......@@ -16,14 +16,15 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</head>
<body>
<header>
<h1>liste des pilotes</h1>
<h1>Trier des Pilotes</h1>
</header>
<main>
<div class="tri">
<a th:href="@{/listePiloteParType}"><p>Trier par rang de pilote</p></a>
<a th:href="@{/listePiloteParGrade}"><p>Trier par grade de pilote</p></a>
<a th:href="@{/listePiloteParEtat}"><p>Trier par état de pilote</p></a>
<a th:href="@{/listePiloteParType}"><p>Trier par rang</p></a>
<a th:href="@{/listePiloteParGrade}"><p>Trier par grade</p></a>
<a th:href="@{/listePiloteParEtat}"><p>Trier par etat</p></a>
</div>
<table>
<tr>
<th>Id pilote</th>
......@@ -36,7 +37,10 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<th>Etat</th>
</tr>
<tr th:each="pilote : ${pilotes}">
<td th:text="${pilote.idPilote}"></td>
<td>
<a th:href="'/fichePilote?id_pilote=' + ${pilote.idPilote}" th:text="${pilote.idPilote}">
</a>
</td>
<td th:text="${pilote.nom}"></td>
<td th:text="${pilote.prenom}"></td>
<td th:text="${pilote.age}"></td>
......@@ -44,15 +48,11 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<td th:text="${pilote.grade}"></td>
<td th:text="${pilote.type}"></td>
<td th:text="${pilote.etat}"></td>
<td>
<a th:href="'/fichePilote?id_pilote=' + ${pilote.idPilote}" th:text="'Fiche Pilote'">
</a>
</td>
</tr>
</table>
</main>
<footer>
<a href="/menu" class="menu">retour au menu</a>
<a href="/menu" class="menu">Retour au Menu</a>
</footer>
</body>
</html>
......@@ -5,7 +5,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
-->
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<title>TODO supply a title</title>
<title>Liste Pilote</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="/style.css"/>
......@@ -16,12 +16,12 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</head>
<body>
<header>
<h1>liste des pilotes par etat</h1>
<h1><span class='faulty-letter'>{</span> Liste des pilotes par etat</h1>
</header>
<main>
<form action="/listePiloteParEtat" method="post">
<div>
<label for="etats">choisir un etat :</label>
<label for="etats">Choisir un etat :</label>
<select id="etats" name="etats">
<option th:each="etat : ${etats}" th:value="${etat}" th:text="${etat}"></option>
</select>
......@@ -55,12 +55,11 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</tr>
</table>
<p>
<a href="/listePilote">retour au liste pilote</a>
<a href="/listePilote">Retour aux pilotes</a>
</p>
</main>
<footer>
<a href="/menu" class="menu">retour au menu</a>
<a href="/menu" class="menu">Retour au Menu</a>
</footer>
</body>
</html>
......@@ -16,12 +16,12 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</head>
<body>
<header>
<h1>liste des pilotes par grades</h1>
<h1><span class='faulty-letter'>{</span> Liste des pilotes par grades</h1>
</header>
<main>
<form action="/listePiloteParGrade" method="post">
<div>
<label for="grades">choisir un grade :</label>
<label for="grades">Choisir un grade :</label>
<select id="grades" name="grades">
<option th:each="grade : ${grades}" th:value="${grade}" th:text="${grade}"></option>
</select>
......@@ -55,7 +55,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</tr>
</table>
<p>
<a href="/listePilote">retour a la liste pilote</a>
<a href="/listePilote">retour aux pilotes</a>
</p>
</main>
<footer>
......
......@@ -16,7 +16,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</head>
<body>
<header>
<h1>liste des pilotes par rang</h1>
<h1><span class='faulty-letter'>{</span> Liste des pilotes par rang</h1>
</header>
<main>
<form action="/listePiloteParType" method="post">
......@@ -55,7 +55,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</tr>
</table>
<p>
<a href="/listePilote">retour au liste pilote</a>
<a href="/listePilote">Retour aux pilotes</a>
</p>
</main>
<footer>
......
......@@ -3,7 +3,7 @@
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
-->
<html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<title>Menu</title>
<meta charset="UTF-8">
......@@ -15,9 +15,8 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</style>
</head>
<body>
<header>
<h1>alliance rebelle</h1>
</header>
<p class='glowing-btn'>
<span class='glowing-txt'>{ AL<span class='faulty-letter'>LI</span>ANCE RE<span class='faulty-letter'>BE</span>LLE</p>
<main>
<h2>Pilote</h2>
<ul>
......@@ -33,9 +32,10 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<h2>Mission</h2>
<ul>
<li><a href="/nouvelleMission" class="menu">Nouvelle mission</a></li>
<li><a href="/listeMission" class="menu">Liste des missions terminée</a></li>
<li><a href="/clotureMission" class="menu">Clôturer une mission</a></li>
<li><a href="/listeMission" class="menu">Liste des missions</a></li>
<li><a href="/clotureMission" class="menu">Cloturer une mission</a></li>
</ul>
</main>
<footer> &#169 Elly Johad Vincent Fabien</footer>
</body>
</html>
......@@ -11,7 +11,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<link rel="stylesheet" href="/style.css">
</head>
<body>
<h1>Modifier Etat Chasseur</h1>
<h1><span class='faulty-letter'>{</span> Modifier Etat Chasseur</h1>
<form action="/modifierEtatChasseur" method="post">
<div>
<label for="etat">Etat du chasseur</label>
......
......@@ -13,19 +13,19 @@
</head>
<body>
<header>
<h1>nouveau chasseur</h1>
<h1><span class='faulty-letter'>{</span> Nouveau chasseur</h1>
</header>
<main>
<form action="/nouveauChasseur" method="post">
<div>
<fieldset>
<legend>selectionner un chasseur</legend>
<legend>Selectionner un chasseur</legend>
<div th:each="type : ${type}">
<input type="radio" th:id="${type}" th:name="typeChasseur" th:value="${type}" />
<input class='radio' type="radio" th:id="${type}" th:name="typeChasseur" th:value="${type}" />
<label th:for="${type}" th:text="${type}"></label>
</div>
<div>
<div class='button'>
<input type="submit" value="Valider"/>
<input type="reset" value="Annuler"/>
</div>
......
<!DOCTYPE html>
<!--
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
......@@ -5,42 +6,76 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
-->
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<title>nouvelle mission</title>
<title>Nouvelle Mission</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="/style.css">
<link href="https://fonts.cdnfonts.com/css/star-wars" rel="stylesheet">
<style>
@import url('https://fonts.cdnfonts.com/css/star-wars');
</style>
<link rel="stylesheet" href="/style.css"/>
</head>
<body>
<header>
<h1>nouvelle mission</h1>
<h1><span class='faulty-letter'>{</span> Nouvelle Mission</h1>
</header>
<main>
<form action="nouvelleMission" method="post">
<form class='mission' th:object="${mission}" th:action="@{/nouvelleMission}" method="post">
<div >
<div>
<label for="missions">choisir un type de mission :</label>
<select id="missions" name="missions">
<option th:each="mission : ${typeMissions}" th:value="${mission}" th:text="${mission}"></option>
<label for="typeMissions">Choisir une mission :</label>
<select id="typeMissions" name="typeMissions">
<option th:each="typeMission : ${typeMissions}" th:value="${typeMission}" th:text="${typeMission}"></option>
</select>
</div>
<div>
<label for="missions">titre</label>
<div class="box">
<label for="titre">Titre</label>
<input type="text" id="titre" name="titre"/>
</div>
<div>
<a href="/affectation">affecter du personnel a la mission</a>
<button type="submit">Creer mission</button>
</div>
</form>
<form class='mission' th:object="${affectation}" th:action="@{/affectation}" method="post">
<h2>Affectation</h2>
<div class="box">
<label for="piloteSelect">Choisir Pilote:</label>
<select id="piloteSelect" name="piloteSelect">
<option th:each="piloteDispo : ${pilotesDispo}" th:value="${piloteDispo.idPilote}"
th:text="${piloteDispo.nom + ' (' + piloteDispo.grade + ' ' + piloteDispo.etat + ')'}">
</option>
</select>
</div>
<div class="box">
<label for="chasseurSelect">Choisir Chasseur:</label>
<select id="chasseurSelect" name="chasseurSelect">
<option th:each="chasseurDispo : ${chasseursDispo}" th:value="${chasseurDispo.idChasseur}"
th:text="${chasseurDispo.type + ' ' + chasseurDispo.etat}">
</option>
</select>
</div>
<input type="submit" value="Valider"/>
<input type="reset" value="Annuler"/>
<button type="submit">Affecter</button>
</form>
</main>
<p>Mission id : <span th:text="${idMission}"></span>
<span> est affectée aux : </span>
</p>
<table>
<tr th:each="listPiloteTemp : ${listPiloteTemps}">
<td th:text="${listPiloteTemp.nom}"></td>
</tr>
<tr th:each="listChasseurTemp : ${listChasseurTemps}">
<td th:text="${listChasseurTemp.type}"></td>
</tr>
</table>
<form th:if="${affectationFormVisible}" th:object="${affectation}" th:action="@{/affectation/{idMission}}" method="post">
<button type="submit" name="affectationButton">Affectation</button>
</form>
<footer>
<a href="/menu" class="menu">retour au menu</a>
<a href="/menu" class="menu">Retour au Menu</a>
</footer>
</body>
</html>