diff --git a/business/List.php b/business/List.php new file mode 100644 index 0000000..e69de29 diff --git a/business/Task.php b/business/Task.php new file mode 100644 index 0000000..e69de29 diff --git a/business/User.php b/business/User.php index e69de29..51cac59 100644 --- a/business/User.php +++ b/business/User.php @@ -0,0 +1,27 @@ +login = $login; + $this->mdp = $mdp; + } + + function get_login() { + return $this->login; + } + + function set_login($login) { + $this->login = $login; + } + + function get_mdp() { + return $this->mdp; + } + + function set_mdp($mdp) { + $this->mdp = $mdp; + } + } +?> \ No newline at end of file diff --git a/dal/Connection.php b/dal/Connection.php new file mode 100644 index 0000000..b4ce991 --- /dev/null +++ b/dal/Connection.php @@ -0,0 +1,33 @@ +setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); +} + + +/** * @param string $query + * @param array $parameters * + * @return bool Returns `true` on success, `false` otherwise +*/ + +public function executeQuery(string $query, array $parameters = []) : bool{ + $this->stmt = parent::prepare($query); + foreach ($parameters as $name => $value) { + $this->stmt->bindValue($name, $value[0], $value[1]); + } + + return $this->stmt->execute(); +} + +public function getResults() : array { + return $this->stmt->fetchall(); + +} +} + +?> diff --git a/index.php b/index.php new file mode 100644 index 0000000..67c94a5 --- /dev/null +++ b/index.php @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/view/authentification.css b/view/authentification.css index 79bc52e..f132e62 100644 --- a/view/authentification.css +++ b/view/authentification.css @@ -18,6 +18,11 @@ label{ margin-top : 20px; } +#envoyer{ + width : 150px; + height : 30px; +} + #btnEnvoi{ margin: 20px; } \ No newline at end of file diff --git a/view/authentification.html b/view/authentification.html index 80d9215..800eb46 100644 --- a/view/authentification.html +++ b/view/authentification.html @@ -7,7 +7,7 @@

Magnifique To do list

- +
diff --git a/view/exview.php b/view/exview.php new file mode 100644 index 0000000..3158e4d --- /dev/null +++ b/view/exview.php @@ -0,0 +1 @@ +