Skip to content
GitLab
Explore
Sign in
Register
Show whitespace changes
Inline
Side-by-side
src/main/java/fr/ldnr/starWars/services/PiloteService.java
View file @
27b85cca
...
...
@@ -9,7 +9,7 @@ import fr.ldnr.starWars.enumerations.EtatPilote;
import
fr.ldnr.starWars.enumerations.GradePilote
;
import
fr.ldnr.starWars.enumerations.RacePilote
;
import
fr.ldnr.starWars.enumerations.TypePilote
;
import
java.util.
Optional
;
import
java.util.
List
;
/**
*
...
...
@@ -19,16 +19,24 @@ public interface PiloteService {
public
Iterable
<
Pilote
>
findAll
();
public
Pilote
trouverPar
Nom
(
String
nom
);
public
Pilote
findBy
Nom
(
String
nom
);
public
Iterable
<
Pilote
>
trouverPar
Etat
(
EtatPilote
etat
);
public
List
<
Pilote
>
findBy
Etat
(
EtatPilote
etat
);
public
Iterable
<
Pilote
>
trouverPar
Grade
(
GradePilote
grade
);
public
List
<
Pilote
>
findBy
Grade
(
GradePilote
grade
);
public
Iterable
<
Pilote
>
trouverParType
(
TypePilote
type
);
public
List
<
Pilote
>
findByType
(
TypePilote
type
);
public
List
<
Pilote
>
findByRace
(
RacePilote
race
);
public
Iterable
<
RacePilote
>
listRace
();
public
Iterable
<
TypePilote
>
listType
();
public
Iterable
<
GradePilote
>
listGrade
();
public
Iterable
<
EtatPilote
>
listEtat
();
public
Pilote
save
(
Pilote
pilote
);
public
Pilote
findById
(
Integer
id_pilote
);
...
...
src/main/java/fr/ldnr/starWars/services/PiloteServiceImpl.java
View file @
27b85cca
...
...
@@ -12,11 +12,8 @@ import fr.ldnr.starWars.enumerations.TypePilote;
import
fr.ldnr.starWars.repositories.PiloteRepository
;
import
jakarta.persistence.EntityManager
;
import
jakarta.persistence.PersistenceContext
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
static
java
.
util
.
Collections
.
list
;
import
java.util.List
;
import
static
org
.
springframework
.
data
.
util
.
TypeUtils
.
type
;
import
org.springframework.stereotype.Service
;
/**
...
...
@@ -40,57 +37,66 @@ public class PiloteServiceImpl implements PiloteService {
}
@Override
public
Pilote
trouverParNom
(
String
nom
)
{
return
(
Pilote
)
entityManager
.
createQuery
(
"SELECT p FROM Pilote p WHERE p.nom = :nom"
)
.
setParameter
(
"nom"
,
nom
)
.
getSingleResult
();
}
@Override
public
Iterable
<
Pilote
>
trouverParEtat
(
EtatPilote
etat
)
{
List
<
Pilote
>
list
=
new
ArrayList
<>();
list
=
entityManager
.
createQuery
(
"FROM Pilote p WHERE p.etat_pilote = :etat"
)
.
setParameter
(
"etat"
,
etat
)
.
getResultList
();
public
Iterable
<
RacePilote
>
listRace
()
{
List
<
RacePilote
>
list
=
Arrays
.
asList
(
RacePilote
.
values
());
return
list
;
}
@Override
public
Iterable
<
Pilote
>
trouverParGrade
(
GradePilote
grade
)
{
List
<
Pilote
>
list
=
new
ArrayList
<>();
list
=
entityManager
.
createQuery
(
"FROM Pilote p WHERE p.grade = :grade"
)
.
setParameter
(
"grade"
,
grade
)
.
getResultList
();
public
Iterable
<
TypePilote
>
listType
()
{
List
<
TypePilote
>
list
=
Arrays
.
asList
(
TypePilote
.
values
());
return
list
;
}
@Override
public
Iterable
<
Pilote
>
trouverParType
(
TypePilote
type
)
{
List
<
Pilote
>
list
=
new
ArrayList
<>();
list
=
entityManager
.
createQuery
(
"SELECT p FROM Pilote p WHERE p.grade = :type"
)
.
setParameter
(
"type"
,
type
)
.
getResultList
();
public
Iterable
<
GradePilote
>
listGrade
()
{
List
<
GradePilote
>
list
=
Arrays
.
asList
(
GradePilote
.
values
());
return
list
;
}
@Override
public
Iterable
<
Race
Pilote
>
list
Race
()
{
List
<
Race
Pilote
>
list
=
Arrays
.
asList
(
Race
Pilote
.
values
());
public
Iterable
<
Etat
Pilote
>
list
Etat
()
{
List
<
Etat
Pilote
>
list
=
Arrays
.
asList
(
Etat
Pilote
.
values
());
return
list
;
}
@Override
public
Pilote
save
(
Pilote
pilote
)
{
pilote
.
setType
_pilote
(
TypePilote
.
APPRENTI
);
pilote
.
setType
(
TypePilote
.
APPRENTI
);
return
piloteRepository
.
save
(
pilote
);
}
@Override
public
Pilote
findById
(
Integer
id_pilote
)
{
Pilote
pilote
=
new
Pilote
();
pilote
=
(
Pilote
)
entityManager
.
createQuery
(
"SELECT p FROM Pilote p WHERE p.id
_p
ilote = :id"
)
pilote
=
(
Pilote
)
entityManager
.
createQuery
(
"SELECT p FROM Pilote p WHERE p.id
P
ilote = :id"
)
.
setParameter
(
"id"
,
id_pilote
).
getSingleResult
();
return
pilote
;
}
@Override
public
List
<
Pilote
>
findByEtat
(
EtatPilote
etat
)
{
return
piloteRepository
.
findByEtat
(
etat
);
}
@Override
public
Pilote
findByNom
(
String
nom
)
{
return
piloteRepository
.
findByNom
(
nom
);
}
@Override
public
List
<
Pilote
>
findByGrade
(
GradePilote
grade
)
{
return
piloteRepository
.
findByGrade
(
grade
);
}
@Override
public
List
<
Pilote
>
findByType
(
TypePilote
type
)
{
return
piloteRepository
.
findByType
(
type
);
}
@Override
public
List
<
Pilote
>
findByRace
(
RacePilote
race
)
{
return
piloteRepository
.
findByRace
(
race
);
}
}
src/main/resources/fonts/Star Wars.ttf
0 → 100644
View file @
27b85cca
File added
src/main/resources/img/screenshot000.jpg
0 → 100644
View file @
27b85cca
902 KiB
src/main/resources/img/ywing_starfighter_star_wars_3d_model_c4d_max_obj_fbx_ma_lwo_3ds_3dm_stl_4427505_o.jpg
0 → 100644
View file @
27b85cca
158 KiB
src/main/resources/static/style.css
View file @
27b85cca
@font-face
{
font-family
:
'Star Wars'
,
sans-serif
;
}
h1
{
font-family
:
'Star Wars'
,
sans-serif
;
}
body
{
font-family
:
'Star Wars'
,
sans-serif
;
background-image
:
url("https://p.turbosquid.com/ts-thumb/p4/gieJXZ/ZM/screenshot001/png/1650377346/1920x1080/fit_q99/cfea16e5fcc5a49514ffdb25a1eeb849c115d0eb/screenshot001.jpg")
;
background-size
:
50%
;
//
background-position
:
bottom
right
;
background-repeat
:
no-repeat
;
background-size
:
cover
;
}
body
{
display
:
flex
;
flex-direction
:
column
;
...
...
@@ -13,3 +31,42 @@ th{
a
{
color
:
yellow
;
}
.tri
{
display
:
flex
;
flex-direction
:
row
;
width
:
50%
;
justify-content
:
space-between
;
}
.box
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin
:
auto
;
}
.label
{
width
:
100px
;
/* Largeur souhaitée pour les labels */
text-align
:
right
;
/* Alignez le texte du label à droite */
margin-right
:
auto
;
/* Marge à droite pour l'espacement du texte du label */
margin-left
:
auto
;
}
.bouton
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin-left
:
auto
;
margin-right
:
auto
;
}
main
::before
{
content
:
""
;
position
:
absolute
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0.5
);
/* Adjust the last value (alpha) to control the transparency */
z-index
:
-1
;
/* Place the overlay behind the content */
}
\ No newline at end of file
src/main/resources/templates/affectation.html
0 → 100644
View file @
27b85cca
<!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>
src/main/resources/templates/clotureMission.html
View file @
27b85cca
...
...
@@ -5,35 +5,39 @@ 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>
C
loture
M
ission
</title>
<title>
c
loture
m
ission
</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>
C
loture
M
ission
</h1>
<h1>
c
loture
m
ission
</h1>
</header>
<main>
<form
action=
"clotureMission"
method=
"post"
>
<div>
<label
for=
"clotureMission"
>
N
ombre d'heure
</label>
<label
for=
"clotureMission"
>
n
ombre d'heure
</label>
<input
type=
"text"
id=
"heures"
name=
"heures"
/>
</div>
<div>
<label
for=
"resultat"
>
R
esultat
M
ission :
</label>
<label
for=
"resultat"
>
r
esultat
m
ission :
</label>
<select
id=
"resultat"
name=
"resultats"
>
<option
th:each=
"resultat : ${resultatMission}"
th:value=
"${resultat}"
th:text=
"${resultat}"
></option>
</select>
</div>
<div>
<label>
Dé
tail
</label>
<label>
de
tail
</label>
<div>
<label
for=
"pilote"
>
P
ilote
</label>
<label
for=
"pilote"
>
p
ilote
</label>
<select
id=
"pilote"
name=
"pilote"
>
<option
th:each=
"pilote : ${etatPilote}"
th:value=
"${etatPilote}"
th:text=
"${etatPilote}"
></option>
</select>
<label
for=
"chasseur"
>
C
hasseur
</label>
<label
for=
"chasseur"
>
c
hasseur
</label>
<select
id=
"chasseur"
name=
"chasseur"
>
<option
th:each=
"chasseur : ${etatChasseur}"
th:value=
"${etatChasseur}"
th:text=
"${etatChasseur}"
></option>
</select>
...
...
@@ -41,7 +45,8 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</div>
</form>
<footer>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
</footer>
</main>
</body>
</html>
src/main/resources/templates/ficheChasseur.html
View file @
27b85cca
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<title>
F
iche
C
hasseur
</title>
<title>
f
iche
c
hasseur
</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>
F
iche
C
hasseur
</h1>
<h1>
f
iche
c
hasseur
</h1>
</header>
<main>
<table>
<tr>
<th>
I
dentifiant
</th>
<th>
T
ype
C
hasseur
</th>
<th>
E
tat
C
hasseur
</th>
<th>
i
dentifiant
</th>
<th>
t
ype
c
hasseur
</th>
<th>
e
tat
c
hasseur
</th>
</tr>
<tr
th:each=
"chasseur: ${ficheChasseur}"
>
<td
th:text=
"${chasseur.id_chasseur}"
></td>
...
...
@@ -22,8 +27,10 @@
<td
th:text=
"${chasseur.etat_chasseur}"
></td>
</tr>
</table>
<a
th:href=
"@{/listeChasseur}"
>
retour a la liste des chasseurs
</a>
<footer>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
</footer>
</main>
</body>
</html>
src/main/resources/templates/fichePilote.html
View file @
27b85cca
...
...
@@ -5,28 +5,34 @@ 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>
F
iche
P
ilote
</title>
<title>
f
iche
p
ilote
</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>
F
iche
P
ilote
</h1>
<h1>
f
iche
p
ilote
</h1>
</header>
<p>
Prénom :
<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_inscription}"
></span></p>
<p>
État :
<span
th:text=
"${pilote.etat_pilote}"
></span></p>
<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>
N
ombre d'heures de vol :
</p>
<p>
G
rade :
<span
th:text=
"${pilote.grade}"
></span></p>
<p>
n
ombre d'heures de vol :
</p>
<p>
g
rade :
<span
th:text=
"${pilote.grade}"
></span></p>
<!--besoin db des missions afin pouvoir afficher Missions-->
<p>
L
iste des
M
issions
</p>
<p>
T
ype pilote :
<span
th:text=
"${pilote.type
_pilote
}"
></span></p>
<p>
l
iste des
m
issions
</p>
<p>
t
ype pilote :
<span
th:text=
"${pilote.type}"
></span></p>
<footer>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
</footer>
</main>
</body>
</html>
src/main/resources/templates/inscriptionPilote.html
View file @
27b85cca
...
...
@@ -5,40 +5,49 @@ 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>
I
nscription
P
ilote
</title>
<title>
i
nscription
p
ilote
</title>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<link
rel=
"stylesheet"
href=
"/style.css"
>
<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>
I
nscription
P
ilote
</h1>
<h1>
i
nscription
p
ilote
</h1>
</header>
<main>
<form
action=
"inscriptionPilote"
method=
"post"
>
<div>
<label
for=
"prenom"
>
Prenom
</label>
<div
class=
"box"
/>
<label
class=
"label"
/>
<div
class=
"form-prenom"
>
<label
for=
"prenom"
>
prenom
</label>
<input
type=
"text"
id=
"prenom"
name=
"prenom"
/>
</div>
<div
>
<label
for=
"nom"
>
N
om
</label>
<div
class=
"form-nom"
>
<label
for=
"nom"
>
n
om
</label>
<input
type=
"text"
id=
"nom"
name=
"nom"
/>
<!--th:value="${user.nomnom}"-->
</div>
<div>
<label
for=
"races"
>
C
ho
ose a
race :
</label>
<label
for=
"races"
>
c
ho
isir une
race :
</label>
<select
id=
"races"
name=
"races"
>
<option
th:each=
"race : ${racePilotes}"
th:value=
"${race}"
th:text=
"${race}"
></option>
</select>
</div>
<div
>
<label
for=
"age"
>
A
ge
</label>
<div
class=
"form-age"
>
<label
for=
"age"
>
a
ge
</label>
<input
type=
"text"
id=
"age"
name=
"age"
/>
</div>
<input
type=
"submit"
value=
"
Submit
"
/>
<input
type=
"submit"
value=
"
Valider
"
/>
<input
type=
"reset"
value=
"Annuler"
/>
</div>
</form>
<footer>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
</footer>
</main>
</body>
</html>
src/main/resources/templates/listeChasseur.html
View file @
27b85cca
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<title>
L
iste
C
hasseur
</title>
<title>
l
iste
c
hasseur
</title>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<link
rel=
"stylesheet"
href=
"/style.css"
>
<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>
L
iste
C
hasseur
</h1>
<h1>
l
iste
c
hasseur
</h1>
</header>
<
form
action=
"/nouveauChasseur"
method=
"post"
>
<
main
>
<table>
<tr>
<th>
I
dentifiant
chasseur
</th>
<th>
T
ype chasseur
</th>
<th>
E
tat chasseur
</th>
<th>
i
dentifiant
</th>
<th>
t
ype chasseur
</th>
<th>
e
tat chasseur
</th>
</tr>
<tr>
<td
th:each=
"chasseur : ${chasseur}"
th:text=
"${chasseur.id_chasseur}"
></td>
<td
th:each=
"chasseur : ${chasseur}"
th:text=
"${chasseur.type}"
></td>
<td
th:each=
"chasseur : ${chasseur}"
th:text=
"${chasseur.etat}"
></td>
<tr
th:each=
"chasseur: ${listeChasseur}"
>
<td>
<a
th:href=
"'/ficheChasseur?id_chasseur=' + ${chasseur.idChasseur}"
th:text=
"${chasseur.idChasseur}"
>
</a>
</td>
<td
th:text=
"${chasseur.type}"
></td>
<td
th:text=
"${chasseur.etat}"
></td>
</tr>
</table>
</form>
<footer>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
</footer>
</main>
</body>
</html>
src/main/resources/templates/listeMission.html
View file @
27b85cca
...
...
@@ -5,32 +5,38 @@ 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>
L
iste
M
ission
</title>
<title>
l
iste
m
ission
</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>
L
iste
M
ission
</h1>
<h1>
l
iste
m
ission
</h1>
</header>
<main>
<div>
<label
for=
"tri mission"
>
s
é
lection de mission :
</label>
<label
for=
"tri mission"
>
s
e
lection de mission :
</label>
<select
name=
"mission"
id=
"tri-mission"
>
<option
value=
""
>
-
-Please choose an
option-
-
</option>
<option
value=
"Terminée"
>
T
ermin
é
e
</option>
<option
value=
"En cours"
>
E
n
C
ours
</option>
<option
value=
"Victoire"
>
V
ictoire
</option>
<option
value=
"Défaite"
>
Dé
faite
</option>
<option
value=
"Entrainement"
>
E
ntrainement
</option>
<option
value=
"Combat"
>
C
ombat
</option>
<option
value=
""
>
-
choisir une
option-
</option>
<option
value=
"Terminée"
>
t
ermin
e
e
</option>
<option
value=
"En cours"
>
e
n
c
ours
</option>
<option
value=
"Victoire"
>
v
ictoire
</option>
<option
value=
"Défaite"
>
de
faite
</option>
<option
value=
"Entrainement"
>
e
ntrainement
</option>
<option
value=
"Combat"
>
c
ombat
</option>
</select>
</div>
<footer>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
</footer>
</main>
</body>
</html>
src/main/resources/templates/listePilote.html
View file @
27b85cca
...
...
@@ -5,15 +5,25 @@ 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>
L
iste
P
ilote
</title>
<title>
l
iste
p
ilote
</title>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<link
rel=
"stylesheet"
href=
"/style.css"
>
<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>
L
iste
P
ilote
</h1>
<h1>
l
iste
des p
ilote
s
</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>
</div>
<table>
<tr>
<th>
Id pilote
</th>
...
...
@@ -26,19 +36,23 @@ 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.id
_p
ilote}"
></td>
<td
th:text=
"${pilote.id
P
ilote}"
></td>
<td
th:text=
"${pilote.nom}"
></td>
<td
th:text=
"${pilote.prenom}"
></td>
<td
th:text=
"${pilote.age
_inscription
}"
></td>
<td
th:text=
"${pilote.age}"
></td>
<td
th:text=
"${pilote.race}"
></td>
<td
th:text=
"${pilote.grade}"
></td>
<td
th:text=
"${pilote.type_pilote}"
></td>
<td
th:text=
"${pilote.etat_pilote}"
></td>
<td><a
th:href=
"'/fichePilote?id_pilote=' + ${pilote.id_pilote}"
>
Voir la fiche du Pilote
</a></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"
>
R
etour au
M
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
</footer>
</body>
</html>
src/main/resources/templates/listePiloteParEtat.html
0 → 100644
View file @
27b85cca
<!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
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<title>
TODO supply a title
</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>
liste des pilotes par etat
</h1>
</header>
<main>
<form
action=
"/listePiloteParEtat"
method=
"post"
>
<div>
<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>
<input
type=
"submit"
value=
"Trier"
/>
</div>
</form>
<table>
<tr>
<th>
Id pilote
</th>
<th>
Nom
</th>
<th>
Prenom
</th>
<th>
Age
</th>
<th>
Race
</th>
<th>
Grade
</th>
<th>
Type
</th>
<th>
Etat
</th>
</tr>
<tr
th:each=
"pilote : ${pilotes}"
>
<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>
<td
th:text=
"${pilote.race}"
></td>
<td
th:text=
"${pilote.grade}"
></td>
<td
th:text=
"${pilote.type}"
></td>
<td
th:text=
"${pilote.etat}"
></td>
</tr>
</table>
<p>
<a
href=
"/listePilote"
>
retour au liste pilote
</a>
</p>
</main>
<footer>
<a
href=
"/menu"
class=
"menu"
>
retour au menu
</a>
</footer>
</body>
</html>
src/main/resources/templates/listePiloteParGrade.html
0 → 100644
View file @
27b85cca
<!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
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<title>
TODO supply a title
</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>
liste des pilotes par grades
</h1>
</header>
<main>
<form
action=
"/listePiloteParGrade"
method=
"post"
>
<div>
<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>
<input
type=
"submit"
value=
"Trier"
/>
</div>
</form>
<table>
<tr>
<th>
Id pilote
</th>
<th>
Nom
</th>
<th>
Prenom
</th>
<th>
Age
</th>
<th>
Race
</th>
<th>
Grade
</th>
<th>
Type
</th>
<th>
Etat
</th>
</tr>
<tr
th:each=
"pilote : ${pilotes}"
>
<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>
<td
th:text=
"${pilote.race}"
></td>
<td
th:text=
"${pilote.grade}"
></td>
<td
th:text=
"${pilote.type}"
></td>
<td
th:text=
"${pilote.etat}"
></td>
</tr>
</table>
<p>
<a
href=
"/listePilote"
>
retour a la liste pilote
</a>
</p>
</main>
<footer>
<a
href=
"/menu"
class=
"menu"
>
Retour au Menu
</a>
</footer>
</body>
</html>
src/main/resources/templates/listePiloteParType.html
0 → 100644
View file @
27b85cca
<!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
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<title>
TODO supply a title
</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>
liste des pilotes par rang
</h1>
</header>
<main>
<form
action=
"/listePiloteParType"
method=
"post"
>
<div>
<label
for=
"types"
>
choisir un rang :
</label>
<select
id=
"types"
name=
"types"
>
<option
th:each=
"type : ${types}"
th:value=
"${type}"
th:text=
"${type}"
></option>
</select>
<input
type=
"submit"
value=
"Trier"
/>
</div>
</form>
<table>
<tr>
<th>
Id pilote
</th>
<th>
Nom
</th>
<th>
Prenom
</th>
<th>
Age
</th>
<th>
Race
</th>
<th>
Grade
</th>
<th>
Type
</th>
<th>
Etat
</th>
</tr>
<tr
th:each=
"pilote : ${pilotes}"
>
<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>
<td
th:text=
"${pilote.race}"
></td>
<td
th:text=
"${pilote.grade}"
></td>
<td
th:text=
"${pilote.type}"
></td>
<td
th:text=
"${pilote.etat}"
></td>
</tr>
</table>
<p>
<a
href=
"/listePilote"
>
retour au liste pilote
</a>
</p>
</main>
<footer>
<a
href=
"/menu"
class=
"menu"
>
Retour au Menu
</a>
</footer>
</body>
</html>
src/main/resources/templates/menu.html
View file @
27b85cca
...
...
@@ -7,32 +7,35 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<head>
<title>
Menu
</title>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<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>
ALLIANCE REBELLE
</h1>
<h1>
alliance rebelle
</h1>
</header>
<main>
<h2>
P
ilote
</h2>
<h2>
p
ilote
</h2>
<ul>
<li><a
href=
"/inscriptionPilote"
class=
"menu"
>
I
nscription d'un nouveau pilote
</a></li>
<li><a
href=
"/listePilote"
class=
"menu"
>
L
iste des pilotes
actifs
</a></li>
<li><a
href=
"/inscriptionPilote"
class=
"menu"
>
i
nscription d'un nouveau pilote
</a></li>
<li><a
href=
"/listePilote"
class=
"menu"
>
l
iste des pilotes
</a></li>
</ul>
<h2>
C
hasseur
</h2>
<h2>
c
hasseur
</h2>
<ul>
<li><a
href=
"/nouveauChasseur"
class=
"menu"
>
A
jouter un chasseur
à
la flotte
</a></li>
<li><a
href=
"/listeChasseur"
class=
"menu"
>
L
iste des chasseurs
</a></li>
<li><a
href=
"/nouveauChasseur"
class=
"menu"
>
a
jouter un chasseur
a
la flotte
</a></li>
<li><a
href=
"/listeChasseur"
class=
"menu"
>
l
iste des chasseurs
</a></li>
</ul>
<h2>
M
ission
</h2>
<h2>
m
ission
</h2>
<ul>
<li><a
href=
"/nouvelleMission"
class=
"menu"
>
N
ouvelle mission
</a></li>
<li><a
href=
"/listeMission"
class=
"menu"
>
L
iste des missions
</a></li>
<li><a
href=
"/clotureMission"
class=
"menu"
>
Clô
turer une mission
</a></li>
<li><a
href=
"/nouvelleMission"
class=
"menu"
>
n
ouvelle mission
</a></li>
<li><a
href=
"/listeMission"
class=
"menu"
>
l
iste des missions
</a></li>
<li><a
href=
"/clotureMission"
class=
"menu"
>
clo
turer une mission
</a></li>
</ul>
</main>
<footer></footer>
</body>
</html>
src/main/resources/templates/nouveauChasseur.html
View file @
27b85cca
...
...
@@ -2,28 +2,36 @@
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<title>
N
ouveau
C
hasseur
</title>
<title>
n
ouveau
c
hasseur
</title>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<link
rel=
"stylesheet"
href=
"/style.css"
>
<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>
Nouveau Chasseur
</h1></header>
<form
action=
"/nouveauChasseur"
method=
"get"
>
<header>
<h1>
nouveau chasseur
</h1>
</header>
<main>
<form
action=
"/nouveauChasseur"
method=
"post"
>
<div>
<fieldset>
<legend>
S
electionner un chasseur
</legend>
<legend>
s
electionner un chasseur
</legend>
<div
th:each=
"type : ${type}"
>
<input
type=
"radio"
th:id=
"${type}"
th:name=
"typeChasseur"
th:value=
"${type}"
/>
<label
th:for=
"${type}"
th:text=
"${type}"
></label>
</div>
</fieldset>
<div>
<input
type=
"submit"
value=
"
Envoy
er"
/>
<input
type=
"submit"
value=
"
Valid
er"
/>
<input
type=
"reset"
value=
"Annuler"
/>
</div>
</div>
</form>
</main>
<footer>
<a
href=
"/menu"
class=
"menu"
>
Retour au Menu
</a>
</footer>
...
...
src/main/resources/templates/nouvelleMission.html
View file @
27b85cca
...
...
@@ -5,31 +5,42 @@ 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>
N
ouvelle
M
ission
</title>
<title>
n
ouvelle
m
ission
</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>
N
ouvelle
M
ission
</h1>
<h1>
n
ouvelle
m
ission
</h1>
</header>
<main>
<form
action=
"nouvelleMission"
method=
"post"
>
<div>
<label
for=
"missions"
>
C
hoisir une mission :
</label>
<label
for=
"missions"
>
c
hoisir un
type d
e mission :
</label>
<select
id=
"missions"
name=
"missions"
>
<option
th:each=
"mission : ${typeMissions}"
th:value=
"${mission}"
th:text=
"${mission}"
></option>
</select>
</div>
<div>
<label
for=
"missions"
>
T
itre
</label>
<label
for=
"missions"
>
t
itre
</label>
<input
type=
"text"
id=
"titre"
name=
"titre"
/>
</div>
<div>
<a
href=
"/affectation"
>
affecter du personnel a la mission
</a>
</div>
<input
type=
"submit"
value=
"Valider"
/>
<input
type=
"reset"
value=
"Annuler"
/>
</form>
</main>
<footer>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
</footer>
</body>
</html>
Prev
1
2
Next