diff --git a/WEB/Controller/EnigmeGateway.php b/WEB/Controller/EnigmeGateway.php index e1c733a9..e748c0b1 100644 --- a/WEB/Controller/EnigmeGateway.php +++ b/WEB/Controller/EnigmeGateway.php @@ -27,6 +27,12 @@ class EnigmeGateway $this->con = $con; } + /** + * It inserts a new row in the Enigme table, with the values of the Enigme object passed as + * parameter + * + * @param Enigme enigme + */ public function insert(Enigme $enigme) { $query = "INSERT INTO Enigme VALUES (:id,:admin,:enonce,:aide,:rappel,:solution,:test,:tempsDeResolution,:points)"; @@ -43,6 +49,12 @@ class EnigmeGateway )); } + /** + * It deletes a row from the table Enigme where the idEnigme is equal to the idEnigme passed as a + * parameter + * + * @param string idEnigme the id of the enigma + */ public function delete(string $idEnigme) { $query= "DELETE FROM Enigme WHERE idEnigme=:idEnigme"; @@ -51,6 +63,12 @@ class EnigmeGateway )); } + /** + * It returns an array of Enigme objects + * For multiplayer Enigma + * + * @return array An array of Enigme objects. + */ public function findMultiEnigma() : array { $query = "SELECT * FROM Enigme @@ -60,6 +78,12 @@ class EnigmeGateway return $tabEnigme; } + /** + * It returns an array of Enigma objects + * For Solo enigma + * + * @return An array of objects. + */ public function findSoloEnigma(){ $query = "SELECT * FROM Enigme WHERE points IS NULL OR points = 0"; @@ -77,7 +101,7 @@ class EnigmeGateway $tabEnigme=EnigmeFactory::create($this->con->getResults()); return $tabEnigme; } - /* + public function findById(string $idEnigme) : array { $query="SELECT * FROM Enigme WHERE idEnigme =:idEnigme"; diff --git a/WEB/View/assets/img/neonHead.jpg b/WEB/View/assets/img/neonHead.jpg deleted file mode 100644 index 813b578b..00000000 Binary files a/WEB/View/assets/img/neonHead.jpg and /dev/null differ diff --git a/WEB/View/src/CSS/Presentation.css b/WEB/View/src/CSS/Presentation.css index a8508824..1d9a7e0b 100644 --- a/WEB/View/src/CSS/Presentation.css +++ b/WEB/View/src/CSS/Presentation.css @@ -41,7 +41,7 @@ nav { /* Section Histoire */ section{ - min-height: 60vh; + min-height: 70vh; margin-bottom: 10px; } diff --git a/WEB/View/src/pages/Main2.html b/WEB/View/src/pages/Main2.html new file mode 100644 index 00000000..801b48de --- /dev/null +++ b/WEB/View/src/pages/Main2.html @@ -0,0 +1,27 @@ + + + + + + Scripted + + + + + + + + diff --git a/WEB/View/src/pages/Palindrome.html b/WEB/View/src/pages/Palindrome.html index 64a7e2bb..4bd7d5a7 100644 --- a/WEB/View/src/pages/Palindrome.html +++ b/WEB/View/src/pages/Palindrome.html @@ -28,7 +28,6 @@
-
@@ -40,24 +39,23 @@ >home
-
+ + Logo
-
+
diff --git a/WEB/View/src/pages/Presentation.html b/WEB/View/src/pages/Presentation.html index d5e6e10f..02a35cbe 100644 --- a/WEB/View/src/pages/Presentation.html +++ b/WEB/View/src/pages/Presentation.html @@ -37,6 +37,9 @@ Northgan + @@ -77,6 +80,15 @@ source.

+ +