modif des formulaires connexion et inscriptions, et ajout de recupMDP
This commit is contained in:
commit
b9bf5b2edb
2
.idea/workspace.xml
generated
2
.idea/workspace.xml
generated
@ -61,7 +61,7 @@
|
|||||||
<option name="number" value="Default" />
|
<option name="number" value="Default" />
|
||||||
<option name="presentableId" value="Default" />
|
<option name="presentableId" value="Default" />
|
||||||
<updated>1607026953826</updated>
|
<updated>1607026953826</updated>
|
||||||
<workItem from="1607026956145" duration="12994000" />
|
<workItem from="1607026956145" duration="13623000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
|
@ -1,24 +1,72 @@
|
|||||||
|
html{
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
font-size: 4em;
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: bold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
margin-top: 3%;
|
margin-top: 3%;
|
||||||
|
font-size:3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset{
|
fieldset{
|
||||||
|
text-align: justify;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 70%;
|
border-radius: 10px;
|
||||||
|
border-width: 5px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: aqua;
|
||||||
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
form {
|
form{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="submit"]{
|
|
||||||
|
input[type="text"]{
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
input[type="submit"]{
|
||||||
|
text-align:center;
|
||||||
|
font-size: 15px;
|
||||||
|
margin-top:10px;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div{
|
||||||
|
margin: 10px 0px 10px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#div_submit{
|
||||||
|
align-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
form select input{
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#localisation_fieldset input{
|
||||||
|
margin:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#localisation_fieldset select{
|
||||||
|
margin:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#population_fieldset input{
|
||||||
|
margin:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#product_fieldset label{
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
52
css/menu.css
52
css/menu.css
@ -1,8 +1,14 @@
|
|||||||
|
#blockMenu
|
||||||
|
{
|
||||||
|
float: right;
|
||||||
|
width: 95%;
|
||||||
|
}
|
||||||
|
|
||||||
#lineMenu
|
#lineMenu
|
||||||
{
|
{
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-color: #0064b5;
|
background-color: #0073be;
|
||||||
height: 49px;
|
height: 49px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
@ -15,42 +21,31 @@
|
|||||||
padding: 14px 20px;
|
padding: 14px 20px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: white;
|
color: white;
|
||||||
transition: background-color 0.2s, padding 0.2s, font-size 0.2s,transform 0.2s;
|
transition: background-color 0.1s, padding 0.1s, font-size 0.1s,transform 0.2s;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.animationButtonMenu:hover
|
.animationButtonMenu:hover
|
||||||
{
|
{
|
||||||
background-color: #0073be;
|
background-color: #197abb;
|
||||||
font-size: 19px;
|
font-size: 19px;
|
||||||
padding: 13px 17px;
|
padding: 13px 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
aMenu
|
.aMenu
|
||||||
{
|
{
|
||||||
color: white;
|
color: white;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#lineSign
|
|
||||||
{
|
|
||||||
list-style-type: none;
|
|
||||||
overflow: hidden;
|
|
||||||
background-color: #0073be;
|
|
||||||
height: 35px;
|
|
||||||
margin: 0px;
|
|
||||||
padding: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.colonneSign
|
.colonneSign
|
||||||
{
|
{
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 15px;
|
font-size: 17px;
|
||||||
padding: 10px 8px;
|
padding: 14px 20px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: white;
|
color: white;
|
||||||
transition: font-size 0.2s,transform 0.2s;
|
transition: background-color 0.2s, padding 0.2s, font-size 0.2s,transform 0.2s;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,3 +64,24 @@ aMenu
|
|||||||
{
|
{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#blockLogo
|
||||||
|
{
|
||||||
|
float: left;
|
||||||
|
width: 5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#logo
|
||||||
|
{
|
||||||
|
width: 100%;
|
||||||
|
height: 110px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#blockDeco
|
||||||
|
{
|
||||||
|
width: 95%;
|
||||||
|
height: 10px;
|
||||||
|
float: right;
|
||||||
|
background-color: #5496c2;
|
||||||
|
}
|
||||||
|
@ -10,27 +10,31 @@
|
|||||||
<h1>Session de surf</h1>
|
<h1>Session de surf</h1>
|
||||||
|
|
||||||
<fieldset id="name_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" required>
|
<input type="text" name="formulaire[nom]" placeholder="Nom" required>
|
||||||
<input type="text" name="formulaire[prenom]" placeholder="Prénom" required>
|
<input type="text" name="formulaire[prenom]" placeholder="Prénom" required>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset id="localisation_fieldset">
|
<fieldset id="localisation_fieldset">
|
||||||
<legend>Lieu et période</legend>
|
<legend> Lieu et période </legend>
|
||||||
<select name="spot" id="spot" placeholder="Spot" required>
|
<label for="spot">Spot</label>
|
||||||
|
<select name="spot" id="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>
|
||||||
</select>
|
</select>
|
||||||
|
<br />
|
||||||
<label>Date de début</label>
|
<label>Date de début</label>
|
||||||
<input type="date" name="date-debut" value="1776-10-01" min="1776-10-01" max="2100-12-31"/>
|
<input type="date" name="date-debut" value="1776-10-01" min="1776-10-01" max="2100-12-31"/>
|
||||||
|
<br />
|
||||||
|
|
||||||
<label>Date de fin</label>
|
<label>Date de fin</label>
|
||||||
<input type="date" name="date-fin" value="1776-10-01" min="1776-10-01" max="2100-12-31"/>
|
<input type="date" name="date-fin" value="1776-10-01" min="1776-10-01" max="2100-12-31"/>
|
||||||
|
<br />
|
||||||
|
|
||||||
<label>Heure début</label>
|
<label>Heure début</label>
|
||||||
<input type="time" id="begin-time" name="begin-time" min="00:00" max=23:59 required>
|
<input type="time" id="begin-time" name="begin-time" min="00:00" max=23:59 required>
|
||||||
|
<br />
|
||||||
|
|
||||||
<label>Heure de fin</label>
|
<label>Heure de fin</label>
|
||||||
<input type="time" id="bend-time" name="end-time" min="00:00" max=23:59 required>
|
<input type="time" id="bend-time" name="end-time" min="00:00" max=23:59 required>
|
||||||
@ -38,58 +42,76 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset id="product_fieldset">
|
<fieldset id="product_fieldset">
|
||||||
<legend>Produits utilisés</legend>
|
<legend> Produits utilisés </legend>
|
||||||
|
|
||||||
|
<div>
|
||||||
<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>
|
<label for="creme_solaire">Crème solaire</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
<input type="checkbox" name="parfum" id="parfum" />
|
<input type="checkbox" name="parfum" id="parfum" />
|
||||||
<label for="parfum">Parfum/Déodorant</label>
|
<label for="parfum">Parfum/Déodorant</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
<input type="checkbox" name="creme_hydratante" id="creme_hydratante" />
|
<input type="checkbox" name="creme_hydratante" id="creme_hydratante" />
|
||||||
<label for="creme_hydratante">Crème hydratante</label>
|
<label for="creme_hydratante">Crème hydratante</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div>
|
||||||
<input type="checkbox" name="maquillage" id="maquillage" />
|
<input type="checkbox" name="maquillage" id="maquillage" />
|
||||||
<label for="maquillage">Maquillage</label>
|
<label for="maquillage">Maquillage</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
<input type="checkbox" name="cigarettes" id="cigarettes" />
|
<input type="checkbox" name="cigarettes" id="cigarettes" />
|
||||||
<label for="cigarettes">Cigarettes</label>
|
<label for="cigarettes">Cigarettes</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
<input type="checkbox" name="engrais" id="engrais" />
|
<input type="checkbox" name="engrais" id="engrais" />
|
||||||
<label for="engrais">Engrais/Pesticides</label>
|
<label for="engrais">Engrais/Pesticides</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
<input type="checkbox" name="peinture" id="peinture" />
|
<input type="checkbox" name="peinture" id="peinture" />
|
||||||
<label for="peinture">Peinture</label>
|
<label for="peinture">Peinture</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
<input type="checkbox" name="autres_produits" id="autres_produits" />
|
<input type="checkbox" name="autres_produits" id="autres_produits" />
|
||||||
<label for="autres_produits">Autres</label>
|
<label for="autres_produits">Autres</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|
||||||
<fieldset id="population_fieldset">
|
<fieldset id="population_fieldset">
|
||||||
<legend>Fréquentation</legend>
|
<legend> Fréquentation </legend>
|
||||||
|
|
||||||
<label for="baigneurs">Nombre de baigneurs</label>
|
<label for="baigneurs">Nombre de baigneurs</label>
|
||||||
<input type="number" name="nb_baigneurs" id="baigneurs" value=0 min=0 max=100/>
|
<input type="number" name="nb_baigneurs" id="baigneurs" value=0 min=0 max=100/>
|
||||||
|
<br />
|
||||||
<label for="baigneurs">Nombre de pratiquants d'activités nautiques</label>
|
<label for="baigneurs">Nombre de pratiquants d'activités nautiques</label>
|
||||||
<input type="number" name="pratiquant" id="pratiquant" value=0 min=0 max=100/>
|
<input type="number" name="pratiquant" id="pratiquant" value=0 min=0 max=100/>
|
||||||
|
<br />
|
||||||
<label for="baigneurs">Bâteaux de pêche</label>
|
<label for="baigneurs">Bâteaux de pêche</label>
|
||||||
<input type="number" name="bateau_peche" id="bateau_peche" value=0 min=0 max=100/>
|
<input type="number" name="bateau_peche" id="bateau_peche" value=0 min=0 max=100/>
|
||||||
|
<br />
|
||||||
<label for="baigneurs">Bâteaux de loisir</label>
|
<label for="baigneurs">Bâteaux de loisir</label>
|
||||||
<input type="number" name="bateau_loisir" id="bateau_loisir" value=0 min=0 max=100/>
|
<input type="number" name="bateau_loisir" id="bateau_loisir" value=0 min=0 max=100/>
|
||||||
|
<br />
|
||||||
<label for="baigneurs">Bâteaux à voile</label>
|
<label for="baigneurs">Bâteaux à voile</label>
|
||||||
<input type="number" name="bateau_voile" id="bateau_voile" value=0 min=0 max=100/>
|
<input type="number" name="bateau_voile" id="bateau_voile" value=0 min=0 max=100/>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset id="pollution_fieldset">
|
<fieldset id="pollution_fieldset">
|
||||||
<legend>Pollution</legend>
|
<legend> Pollution </legend>
|
||||||
|
|
||||||
|
<div>
|
||||||
<label for="quantite_microplastique">Microplastique</label>
|
<label for="quantite_microplastique">Microplastique</label>
|
||||||
<select name="quantite_microplastique" id="quantite_microplastique" >
|
<select name="quantite_microplastique" id="quantite_microplastique" >
|
||||||
<option value="Aucun">Aucun</option>
|
<option value="Aucun">Aucun</option>
|
||||||
@ -97,8 +119,9 @@
|
|||||||
<option value="moyen">Moyen</option>
|
<option value="moyen">Moyen</option>
|
||||||
<option value="beaucoup">Beaucoup</option>
|
<option value="beaucoup">Beaucoup</option>
|
||||||
</select>
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
<label for="dechets_select">Gros déchets plastiques</label>
|
<label for="dechets_select">Gros déchets plastiques</label>
|
||||||
<select name="dechets_select" id="dechets_select" >
|
<select name="dechets_select" id="dechets_select" >
|
||||||
<option value="Aucun">Aucun</option>
|
<option value="Aucun">Aucun</option>
|
||||||
@ -106,8 +129,9 @@
|
|||||||
<option value="moyen">Moyen</option>
|
<option value="moyen">Moyen</option>
|
||||||
<option value="beaucoup">Beaucoup</option>
|
<option value="beaucoup">Beaucoup</option>
|
||||||
</select>
|
</select>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
<div>
|
||||||
<label for="petrole_select">Pétrole</label>
|
<label for="petrole_select">Pétrole</label>
|
||||||
<select name="petrole_select" id="petrole_select">
|
<select name="petrole_select" id="petrole_select">
|
||||||
<option value="Aucun">Aucun</option>
|
<option value="Aucun">Aucun</option>
|
||||||
@ -115,20 +139,22 @@
|
|||||||
<option value="moyen">Moyen</option>
|
<option value="moyen">Moyen</option>
|
||||||
<option value="beaucoup">Beaucoup</option>
|
<option value="beaucoup">Beaucoup</option>
|
||||||
</select>
|
</select>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
<div>
|
||||||
<label for="autres_select">Autres (Velo, toilettes...)</label>
|
<label for="autres_select">Autres (Vélos, toilettes...)</label>
|
||||||
<select name="autres_select" id="autres_select">
|
<select name="autres_select" id="autres_select">
|
||||||
<option value="Aucun">Aucun</option>
|
<option value="Aucun">Aucun</option>
|
||||||
<option value="un_peu">Un peu</option>
|
<option value="un_peu">Un peu</option>
|
||||||
<option value="moyen">Moyen</option>
|
<option value="moyen">Moyen</option>
|
||||||
<option value="beaucoup">Beaucoup</option>
|
<option value="beaucoup">Beaucoup</option>
|
||||||
</select>
|
</select>
|
||||||
|
<div>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
<input type="submit" value="Envoyer" id="submit" text-align="center"/>
|
||||||
|
|
||||||
<input type="submit" value="Envoyer" />
|
|
||||||
</form>
|
</form>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
BIN
img/logo.jpg
Normal file
BIN
img/logo.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 95 KiB |
BIN
img/logoV2.jpg
Normal file
BIN
img/logoV2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 68 KiB |
26
menu.html
26
menu.html
@ -5,33 +5,33 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<link rel="stylesheet" href="css/index.css">
|
<link rel="stylesheet" href="css/index.css">
|
||||||
<link rel="stylesheet" href="css/menu.css">
|
<link rel="stylesheet" href="css/menu.css">
|
||||||
|
<title></title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<!--Block de connexion et d'inscription-->
|
<div id="blockLogo">
|
||||||
<div id="blockSign">
|
<img id="logo" src="img/logoV2.jpg">
|
||||||
<ul id="lineSign">
|
|
||||||
<li class="colonneSign">
|
|
||||||
<a class="aMenu underLineHover">Connexion</a>
|
|
||||||
</li>
|
|
||||||
<li class="colonneSign">
|
|
||||||
<a class="aMenu underLineHover">Inscription</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
<!--Block de Menu-->
|
<!--Block de Menu-->
|
||||||
<nav id="blockMenu">
|
<nav id="blockMenu">
|
||||||
<ul id="lineMenu">
|
<ul id="lineMenu">
|
||||||
<li class="colonneMenu animationButtonMenu underLineHover">
|
<li class="colonneMenu animationButtonMenu underLineHover">
|
||||||
<a class="aMenu">Acceuil</a>
|
<a class="aMenu" href="#">Acceuil</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="colonneMenu animationButtonMenu underLineHover">
|
<li class="colonneMenu animationButtonMenu underLineHover">
|
||||||
<a class="aMenu">Profil</a>
|
<a class="aMenu" href="#">Profil</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="colonneMenu animationButtonMenu underLineHover">
|
<li class="colonneMenu animationButtonMenu underLineHover">
|
||||||
<a class="aMenu">Météo</a>
|
<a class="aMenu" href="#">Météo</a>
|
||||||
|
</li>
|
||||||
|
<li class="colonneSign animationButtonMenu underLineHover">
|
||||||
|
<a class="aMenu" href="connexion.html">Connexion</a>
|
||||||
|
</li>
|
||||||
|
<li class="colonneSign animationButtonMenu underLineHover">
|
||||||
|
<a class="aMenu" href="inscription.html">Inscription</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
<div id="blockDeco"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
18
php/Classe/Hystorique.php
Normal file
18
php/Classe/Hystorique.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Hystorique
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private Utilisateur $utilisateur;
|
||||||
|
private Spot $spot;
|
||||||
|
private Pointage $pointage;
|
||||||
|
|
||||||
|
public function __construct(int $id, Utilisateur $utilisateur, Spot $spot, Pointage $pointage)
|
||||||
|
{
|
||||||
|
$this->id=$id;
|
||||||
|
$this->utilisateur=$utilisateur;
|
||||||
|
$this->spot=$spot;
|
||||||
|
$this->pointage=$pointage;
|
||||||
|
}
|
||||||
|
}
|
17
php/Classe/Joueur.php
Normal file
17
php/Classe/Joueur.php
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Joueur
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private bool $estVivant;
|
||||||
|
private bool $estImposteur;
|
||||||
|
|
||||||
|
|
||||||
|
public function __construct(int $id,bool $estVivant,bool $estImposteur)
|
||||||
|
{
|
||||||
|
$this->id=$id;
|
||||||
|
$this->estVivant=$estVivant;
|
||||||
|
$this->estImposteur=$estImposteur;
|
||||||
|
}
|
||||||
|
}
|
18
php/Classe/MeteoSpot.php
Normal file
18
php/Classe/MeteoSpot.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class MeteoSpot
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private int $houle;
|
||||||
|
private int $maree;
|
||||||
|
private int $vent;
|
||||||
|
|
||||||
|
public function __construct(int $id,int $houle,int $maree,int $vent)
|
||||||
|
{
|
||||||
|
$this->id=$id;
|
||||||
|
$this->houle=$houle;
|
||||||
|
$this->mare=$maree;
|
||||||
|
$this->vent=$vent;
|
||||||
|
}
|
||||||
|
}
|
17
php/Classe/MeteoVille.php
Normal file
17
php/Classe/MeteoVille.php
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class MeteoVille
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private int $temperature;
|
||||||
|
private int $vent;
|
||||||
|
|
||||||
|
|
||||||
|
public function __construct(int $id,int $temperature,int $vent)
|
||||||
|
{
|
||||||
|
$this->id=$id;
|
||||||
|
$this->temperature=$temperature;
|
||||||
|
$this->vent=$vent;
|
||||||
|
}
|
||||||
|
}
|
27
php/Classe/Pointage.php
Normal file
27
php/Classe/Pointage.php
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?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;
|
||||||
|
|
||||||
|
|
||||||
|
public function __construct(int $id,int $nbBaigneur,int $nbPratiquant,int $bateauPeche, int $bateauLoisir,int $bateauVoile, Produits $produit,int $niveauDechet)
|
||||||
|
{
|
||||||
|
$this->id=$id;
|
||||||
|
$this->nbBaigneur=$nbBaigneur;
|
||||||
|
$this->nbPratiquant=$nbPratiquant;
|
||||||
|
$this->bateauPeche=$bateauPeche;
|
||||||
|
$this->bateauLoisir=$bateauLoisir;
|
||||||
|
$this->bateauVoile=$bateauVoile;
|
||||||
|
$this->produit=$produit;
|
||||||
|
$this->niveauDechet=$niveauDechet;
|
||||||
|
}
|
||||||
|
}
|
15
php/Classe/Pollution.php
Normal file
15
php/Classe/Pollution.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Pollution
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private int $niveauPollution;
|
||||||
|
private string $description;
|
||||||
|
|
||||||
|
function __construct(int $id,int $niveauPollution,string $description){
|
||||||
|
$this->id = $id;
|
||||||
|
$this->niveauPollution = $niveauPollution;
|
||||||
|
$this->description = $description;
|
||||||
|
}
|
||||||
|
}
|
30
php/Classe/Produits.php
Normal file
30
php/Classe/Produits.php
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?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;
|
||||||
|
|
||||||
|
function __construct(int $id,bool $estCremeSolaire,bool $estCremeParfum,bool $estCremeHydratante,bool $estMaquillage,
|
||||||
|
bool $estEssence,bool $estCigarette,bool $estEngrais,bool $estPeinture,string $autreProduit){
|
||||||
|
$this->id = $id;
|
||||||
|
$this->estCremeSolaire = $estCremeSolaire;
|
||||||
|
$this->estCremeParfum = $estCremeParfum;
|
||||||
|
$this->estCremeHydratante = $estCremeHydratante;
|
||||||
|
$this->estMaquillage = $estMaquillage;
|
||||||
|
$this->estEssence = $estEssence;
|
||||||
|
$this->estCigarette = $estCigarette;
|
||||||
|
$this->estEngrais = $estEngrais;
|
||||||
|
$this->estPeinture = $estPeinture;
|
||||||
|
$this->autreProduit = $autreProduit;
|
||||||
|
}
|
||||||
|
}
|
19
php/Classe/Spot.php
Normal file
19
php/Classe/Spot.php
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Spot
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private string $nom;
|
||||||
|
private Ville $ville;
|
||||||
|
private MeteoSpot $meteo;
|
||||||
|
private Pollution $pollution;
|
||||||
|
|
||||||
|
function __construct(int $id,string $nom,Ville $ville,Pollution $pollution,MeteoSpot $meteo){
|
||||||
|
$this->id = $id;
|
||||||
|
$this->nom = $nom;
|
||||||
|
$this->ville = $ville;
|
||||||
|
$this->pollution = $pollution;
|
||||||
|
$this->meteo = $meteo;
|
||||||
|
}
|
||||||
|
}
|
39
php/Classe/Utilisateur.php
Normal file
39
php/Classe/Utilisateur.php
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Utilisateur
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private string $nom;
|
||||||
|
private string $prenom;
|
||||||
|
private string $pseudo;
|
||||||
|
private string $mail;
|
||||||
|
private string $password;
|
||||||
|
|
||||||
|
function __construct(int $id,string $nom,string $prenom,string $pseudo,string $mail,string $password){
|
||||||
|
$this->id = $id;
|
||||||
|
$this->nom = $nom;
|
||||||
|
$this->prenom = $prenom;
|
||||||
|
$this->pseudo = $pseudo;
|
||||||
|
$this->mail = $mail;
|
||||||
|
$this->password = $password;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getNom(): string
|
||||||
|
{
|
||||||
|
return $this->nom;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $nom
|
||||||
|
*/
|
||||||
|
public function setNom(string $nom): void
|
||||||
|
{
|
||||||
|
$this->nom = $nom;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
19
php/Classe/Ville.php
Normal file
19
php/Classe/Ville.php
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
class Ville
|
||||||
|
{
|
||||||
|
private int $id;
|
||||||
|
private string $nom;
|
||||||
|
private string $codePostal;
|
||||||
|
private int $temperature;
|
||||||
|
private MeteoVille $meteo;
|
||||||
|
|
||||||
|
function __construct(int $id,string $nom,string $codePostal,string $temperature,MeteoVille $meteo){
|
||||||
|
$this->id = $id;
|
||||||
|
$this->nom = $nom;
|
||||||
|
$this->codePostal = $codePostal;
|
||||||
|
$this->temperature = $temperature;
|
||||||
|
$this->meteo = $meteo;
|
||||||
|
}
|
||||||
|
}
|
@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
|
|
||||||
class Hystorique
|
|
||||||
{
|
|
||||||
private int $id;
|
|
||||||
private Utilisateur $utilisateur;
|
|
||||||
private Spot $spot;
|
|
||||||
private Pointage $pointage;
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
|
|
||||||
class Joueur
|
|
||||||
{
|
|
||||||
private int $id;
|
|
||||||
private bool $estVivant;
|
|
||||||
private bool $estImposteur;
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
|
|
||||||
class MeteoSpot
|
|
||||||
{
|
|
||||||
private int $id;
|
|
||||||
private int $houle;
|
|
||||||
private int $maree;
|
|
||||||
private int $vent;
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
|
|
||||||
class MeteoVille
|
|
||||||
{
|
|
||||||
private int $id;
|
|
||||||
private int $temperature;
|
|
||||||
private int $vent;
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
<?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;
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
|
|
||||||
class Pollution
|
|
||||||
{
|
|
||||||
private int $id;
|
|
||||||
private int $niveauPollution;
|
|
||||||
private string $description;
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
<?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
11
php/Spot.php
@ -1,11 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
|
|
||||||
class Spot
|
|
||||||
{
|
|
||||||
private int $id;
|
|
||||||
private string $nom;
|
|
||||||
private Ville $ville;
|
|
||||||
private MeteoSpot $meteo;
|
|
||||||
private Pollution $pollution;
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
|
|
||||||
class Utilisateur
|
|
||||||
{
|
|
||||||
private int $id;
|
|
||||||
private string $nom;
|
|
||||||
private string $prenom;
|
|
||||||
private string $pseudo;
|
|
||||||
private string $mail;
|
|
||||||
private string $password;
|
|
||||||
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
|
|
||||||
class Ville
|
|
||||||
{
|
|
||||||
private int $id;
|
|
||||||
private string $nom;
|
|
||||||
private string $codePostal;
|
|
||||||
private int $temperature;
|
|
||||||
private MeteoVille $meteo;
|
|
||||||
}
|
|
@ -1,89 +1,34 @@
|
|||||||
-- Create a new database called 'bddsurf'
|
CREATE TABLE joueur
|
||||||
-- Connect to the 'master' database to run this snippet
|
|
||||||
USE master
|
|
||||||
GO
|
|
||||||
-- Create the new database if it does not exist already
|
|
||||||
IF NOT EXISTS (
|
|
||||||
SELECT name
|
|
||||||
FROM sys.databases
|
|
||||||
WHERE name = N'bddsurf'
|
|
||||||
)
|
|
||||||
CREATE DATABASE bddsurf
|
|
||||||
GO
|
|
||||||
|
|
||||||
-- Create a new table called 'joueur' in schema 'bddsurf'
|
|
||||||
-- Drop the table if it already exists
|
|
||||||
IF OBJECT_ID('bddsurf.joueur', 'U') IS NOT NULL
|
|
||||||
DROP TABLE bddsurf.joueur
|
|
||||||
GO
|
|
||||||
-- Create the table in the specified schema
|
|
||||||
CREATE TABLE bddsurf.joueur
|
|
||||||
(
|
(
|
||||||
idJoueur INT NOT NULL PRIMARY KEY, -- primary key column
|
idJoueur INT PRIMARY KEY NOT NULL AUTO_INCREMENT, -- primary key column
|
||||||
estVivant TINYINT,
|
estVivant TINYINT,
|
||||||
estImposteur TINYINT
|
estImposteur TINYINT
|
||||||
-- specify more columns here
|
) ENGINE=InnoDB;
|
||||||
);
|
CREATE TABLE utilisateur
|
||||||
GO
|
|
||||||
|
|
||||||
-- Create a new table called 'UTILISATEUR' in schema 'bddsurf'
|
|
||||||
-- Drop the table if it already exists
|
|
||||||
IF OBJECT_ID('bddsurf.utilisateur', 'U') IS NOT NULL
|
|
||||||
DROP TABLE bddsurf.utilisateur
|
|
||||||
GO
|
|
||||||
-- Create the table in the specified schema
|
|
||||||
CREATE TABLE bddsurf.utilisateur
|
|
||||||
(
|
(
|
||||||
idUtilisateur INT NOT NULL PRIMARY KEY, -- primary key column
|
idUtilisateur INT PRIMARY KEY NOT NULL AUTO_INCREMENT, -- primary key column
|
||||||
nomUtilisateur VARCHAR,
|
nomUtilisateur VARCHAR(50),
|
||||||
prenomUtilisateur VARCHAR,
|
prenomUtilisateur VARCHAR(50),
|
||||||
mailUtilisateur VARCHAR,
|
mailUtilisateur VARCHAR(50),
|
||||||
pseudoUtilisateur VARCHAR,
|
pseudoUtilisateur VARCHAR(50),
|
||||||
passwordUtilisateur VARCHAR
|
passwordUtilisateur VARCHAR(50)
|
||||||
-- specify more columns here
|
) ENGINE=InnoDB;
|
||||||
);
|
CREATE TABLE meteoville
|
||||||
GO
|
|
||||||
|
|
||||||
-- Create a new table called 'meteoville' in schema 'bddsurf'
|
|
||||||
-- Drop the table if it already exists
|
|
||||||
IF OBJECT_ID('bddsurf.meteoville', 'U') IS NOT NULL
|
|
||||||
DROP TABLE bddsurf.meteoville
|
|
||||||
GO
|
|
||||||
-- Create the table in the specified schema
|
|
||||||
CREATE TABLE bddsurf.meteoville
|
|
||||||
(
|
(
|
||||||
IdMeteoVille INT NOT NULL PRIMARY KEY, -- primary key column
|
IdMeteoVille INT PRIMARY KEY NOT NULL AUTO_INCREMENT, -- primary key column
|
||||||
temperatureMeteoVille INT,
|
temperatureMeteoVille INT,
|
||||||
ventMeteoVille INT
|
ventMeteoVille INT
|
||||||
-- specify more columns here
|
) ENGINE=InnoDB;
|
||||||
);
|
CREATE TABLE meteoSpot
|
||||||
GO
|
|
||||||
|
|
||||||
-- Create a new table called 'meteoSpot' in schema 'bddsurf'
|
|
||||||
-- Drop the table if it already exists
|
|
||||||
IF OBJECT_ID('bddsurf.meteoSpot', 'U') IS NOT NULL
|
|
||||||
DROP TABLE bddsurf.meteoSpot
|
|
||||||
GO
|
|
||||||
-- Create the table in the specified schema
|
|
||||||
CREATE TABLE bddsurf.meteoSpot
|
|
||||||
(
|
(
|
||||||
idMeteoSpot INT NOT NULL PRIMARY KEY, -- primary key column
|
idMeteoSpot INT PRIMARY KEY NOT NULL AUTO_INCREMENT, -- primary key column
|
||||||
houleMeteoSpot INT,
|
houleMeteoSpot INT,
|
||||||
mareeMeteoSpot INT,
|
mareeMeteoSpot INT,
|
||||||
ventMeteoSpot INT
|
ventMeteoSpot INT
|
||||||
-- specify more columns here
|
) ENGINE=InnoDB;
|
||||||
);
|
CREATE TABLE produits
|
||||||
GO
|
|
||||||
|
|
||||||
-- Create a new table called 'produits' in schema 'bddsurf'
|
|
||||||
-- Drop the table if it already exists
|
|
||||||
IF OBJECT_ID('bddsurf.produits', 'U') IS NOT NULL
|
|
||||||
DROP TABLE bddsurf.produits
|
|
||||||
GO
|
|
||||||
-- Create the table in the specified schema
|
|
||||||
CREATE TABLE bddsurf.produits
|
|
||||||
(
|
(
|
||||||
idProduits INT NOT NULL PRIMARY KEY, -- primary key column
|
idProduits INT PRIMARY KEY NOT NULL AUTO_INCREMENT, -- primary key column
|
||||||
estCremeSolaire TINYINT,
|
estCremeSolaire TINYINT,
|
||||||
estParfum TINYINT,
|
estParfum TINYINT,
|
||||||
estCremeHydratante TINYINT,
|
estCremeHydratante TINYINT,
|
||||||
@ -92,74 +37,72 @@ CREATE TABLE bddsurf.produits
|
|||||||
estCigarette TINYINT,
|
estCigarette TINYINT,
|
||||||
estEngrais TINYINT,
|
estEngrais TINYINT,
|
||||||
estPeinture TINYINT,
|
estPeinture TINYINT,
|
||||||
AutreProduit VARCHAR
|
AutreProduit VARCHAR(50)
|
||||||
-- specify more columns here
|
) ENGINE=InnoDB;
|
||||||
);
|
CREATE TABLE pollution
|
||||||
GO
|
|
||||||
|
|
||||||
-- Create a new table called 'ville' in schema 'bddsurf'
|
|
||||||
-- Drop the table if it already exists
|
|
||||||
IF OBJECT_ID('bddsurf.ville', 'U') IS NOT NULL
|
|
||||||
DROP TABLE bddsurf.ville
|
|
||||||
GO
|
|
||||||
-- Create the table in the specified schema
|
|
||||||
CREATE TABLE bddsurf.ville
|
|
||||||
(
|
(
|
||||||
idVille INT NOT NULL PRIMARY KEY, -- primary key column
|
idPollution INT PRIMARY KEY NOT NULL AUTO_INCREMENT, -- primary key column
|
||||||
nomVille VARCHAR,
|
|
||||||
cpVille VARCHAR,
|
|
||||||
meteoVille INT NOT NULL
|
|
||||||
-- specify more columns here
|
|
||||||
);
|
|
||||||
GO
|
|
||||||
|
|
||||||
-- Create a new table called 'historique' in schema 'bddsurf'
|
|
||||||
-- Drop the table if it already exists
|
|
||||||
IF OBJECT_ID('bddsurf.historique', 'U') IS NOT NULL
|
|
||||||
DROP TABLE bddsurf.historique
|
|
||||||
GO
|
|
||||||
-- Create the table in the specified schema
|
|
||||||
CREATE TABLE bddsurf.historique
|
|
||||||
(
|
|
||||||
idHistorique INT NOT NULL PRIMARY KEY, -- primary key column
|
|
||||||
utilisateur INT NOT NULL,
|
|
||||||
spot INT NOT NULL,
|
|
||||||
pointage INT NOT NULL
|
|
||||||
-- specify more columns here
|
|
||||||
);
|
|
||||||
GO
|
|
||||||
|
|
||||||
-- Create a new table called 'pollution' in schema 'bddsurf'
|
|
||||||
-- Drop the table if it already exists
|
|
||||||
IF OBJECT_ID('bddsurf.pollution', 'U') IS NOT NULL
|
|
||||||
DROP TABLE bddsurf.pollution
|
|
||||||
GO
|
|
||||||
-- Create the table in the specified schema
|
|
||||||
CREATE TABLE bddsurf.pollution
|
|
||||||
(
|
|
||||||
idPollution INT NOT NULL PRIMARY KEY, -- primary key column
|
|
||||||
niveauPollution INT,
|
niveauPollution INT,
|
||||||
descriptionPollution VARCHAR
|
descriptionPollution VARCHAR(50)
|
||||||
-- specify more columns here
|
) ENGINE=InnoDB;
|
||||||
);
|
CREATE TABLE ville
|
||||||
GO
|
|
||||||
|
|
||||||
-- Create a new table called 'spot' in schema 'bddsurf'
|
|
||||||
-- Drop the table if it already exists
|
|
||||||
IF OBJECT_ID('bddsurf.spot', 'U') IS NOT NULL
|
|
||||||
DROP TABLE bddsurf.spot
|
|
||||||
GO
|
|
||||||
-- Create the table in the specified schema
|
|
||||||
CREATE TABLE bddsurf.spot
|
|
||||||
(
|
(
|
||||||
idSpot INT NOT NULL PRIMARY KEY, -- primary key column
|
idVille INT PRIMARY KEY NOT NULL AUTO_INCREMENT, -- primary key column
|
||||||
nomSpot VARCHAR,
|
nomVille VARCHAR(50),
|
||||||
|
cpVille VARCHAR(50),
|
||||||
|
meteoVille INT NOT NULL,
|
||||||
|
CONSTRAINT fk_meteoville
|
||||||
|
FOREIGN KEY (meteoVille)
|
||||||
|
REFERENCES meteoville(IdMeteoVille)
|
||||||
|
) ENGINE=InnoDB;
|
||||||
|
CREATE TABLE pointage
|
||||||
|
(
|
||||||
|
idPointage INT PRIMARY KEY NOT NULL AUTO_INCREMENT, -- primary key column
|
||||||
|
nbBaigneur INT,
|
||||||
|
nbPratiquant INT,
|
||||||
|
nbBateauPeche INT,
|
||||||
|
nbBateauLoisir INT,
|
||||||
|
nbBateauVoile INT,
|
||||||
|
produits INT NOT NULL,
|
||||||
|
niveauDechet INT,
|
||||||
|
CONSTRAINT fk_produitsPointage
|
||||||
|
FOREIGN KEY (produits)
|
||||||
|
REFERENCES produits(idProduits)
|
||||||
|
) ENGINE=InnoDB;
|
||||||
|
CREATE TABLE spot
|
||||||
|
(
|
||||||
|
idSpot INT PRIMARY KEY NOT NULL AUTO_INCREMENT, -- primary key column
|
||||||
|
nomSpot VARCHAR(50),
|
||||||
villeSpot INT NOT NULL,
|
villeSpot INT NOT NULL,
|
||||||
meteoSpot INT NOT NULL,
|
meteoSpot INT NOT NULL,
|
||||||
pollutionSpot INT NOT NULL
|
pollutionSpot INT NOT NULL,
|
||||||
-- specify more columns here
|
CONSTRAINT fk_villeSpot
|
||||||
);
|
FOREIGN KEY (villeSpot)
|
||||||
GO
|
REFERENCES ville(idVille),
|
||||||
|
CONSTRAINT fk_meteoSpot
|
||||||
|
FOREIGN KEY (meteoSpot)
|
||||||
|
REFERENCES meteoSpot(idMeteoSpot),
|
||||||
|
CONSTRAINT fk_pollutionSpot
|
||||||
|
FOREIGN KEY (pollutionSpot)
|
||||||
|
REFERENCES pollution(idPollution)
|
||||||
|
) ENGINE=InnoDB;
|
||||||
|
CREATE TABLE historique
|
||||||
|
(
|
||||||
|
idHistorique INT PRIMARY KEY NOT NULL AUTO_INCREMENT, -- primary key column
|
||||||
|
utilisateur INT NOT NULL,
|
||||||
|
spot INT NOT NULL,
|
||||||
|
pointage INT NOT NULL,
|
||||||
|
CONSTRAINT fk_user
|
||||||
|
FOREIGN KEY (utilisateur)
|
||||||
|
REFERENCES utilisateur(idUtilisateur),
|
||||||
|
CONSTRAINT fk_spot
|
||||||
|
FOREIGN KEY (spot)
|
||||||
|
REFERENCES spot(idSpot),
|
||||||
|
CONSTRAINT fk_pointage
|
||||||
|
FOREIGN KEY (pointage)
|
||||||
|
REFERENCES pointage(idPointage)
|
||||||
|
) ENGINE=InnoDB;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user