From 4ea87ca98a493557d9e8897736669805ac5fa96f Mon Sep 17 00:00:00 2001 From: flavien Date: Tue, 21 May 2019 16:06:03 +0200 Subject: [PATCH] corrected a lot of bugs --- WEB/connexionBD.php | 12 +-- WEB/{index_inscription.css => index.css} | 0 WEB/index.php | 8 +- WEB/inscription/inscription.css | 109 +++++++++++++++++++++++ WEB/{ => inscription}/inscription.js | 0 WEB/{ => inscription}/inscription.php | 14 ++- WEB/profil/profil.css | 2 +- WEB/ressources/navbarhtml.php | 2 +- WEB/ressources/user.php | 54 +++++------ WEB/tableauBord/tableauBord.php | 30 +++---- 10 files changed, 158 insertions(+), 73 deletions(-) rename WEB/{index_inscription.css => index.css} (100%) create mode 100644 WEB/inscription/inscription.css rename WEB/{ => inscription}/inscription.js (100%) rename WEB/{ => inscription}/inscription.php (95%) diff --git a/WEB/connexionBD.php b/WEB/connexionBD.php index 4541648..4a25d3a 100644 --- a/WEB/connexionBD.php +++ b/WEB/connexionBD.php @@ -1,7 +1,7 @@ diff --git a/WEB/index_inscription.css b/WEB/index.css similarity index 100% rename from WEB/index_inscription.css rename to WEB/index.css diff --git a/WEB/index.php b/WEB/index.php index 8e0bbe6..996e61d 100644 --- a/WEB/index.php +++ b/WEB/index.php @@ -1,8 +1,6 @@ - + Bienvenue sur Upssi'Covoit @@ -80,4 +78,4 @@ function authentification($db, $mail, $password){

Si vous n'avez pas de compte cliquez ici.

- \ No newline at end of file + diff --git a/WEB/inscription/inscription.css b/WEB/inscription/inscription.css new file mode 100644 index 0000000..63d68a5 --- /dev/null +++ b/WEB/inscription/inscription.css @@ -0,0 +1,109 @@ +*{ + margin: 0; + padding: 0; + font-family: "Arial"; + font-size: 1em; +} + +html, body{ + height: 100%; +} + +body{ + display: flex; + flex-wrap: wrap; + flex-direction: row; + justify-content: center; + align-items: center; +} + +#formulaire{ + background-color: white; + border-radius: 10px; + padding: 4em; + width: 40%; +} + +#enregistrer{ + margin-top: 1em; + text-align: center; +} + +h1{ + text-align: center; +} + +form{ + margin-top: 3em; +} + +.form{ + box-sizing: border-box; + width: 55%; + border: 1px solid grey; + margin-bottom: 0.7em; +} + +#avatar{ + border-style: none; +} + +.button{ + cursor: pointer; + font-weight: bold; + padding: 8px; + color: white; + background-color: rgb(65, 154, 28); + border-radius: 5em; + border: none; +} + +.button:hover{ + background-color: rgb(48, 112, 20); + border-color: rgb(48, 112, 20); +} + +.button:disabled{ + cursor: not-allowed; + background-color: grey; +} + +#submit{ + margin-top: 1em; + margin-left: 50%; + transform: translate(-50%); +} + +.line{ + display: flex; + flex-wrap: wrap; + flex-direction: row; + justify-content: left; + width: 100%; +} + +#error{ + margin-bottom: 1em; +} + +.error{ + color: red; + text-align: center; +} + +label{ + box-sizing: border-box; + font-size: 1.1em; + width: 45%; + min-width: 8em; +} + +h1{ + font-size: 2em; +} + +button{ + color: forestgreen; + border-color: forestgreen; + border-radius: 5em; +} diff --git a/WEB/inscription.js b/WEB/inscription/inscription.js similarity index 100% rename from WEB/inscription.js rename to WEB/inscription/inscription.js diff --git a/WEB/inscription.php b/WEB/inscription/inscription.php similarity index 95% rename from WEB/inscription.php rename to WEB/inscription/inscription.php index ed7bc3d..e5bf68f 100644 --- a/WEB/inscription.php +++ b/WEB/inscription/inscription.php @@ -1,9 +1,7 @@ - + Inscription @@ -143,4 +141,4 @@ function getError($code) - \ No newline at end of file + diff --git a/WEB/profil/profil.css b/WEB/profil/profil.css index 1c8ee65..cd01b65 100644 --- a/WEB/profil/profil.css +++ b/WEB/profil/profil.css @@ -27,4 +27,4 @@ #changePass{ margin-bottom: 0.7em; -} \ No newline at end of file +} diff --git a/WEB/ressources/navbarhtml.php b/WEB/ressources/navbarhtml.php index 0d30d52..c86e3fc 100644 --- a/WEB/ressources/navbarhtml.php +++ b/WEB/ressources/navbarhtml.php @@ -1,7 +1,7 @@