diff --git a/README.md b/README.md index 16a62cd..046d925 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ **Nom de l’application** : ToDoList
-**Thème de l’application** : Repertorier les tâches à accomplir. +**Thème de l’application** : Répertorier les tâches à accomplir.
**Récapitulation de notre application** : @@ -18,7 +18,7 @@ # Repartition du Gitlab -La racine de notre gitlab est composé de deux dossier essentielles au projet: +La racine de notre gitlab est composé de deux dossiers essentiels au projet: [**src**](src) : **Toute la partie codage du site web** @@ -30,6 +30,6 @@ Notre environnement de travail se base essentiellement sur du php et du HTML/CSS # Technicien en charge de l'application -La composition pour le projet se voit fait par deux élèves de l'IUT d'aubière: +La composition pour le projet se voit réaliser par deux élèves de l'IUT d'aubière: - Emre KARTAL (Groupe 4) - Rayhan HASSOU (Groupe 4) \ No newline at end of file diff --git a/doc/Diagramme De Cas D'utilisation/DDCD.drawio b/doc/Diagramme De Cas D'utilisation/DDCD.drawio new file mode 100644 index 0000000..c74727c --- /dev/null +++ b/doc/Diagramme De Cas D'utilisation/DDCD.drawio @@ -0,0 +1 @@ +7Vpdj5s4FP010T5NhG0+H5NMp6NVV5o2/XxaEfAEq4BZYyZJf/2aYBKw6ZBOSUh3q5Ey+GJsc+65514ME7RItq+Zn0V/0RDHE2iE2wm6nUDoAlP8loZdZYCGCSrLmpGwsjUMS/INS6MhrQUJcd7qyCmNOcnaxoCmKQ54y+YzRjftbo80bs+a+WusGZaBH+vWTyTkkbwv6Bzt95iso3pmYHvVmcSvO8s7ySM/pJuGCb2aoAWjlFdHyXaB4xK8GpfqurvvnD0sjOGUn3KBh2i0zJbv33zdBm9v7nPjLXt/I0d58uNC3rBcLN/VCGwiwvEy84OyvRFenqB5xJNYtIA49POswv2RbLGYaq6vq54EM463DZNc52tME8zZTnSpzzoSM8maG1O2N0cX2HWfqAH/wehLt68PYx+REQcSnB8ACnYAZcdi2nlInsThujz8kGNWm8UsjTMdnWvTiqkW9VLFIYJIWXlYJPEs4JSJPiW0RJD2jb/C8QPNCSc0FV1WlHOaNDrMYrIuT3CquJEWPCYpXhzCyBjGlV7bkxDpnkRdjjyXH5Hmx1mYkPQ/BTLyRgbZ7FcVnIazUp5L/GIafBVACJPUf2BXzTtSzrtHqYEio0UallLzPHw4bCn7d8EzprZtO229sTT8QA0Ww7HPyVM7PXQhKCd8oEQs7ChthtX2las4IacFC7C8qinnfQMBZSDuszXmzwxUd6SPjzlu9dk7/YDUy3lgazxY4mOuLrVSZUUci8QuGvOerDNA0FjIbAEIgB41AHaEjeqxwcLG1eH6g6R5wAjDo0IFvTZU1thIgRPqlobCpDTFL9KQKhj7y4Iq1vojoVeTGohaHYBaw4gQUhKGqZZNp4qQaSoDwdNEaCiBAV1l2Sg8qJ9N+ojg/ibCWYig13ULNlmgyczbl+R+UqpiusrLf0WK964KonFlFaH+4vjCuqpXbh8pYWXOFg/hArM9pFAAl4+LnKtUvOMjZ12JEtWR0KtE8LqUCA2kRCo1Lq5EetE7EhHM30QYlQiORoRlkWWMJGVGMoq0/OEkJrnPcTHus5AKugVH11P9YegsYdQbHbUbryQ8Dl6oWY1+1fDwNAfLUoPTgu+rjfiqag4TtB+CzY5N6cvGSD3Zle+znWMXDbTJC1XynryLpgwE1HA6cxTAro0M7VXBR5KTKkf8ku8WBgg+9TXCyBvcUC/ypHh1aJaRFauYBNf1xHQzeoaHen30MxleQMN2n5uNL2VjatXN223z5O3upwvsk0sIeGW7f0qxh4yBSojDAi8lnldTI3pX5eDBakTLvJiD53fvgsW3L//cf/hEPucPf/8JNu86v06QW3kymTVbJA3iIsQH47rVpTvfNehBM5y2qyNYJlU/j/YMAf3UUdx/5v0b+1m9N6YGVF9webriD1SPIVshivlSxsGegS77VrOTlfpW8/+AladuJvWy0oPtOsQ+GylNz5o6NgCmK5ZqWshrv+SHljN1XQA8w3VNy62TyQ8z1nanyHJM4CKhl+JPiTk4BY4jUq7tuKbhIfuCdBbN4+dlVffjR3ro1b8= \ No newline at end of file diff --git a/src/Controller/Controleur.php b/src/Controller/Controleur.php new file mode 100755 index 0000000..55ea73d --- /dev/null +++ b/src/Controller/Controleur.php @@ -0,0 +1,91 @@ +Reinit(); + break; + + +case "validationFormulaire": + $this->ValidationFormulaire($dVueEreur); + break; + +//mauvaise action +default: +$dVueEreur[] = "Erreur d'appel php"; +require ($rep.$vues['vuephp1']); +break; +} + +} catch (PDOException $e) +{ + //si erreur BD, pas le cas ici + $dVueEreur[] = "Erreur inattendue!!! "; + require ($rep.$vues['erreur']); + +} +catch (Exception $e2) + { + $dVueEreur[] = "Erreur inattendue!!! "; + require ($rep.$vues['erreur']); + } + + +//fin +exit(0); +}//fin constructeur + + +function Reinit() { +global $rep,$vues; + +$dVue = array ( + 'nom' => "", + 'age' => 0, + ); + require ($rep.$vues['vuephp1']); +} + +function ValidationFormulaire(array $dVueEreur) { +global $rep,$vues; + + +//si exception, ca remonte !!! +$nom=$_POST['txtNom']; // txtNom = nom du champ texte dans le formulaire +$age=$_POST['txtAge']; +\config\Validation::val_form($nom,$age,$dVueEreur); + +$model = new \Modele\Simplemodel(); +$data=$model->get_data(); + +$dVue = array ( + 'nom' => $nom, + 'age' => $age, + 'data' => $data, + ); + require ($rep.$vues['vuephp1']); +} + +}//fin class + +?> diff --git a/src/Controller/aSupp b/src/Controller/aSupp deleted file mode 100644 index e69de29..0000000 diff --git a/src/Modele/Simplemodel.php b/src/Modele/Simplemodel.php new file mode 100755 index 0000000..6359e80 --- /dev/null +++ b/src/Modele/Simplemodel.php @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/src/Modele/aSupp b/src/Modele/aSupp deleted file mode 100644 index e69de29..0000000 diff --git a/src/Vue/css/style.css b/src/Vue/css/style.css index be7d5b7..e527f5c 100644 --- a/src/Vue/css/style.css +++ b/src/Vue/css/style.css @@ -7,10 +7,74 @@ body { min-height: 100vh; background: linear-gradient(to right, #ffffff,#38B6FF); display: flex; + font-family: sans-serif; + background-color: #81d4fa; + font-weight: bold; align-items: center; justify-content: center; } +.btn{ + display: flex; + flex-direction: column; + margin-left: 17rem; + margin-top: -22rem; +} + +.btn:link, +.btn:visited { + text-transform: uppercase; + text-decoration: none; + padding: 10px 20px; + display: inline-block; + border-radius: 100px; + font-size: 60%; + transition: all .2s; + position: absolute; +} + +.btn:hover { + transform: translateY(-3px); + box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); +} + +.btn:active { + transform: translateY(-1px); + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); +} + +.btn-white { + background-color: #fff; + color: #777; +} + +.btn::after { + content: ""; + display: inline-block; + height: 100%; + width: 100%; + border-radius: 100px; + position: absolute; + top: 0; + left: 0; + z-index: -1; + transition: all .4s; +} + +.btn-white::after { + background-color: #fff; +} + +.btn:hover::after { + transform: scaleX(1.5) scaleY(1.7); + opacity: 0; +} + +.btn-animated { + animation: moveInBottom 5s ease-out; + animation-fill-mode: backwards; +} + .model { width: 450px; background: rgba(255,255,255, .5); @@ -40,6 +104,22 @@ body { text-align: center; } +.BoutonVisiteur { + display: flex; + align-items: center; + color: rgba(0, 0, 0, .4); + width: 150px; + height: 50px; + background: rgba(255,255,255,.3); + padding: 1rem 1.5rem; + border-radius: 30px; +} + +.BoutonVisiteur:hover { + background: white; + transform: scale(1.1); +} + .model a{ text-decoration: none; color: #35339a; diff --git a/src/index.html b/src/Vue/html/index.html similarity index 88% rename from src/index.html rename to src/Vue/html/index.html index e2766dd..3984b15 100644 --- a/src/index.html +++ b/src/Vue/html/index.html @@ -5,26 +5,29 @@ Login Page - + +
+ Rentrer quand même +
+
- +
diff --git a/src/config/.DS_Store b/src/config/.DS_Store new file mode 100644 index 0000000..c8d671a Binary files /dev/null and b/src/config/.DS_Store differ diff --git a/src/config/Autoload.php b/src/config/Autoload.php new file mode 100755 index 0000000..1d9a4b6 --- /dev/null +++ b/src/config/Autoload.php @@ -0,0 +1,55 @@ + \ No newline at end of file diff --git a/src/config/SplClassLoader.php b/src/config/SplClassLoader.php new file mode 100755 index 0000000..378906e --- /dev/null +++ b/src/config/SplClassLoader.php @@ -0,0 +1,155 @@ +. + */ + +/** + * SplClassLoader implementation that implements the technical interoperability + * standards for PHP 5.3 namespaces and class names. + * + * http://groups.google.com/group/php-standards/web/psr-0-final-proposal?pli=1 + * + * // Example which loads classes for the Doctrine Common package in the + * // Doctrine\Common namespace. + * $classLoader = new SplClassLoader('Doctrine\Common', '/path/to/doctrine'); + * $classLoader->register(); + * + * @license http://www.opensource.org/licenses/mit-license.html MIT License + * @author Jonathan H. Wage + * @author Roman S. Borschel + * @author Matthew Weier O'Phinney + * @author Kris Wallsmith + * @author Fabien Potencier + */ +class SplClassLoader +{ + private $_fileExtension = '.php'; + private $_namespace; + private $_includePath; + private $_namespaceSeparator = '\\'; + + /** + * Creates a new SplClassLoader that loads classes of the + * specified namespace. + * + * @param string $ns The namespace to use. + */ + public function __construct(string $ns = null, string $includePath = null) + { + $this->_namespace = $ns; + $this->_includePath = $includePath; + } + + /** + * Sets the namespace separator used by classes in the namespace of this class loader. + * + * @param string $sep The separator to use. + */ + public function setNamespaceSeparator(string $sep) + { + $this->_namespaceSeparator = $sep; + } + + /** + * Gets the namespace seperator used by classes in the namespace of this class loader. + * + * @return void + */ + public function getNamespaceSeparator() + { + return $this->_namespaceSeparator; + } + + /** + * Sets the base include path for all class files in the namespace of this class loader. + * + * @param string $includePath + */ + public function setIncludePath(string $includePath) + { + $this->_includePath = $includePath; + } + + /** + * Gets the base include path for all class files in the namespace of this class loader. + * + * @return string $includePath + */ + public function getIncludePath() + { + return $this->_includePath; + } + + /** + * Sets the file extension of class files in the namespace of this class loader. + * + * @param string $fileExtension + */ + public function setFileExtension($fileExtension) + { + $this->_fileExtension = $fileExtension; + } + + /** + * Gets the file extension of class files in the namespace of this class loader. + * + * @return string $fileExtension + */ + public function getFileExtension() + { + return $this->_fileExtension; + } + + /** + * Installs this class loader on the SPL autoload stack. + */ + public function register() + { + spl_autoload_register(array($this, 'loadClass')); + } + + /** + * Uninstalls this class loader from the SPL autoloader stack. + */ + public function unregister() + { + spl_autoload_unregister(array($this, 'loadClass')); + } + + /** + * Loads the given class or interface. + * + * @param string $className The name of the class to load. + * @return void + */ + public function loadClass(string $className) + { + if (null === $this->_namespace || $this->_namespace.$this->_namespaceSeparator === substr($className, 0, strlen($this->_namespace.$this->_namespaceSeparator))) { + $fileName = ''; + $namespace = ''; + if (false !== ($lastNsPos = strripos($className, $this->_namespaceSeparator))) { + $namespace = substr($className, 0, $lastNsPos); + $className = substr($className, $lastNsPos + 1); + $fileName = str_replace($this->_namespaceSeparator, DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR; + } + $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . $this->_fileExtension; + + require ($this->_includePath !== null ? $this->_includePath . DIRECTORY_SEPARATOR : '') . $fileName; + } + } +} \ No newline at end of file diff --git a/src/config/Validation.php b/src/config/Validation.php new file mode 100755 index 0000000..e398a10 --- /dev/null +++ b/src/config/Validation.php @@ -0,0 +1,40 @@ + \ No newline at end of file diff --git a/src/config/config.php b/src/config/config.php new file mode 100755 index 0000000..9075c1e --- /dev/null +++ b/src/config/config.php @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/src/index.php b/src/index.php new file mode 100755 index 0000000..780489f --- /dev/null +++ b/src/index.php @@ -0,0 +1,17 @@ + \ No newline at end of file