Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
commit
c334b39a3a
24
css/formulaire.css
Normal file
24
css/formulaire.css
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
h1 {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
legend {
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 3%;
|
||||||
|
}
|
||||||
|
|
||||||
|
fieldset{
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 70%;
|
||||||
|
}
|
||||||
|
|
||||||
|
form {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="submit"]{
|
||||||
|
font-size: 15px;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
|||||||
padding: 13px 17px;
|
padding: 13px 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a
|
aMenu
|
||||||
{
|
{
|
||||||
color: white;
|
color: white;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@ -65,11 +65,6 @@ a
|
|||||||
transition: width 0.2s;
|
transition: width 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.underLineHover:hover
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.underLineHover:hover:after
|
.underLineHover:hover:after
|
||||||
{
|
{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
101
formulaire.html
101
formulaire.html
@ -2,19 +2,22 @@
|
|||||||
<html>
|
<html>
|
||||||
<header>
|
<header>
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
|
<link rel="stylesheet" href="css/formulaire.css" />
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<body>
|
||||||
<form method="post" action="./traitement.php" name="formulaire">
|
<form method="post" action="./traitement.php" name="formulaire">
|
||||||
<h1>Session de surf</h1>
|
<h1>Session de surf</h1>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset id="name_fieldset">
|
||||||
<legend>Nom et Prénom</legend>
|
<legend>Nom et Prénom</legend>
|
||||||
<input type="text" name="formulaire[nom]" placeholder="Nom">
|
<input type="text" name="formulaire[nom]" placeholder="Nom" required>
|
||||||
<input type="text" name="formulaire[prenom]" placeholder="Prénom">
|
<input type="text" name="formulaire[prenom]" placeholder="Prénom" required>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset id="localisation_fieldset">
|
||||||
<legend>Lieu et période</legend>
|
<legend>Lieu et période</legend>
|
||||||
<select name="spot" id="spot" placeholder="Spot">
|
<select name="spot" id="spot" placeholder="Spot" required>
|
||||||
<option value="ville1">Ville 1</option>
|
<option value="ville1">Ville 1</option>
|
||||||
<option value="ville2">Ville 2</option>
|
<option value="ville2">Ville 2</option>
|
||||||
<option value="ville3">Ville 3</option>
|
<option value="ville3">Ville 3</option>
|
||||||
@ -34,12 +37,98 @@
|
|||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset id="product_fieldset">
|
||||||
<legend>Produits utilisés</legend>
|
<legend>Produits utilisés</legend>
|
||||||
|
|
||||||
<input type="checkbox" name="creme_solaire" id="creme_solaire" />
|
<input type="checkbox" name="creme_solaire" id="creme_solaire" />
|
||||||
|
<label for="creme_solaire">Crème solaire</label>
|
||||||
|
|
||||||
|
<input type="checkbox" name="parfum" id="parfum" />
|
||||||
|
<label for="parfum">Parfum/Déodorant</label>
|
||||||
|
|
||||||
|
<input type="checkbox" name="creme_hydratante" id="creme_hydratante" />
|
||||||
|
<label for="creme_hydratante">Crème hydratante</label>
|
||||||
|
|
||||||
|
<input type="checkbox" name="maquillage" id="maquillage" />
|
||||||
|
<label for="maquillage">Maquillage</label>
|
||||||
|
|
||||||
|
<input type="checkbox" name="cigarettes" id="cigarettes" />
|
||||||
|
<label for="cigarettes">Cigarettes</label>
|
||||||
|
|
||||||
|
<input type="checkbox" name="engrais" id="engrais" />
|
||||||
|
<label for="engrais">Engrais/Pesticides</label>
|
||||||
|
|
||||||
|
<input type="checkbox" name="peinture" id="peinture" />
|
||||||
|
<label for="peinture">Peinture</label>
|
||||||
|
|
||||||
|
<input type="checkbox" name="autres_produits" id="autres_produits" />
|
||||||
|
<label for="autres_produits">Autres</label>
|
||||||
|
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
|
||||||
|
<fieldset id="population_fieldset">
|
||||||
|
<legend>Fréquentation</legend>
|
||||||
|
|
||||||
|
<label for="baigneurs">Nombre de baigneurs</label>
|
||||||
|
<input type="number" name="nb_baigneurs" id="baigneurs" value=0 min=0 max=100/>
|
||||||
|
|
||||||
|
<label for="baigneurs">Nombre de pratiquants d'activités nautiques</label>
|
||||||
|
<input type="number" name="pratiquant" id="pratiquant" value=0 min=0 max=100/>
|
||||||
|
|
||||||
|
<label for="baigneurs">Bâteaux de pêche</label>
|
||||||
|
<input type="number" name="bateau_peche" id="bateau_peche" value=0 min=0 max=100/>
|
||||||
|
|
||||||
|
<label for="baigneurs">Bâteaux de loisir</label>
|
||||||
|
<input type="number" name="bateau_loisir" id="bateau_loisir" value=0 min=0 max=100/>
|
||||||
|
|
||||||
|
<label for="baigneurs">Bâteaux à voile</label>
|
||||||
|
<input type="number" name="bateau_voile" id="bateau_voile" value=0 min=0 max=100/>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
<fieldset id="pollution_fieldset">
|
||||||
|
<legend>Pollution</legend>
|
||||||
|
|
||||||
|
<label for="quantite_microplastique">Microplastique</label>
|
||||||
|
<select name="quantite_microplastique" id="quantite_microplastique" >
|
||||||
|
<option value="Aucun">Aucun</option>
|
||||||
|
<option value="un_peu">Un peu</option>
|
||||||
|
<option value="moyen">Moyen</option>
|
||||||
|
<option value="beaucoup">Beaucoup</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<label for="dechets_select">Gros déchets plastiques</label>
|
||||||
|
<select name="dechets_select" id="dechets_select" >
|
||||||
|
<option value="Aucun">Aucun</option>
|
||||||
|
<option value="un_peu">Un peu</option>
|
||||||
|
<option value="moyen">Moyen</option>
|
||||||
|
<option value="beaucoup">Beaucoup</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<label for="petrole_select">Pétrole</label>
|
||||||
|
<select name="petrole_select" id="petrole_select">
|
||||||
|
<option value="Aucun">Aucun</option>
|
||||||
|
<option value="un_peu">Un peu</option>
|
||||||
|
<option value="moyen">Moyen</option>
|
||||||
|
<option value="beaucoup">Beaucoup</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<label for="autres_select">Autres (Velo, toilettes...)</label>
|
||||||
|
<select name="autres_select" id="autres_select">
|
||||||
|
<option value="Aucun">Aucun</option>
|
||||||
|
<option value="un_peu">Un peu</option>
|
||||||
|
<option value="moyen">Moyen</option>
|
||||||
|
<option value="beaucoup">Beaucoup</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
|
||||||
<input type="submit" value="Envoyer" />
|
<input type="submit" value="Envoyer" />
|
||||||
</form>
|
</form>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
10
menu.html
10
menu.html
@ -12,10 +12,10 @@
|
|||||||
<div id="blockSign">
|
<div id="blockSign">
|
||||||
<ul id="lineSign">
|
<ul id="lineSign">
|
||||||
<li class="colonneSign">
|
<li class="colonneSign">
|
||||||
<a class="underLineHover">Connexion</a>
|
<a class="aMenu underLineHover">Connexion</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="colonneSign">
|
<li class="colonneSign">
|
||||||
<a class="underLineHover">Inscription</a>
|
<a class="aMenu underLineHover">Inscription</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -23,13 +23,13 @@
|
|||||||
<nav id="blockMenu">
|
<nav id="blockMenu">
|
||||||
<ul id="lineMenu">
|
<ul id="lineMenu">
|
||||||
<li class="colonneMenu animationButtonMenu underLineHover">
|
<li class="colonneMenu animationButtonMenu underLineHover">
|
||||||
<a>Acceuil</a>
|
<a class="aMenu">Acceuil</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="colonneMenu animationButtonMenu underLineHover">
|
<li class="colonneMenu animationButtonMenu underLineHover">
|
||||||
<a>Profil</a>
|
<a class="aMenu">Profil</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="colonneMenu animationButtonMenu underLineHover">
|
<li class="colonneMenu animationButtonMenu underLineHover">
|
||||||
<a>Météo</a>
|
<a class="aMenu">Météo</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
10
php/Hystorique.php
Normal file
10
php/Hystorique.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Hystorique
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private Utilisateur $utilisateur;
|
||||||
|
private Spot $spot;
|
||||||
|
private Pointage $pointage;
|
||||||
|
}
|
9
php/Joueur.php
Normal file
9
php/Joueur.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Joueur
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private bool $estVivant;
|
||||||
|
private bool $estImposteur;
|
||||||
|
}
|
10
php/MeteoSpot.php
Normal file
10
php/MeteoSpot.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class MeteoSpot
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private int $houle;
|
||||||
|
private int $maree;
|
||||||
|
private int $vent;
|
||||||
|
}
|
9
php/MeteoVille.php
Normal file
9
php/MeteoVille.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class MeteoVille
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private int $temperature;
|
||||||
|
private int $vent;
|
||||||
|
}
|
14
php/Pointage.php
Normal file
14
php/Pointage.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Pointage
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private int $nbBaigneur;
|
||||||
|
private int $nbPratiquant;
|
||||||
|
private int $bateauPeche;
|
||||||
|
private int $bateauLoisir;
|
||||||
|
private int $bateauVoile;
|
||||||
|
private Produits $produit;
|
||||||
|
private int $niveauDechet;
|
||||||
|
}
|
9
php/Pollution.php
Normal file
9
php/Pollution.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Pollution
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private int $niveauPollution;
|
||||||
|
private string $description;
|
||||||
|
}
|
16
php/Produits.php
Normal file
16
php/Produits.php
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Produits
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private bool $estCremeSolaire;
|
||||||
|
private bool $estCremeParfum;
|
||||||
|
private bool $estCremeHydratante;
|
||||||
|
private bool $estMaquillage;
|
||||||
|
private bool $estEssence;
|
||||||
|
private bool $estCigarette;
|
||||||
|
private bool $estEngrais;
|
||||||
|
private bool $estPeinture;
|
||||||
|
private string $autreProduit;
|
||||||
|
}
|
11
php/Spot.php
Normal file
11
php/Spot.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Spot
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private string $nom;
|
||||||
|
private Ville $ville;
|
||||||
|
private MeteoSpot $meteo;
|
||||||
|
private Pollution $pollution;
|
||||||
|
}
|
13
php/Utilisateur.php
Normal file
13
php/Utilisateur.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Utilisateur
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private string $nom;
|
||||||
|
private string $prenom;
|
||||||
|
private string $pseudo;
|
||||||
|
private string $mail;
|
||||||
|
private string $password;
|
||||||
|
|
||||||
|
}
|
11
php/Ville.php
Normal file
11
php/Ville.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Ville
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private string $nom;
|
||||||
|
private string $codePostal;
|
||||||
|
private int $temperature;
|
||||||
|
private MeteoVille $meteo;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user