diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..32b4894 Binary files /dev/null and b/.DS_Store differ diff --git a/config/Autoload.php b/config/Autoload.php new file mode 100644 index 0000000..d651342 --- /dev/null +++ b/config/Autoload.php @@ -0,0 +1,50 @@ + \ No newline at end of file diff --git a/config/config.php b/config/config.php new file mode 100644 index 0000000..d4892cd --- /dev/null +++ b/config/config.php @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/controleurs/ControleurUtilisateur.php b/controleurs/ControleurUtilisateur.php new file mode 100644 index 0000000..17b5a66 --- /dev/null +++ b/controleurs/ControleurUtilisateur.php @@ -0,0 +1,39 @@ +Reinit(); + break; + case "deconnection": + $this->deconnection($arrayErrorViews); + break; + case "creerListe": + $this->creerListe($arrayErrorViews); + break; + case "supprListe": + $this->supprListe($arrayErrorViews); + break; + default : + $arrayErrorViews[]="Erreur innatendue !!!"; + require($rep.$vues['error']); + } + */ + }catch(PDOException $e){ + $dataView[]="Erreur inatendue"; + require(__DIR__.'/../vues/erreur.php'); + } + } +} + +?> \ No newline at end of file diff --git a/controleurs/ControleurVisiteur.php b/controleurs/ControleurVisiteur.php new file mode 100644 index 0000000..59b22ed --- /dev/null +++ b/controleurs/ControleurVisiteur.php @@ -0,0 +1,47 @@ +reinit(); + break; + case "connection": + $this->connection($arrayErrorViews); + break; + case "creerListe": + $this->creerListe($arrayErrorViews); + break; + case "supprListe": + $this->supprListe($arrayErrorViews); + break; + default : + $arrayErrorViews[]="Erreur innatendue !!!"; + require($rep.$vues['error']); + } + }catch(PDOException $e){ + $dataView[]="Erreur inatendue"; + require(__DIR__.'/../vues/erreur.php'); + } + } + + public function reinit(){ + global $rep,$vues; + require($rep.$vues['acceuil']); + } + + public function connection(array $vues_erreur){ + global $rep,$vues; + require($rep.$vues['connection']); + } +} + +?> \ No newline at end of file diff --git a/controleurs/FrontControleur.php b/controleurs/FrontControleur.php new file mode 100644 index 0000000..bf3caa7 --- /dev/null +++ b/controleurs/FrontControleur.php @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..17c7315 --- /dev/null +++ b/index.php @@ -0,0 +1,14 @@ + + + diff --git a/modeles/blbl b/modeles/blbl new file mode 100644 index 0000000..e69de29 diff --git a/userController.php b/userController.php new file mode 100644 index 0000000..7594872 --- /dev/null +++ b/userController.php @@ -0,0 +1,40 @@ +action(); + break; + case "connection": + $this->connection(/* valeurs du login et du mdp dans le formulaire */); + break; + }catch(PDOException $e){ + $dataView[]="Erreur inatendue"; + require(__DIR__.'/../vues/erreur.php'); + } + } + } + + public function connection(string $login, string $password){ + + /* Doit faire: + * vider les input du formulaire + * vérifier avec la bd qu'il y a bien un user + */ + + } +} + +?> \ No newline at end of file diff --git a/views/connection.html b/views/connection.html new file mode 100644 index 0000000..d236ba0 --- /dev/null +++ b/views/connection.html @@ -0,0 +1,27 @@ + + + + connection + + + +
+

You are back ?!

+
+
+

Username

+ +

Password

+ +
+
+ +
+
+

You are new here?

+ + + +
+ + \ No newline at end of file diff --git a/views/error.html b/views/error.html new file mode 100644 index 0000000..f72c671 --- /dev/null +++ b/views/error.html @@ -0,0 +1,8 @@ + + +
+

Error!

+

There was an error in the fields you filled...

+

Please enter correct values

+
+ \ No newline at end of file diff --git a/views/signUp.html b/views/signUp.html new file mode 100644 index 0000000..4fcd0cb --- /dev/null +++ b/views/signUp.html @@ -0,0 +1,27 @@ + + + + connection + + + +
+

Join the good side of the force

+ +
+
+

Please enter all the informations :

+

Username

+ +

Password

+ +

Email

+ +

Date Of Birth

+ +
+
+ +
+ + \ No newline at end of file diff --git a/views/styles/commonStyles.css b/views/styles/commonStyles.css new file mode 100644 index 0000000..b6264e7 --- /dev/null +++ b/views/styles/commonStyles.css @@ -0,0 +1,26 @@ +header{ + display: flex; + flex-direction: row; + background-color: #0971C9; +} +body{ + background-color: #0D2350; + +} +h1,h2,h3,h4,p{ + font-family: sans-serif; + font-weight: bolder; + color: #6da8e2; +} +.button{ + width: 150%; + height: 75%; + background-color: #FFFEFD; + border-radius: 20%; + border-color: #0971C9; + color: #0D2350; + +} +.button:hover{ + background-color: grey; +} \ No newline at end of file diff --git a/vues/acceuil.php b/vues/acceuil.php new file mode 100644 index 0000000..3efad0d --- /dev/null +++ b/vues/acceuil.php @@ -0,0 +1,23 @@ + + + + + Acceuil + + + +
+

Welcome to our fantastic to do list app !

+
+ + +
+
+ +
+

Todo listes publiques

+
+
+
+ + diff --git a/vues/connection.php b/vues/connection.php new file mode 100644 index 0000000..a25ae94 --- /dev/null +++ b/vues/connection.php @@ -0,0 +1,27 @@ + + + + connection + + + +
+

You are back ?!

+
+
+

Username

+ +

Password

+ +
+
+ +
+
+

You are new here?

+ + + +
+ + \ No newline at end of file diff --git a/vues/erreur.php b/vues/erreur.php new file mode 100644 index 0000000..d3a6385 --- /dev/null +++ b/vues/erreur.php @@ -0,0 +1,17 @@ + + + +
+

Error!

+ + + +
+ + \ No newline at end of file diff --git a/vues/inscription.php b/vues/inscription.php new file mode 100644 index 0000000..4ffa4ee --- /dev/null +++ b/vues/inscription.php @@ -0,0 +1,27 @@ + + + + connection + + + +
+

Join the good side of the force

+ +
+
+

Please enter all the informations :

+

Username

+ +

Password

+ +

Email

+ +

Date Of Birth

+ +
+
+ +
+ + \ No newline at end of file diff --git a/vues/styles/commonStyles.css b/vues/styles/commonStyles.css new file mode 100644 index 0000000..2a24d51 --- /dev/null +++ b/vues/styles/commonStyles.css @@ -0,0 +1,26 @@ +header{ + display: flex; + flex-direction: row; + background-color: #0971C9; +} +body{ + background-color: #0D2350; + +} +h1, h2, h3, h4, p{ + font-family: sans-serif; + font-weight: bolder; + color: #FFFEFD; +} +.button{ + width: 50%; + height: 100%; + background-color: #FFFEFD; + border-radius: 20%; + border-color: #0971C9; + color: #0D2350; + +} +.button:hover{ + background-color: grey; +} \ No newline at end of file