Merge branch 'main' of https://github.com/DevDuCoffee/Nuit-De-L-Info-2020 into main
This commit is contained in:
commit
fd7adfdb29
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;
|
||||||
|
}
|
||||||
|
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>
|
@ -6,4 +6,10 @@ class Pollution
|
|||||||
private int $id;
|
private int $id;
|
||||||
private int $niveauPollution;
|
private int $niveauPollution;
|
||||||
private string $description;
|
private string $description;
|
||||||
|
|
||||||
|
function __contruct(int $id,int $niveauPollution,string $description){
|
||||||
|
$this->id = $id;
|
||||||
|
$this->niveauPollution = $niveauPollution;
|
||||||
|
$this->description = $description;
|
||||||
|
}
|
||||||
}
|
}
|
@ -13,4 +13,18 @@ class Produits
|
|||||||
private bool $estEngrais;
|
private bool $estEngrais;
|
||||||
private bool $estPeinture;
|
private bool $estPeinture;
|
||||||
private string $autreProduit;
|
private string $autreProduit;
|
||||||
|
|
||||||
|
function __contruct(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;
|
||||||
|
}
|
||||||
}
|
}
|
@ -8,4 +8,12 @@ class Spot
|
|||||||
private Ville $ville;
|
private Ville $ville;
|
||||||
private MeteoSpot $meteo;
|
private MeteoSpot $meteo;
|
||||||
private Pollution $pollution;
|
private Pollution $pollution;
|
||||||
|
|
||||||
|
function __contruct(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;
|
||||||
|
}
|
||||||
}
|
}
|
@ -10,4 +10,12 @@ class Utilisateur
|
|||||||
private string $mail;
|
private string $mail;
|
||||||
private string $password;
|
private string $password;
|
||||||
|
|
||||||
|
function __contruct(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;
|
||||||
|
}
|
||||||
}
|
}
|
@ -8,4 +8,12 @@ class Ville
|
|||||||
private string $codePostal;
|
private string $codePostal;
|
||||||
private int $temperature;
|
private int $temperature;
|
||||||
private MeteoVille $meteo;
|
private MeteoVille $meteo;
|
||||||
|
|
||||||
|
function __contruct(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,89 +1,36 @@
|
|||||||
-- Create a new database called 'bddsurf'
|
|
||||||
-- 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
|
CREATE DATABASE bddsurf
|
||||||
GO
|
|
||||||
|
|
||||||
-- Create a new table called 'joueur' in schema 'bddsurf'
|
CREATE TABLE joueur
|
||||||
-- 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
|
|
||||||
);
|
);
|
||||||
GO
|
CREATE TABLE utilisateur
|
||||||
|
|
||||||
-- 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
|
|
||||||
);
|
);
|
||||||
GO
|
CREATE TABLE meteoville
|
||||||
|
|
||||||
-- 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
|
|
||||||
);
|
);
|
||||||
GO
|
CREATE TABLE meteoSpot
|
||||||
|
|
||||||
-- 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
|
|
||||||
);
|
);
|
||||||
GO
|
CREATE TABLE produits
|
||||||
|
|
||||||
-- 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 +39,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
|
|
||||||
);
|
);
|
||||||
GO
|
CREATE TABLE pollution
|
||||||
|
|
||||||
-- 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
|
|
||||||
);
|
);
|
||||||
GO
|
CREATE TABLE ville
|
||||||
|
|
||||||
-- 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)
|
||||||
|
);
|
||||||
|
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)
|
||||||
|
);
|
||||||
|
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)
|
||||||
|
REFERENCES ville(idVille),
|
||||||
|
CONSTRAINT fk_meteoSpot
|
||||||
|
FOREIGN KEY (meteoSpot)
|
||||||
|
REFERENCES meteoSpot(idMeteoSpot),
|
||||||
|
CONSTRAINT fk_pollutionSpot
|
||||||
|
FOREIGN KEY (pollutionSpot)
|
||||||
|
REFERENCES pollution(idPollution)
|
||||||
|
);
|
||||||
|
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)
|
||||||
);
|
);
|
||||||
GO
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user