Implémentation des nouvelles page admin
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent d8f4dae966
commit 2d5f9197d0

@ -27,11 +27,10 @@ $vues['next'] = 'View/src/pages/FirstTests/FirstTest';
//Admin //Admin
$vues['admin'] = 'View/src/pages/Admin/Admin.php'; $vues['admin'] = 'View/src/pages/Admin/Admin.php';
$vues['addEnigmeSolo'] = 'View/src/pages/Admin/AddEnigmeSolo.php'; $vues['addEnigmeSolo'] = 'View/src/pages/Admin/AddEnigmeSolo.php';
$vues['enigmeMultiManager'] = 'View/src/pages/Admin/EnigmeMultiManager.php';
$vues['enigmeSoloManager'] = 'View/src/pages/Admin/EnigmeSoloManager.php';
$vues['detailEnigme'] = 'View/src/pages/Admin/DetailEnigme.php'; $vues['detailEnigme'] = 'View/src/pages/Admin/DetailEnigme.php';
$vues['modifEnigmeSolo'] = 'View/src/pages/Admin/ModifEnigmeSolo.php'; $vues['modifEnigmeSolo'] = 'View/src/pages/Admin/ModifEnigmeSolo.php';
$vues['adminSolo'] = 'View/src/pages/Admin/AdminSolo.php'; $vues['adminSolo'] = 'View/src/pages/Admin/AdminExtendSolo.php';
$vues['adminMulti'] = 'View/src/pages/Admin/AdminExtendMulti.php';
$vues['seeOrdre'] = 'View/src/pages/Admin/SeeOrdre.php'; $vues['seeOrdre'] = 'View/src/pages/Admin/SeeOrdre.php';
$vues['modifOrdre'] = 'View/src/pages/Admin/ModifOrdre.php'; $vues['modifOrdre'] = 'View/src/pages/Admin/ModifOrdre.php';

@ -45,12 +45,6 @@ class AdminController extends UserController
case "addNewEnigmeSolo": case "addNewEnigmeSolo":
$this->addNewEnigmeSolo(); $this->addNewEnigmeSolo();
break; break;
case "goToEnigmeMultiManager":
$this->goToEnigmeMultiManager();
break;
case "goToEnigmeSoloManager":
$this->goToEnigmeSoloManager();
break;
case "goToDetailEnigme": case "goToDetailEnigme":
$this->goToDetailEnigme(); $this->goToDetailEnigme();
break; break;
@ -60,6 +54,9 @@ class AdminController extends UserController
case "goToAdminSolo": case "goToAdminSolo":
$this->goToAdminSolo(); $this->goToAdminSolo();
break; break;
case "goToAdminMulti":
$this->goToAdminMulti();
break;
case "goToSeeOrdre": case "goToSeeOrdre":
$this->goToSeeOrdre(); $this->goToSeeOrdre();
break; break;
@ -113,6 +110,8 @@ class AdminController extends UserController
{ {
try { try {
global $rep, $vues; global $rep, $vues;
$model = new AdminModel();
$lesEnigmesSolo = $model->getEnigmesSolo();
require($rep . $vues['admin']); require($rep . $vues['admin']);
} catch (Exception $e) { } catch (Exception $e) {
$error = $e->getMessage(); $error = $e->getMessage();
@ -129,58 +128,49 @@ class AdminController extends UserController
require($rep . $vues['erreur']); require($rep . $vues['erreur']);
} }
} }
public function goToDetailEnigme()
public function goToEnigmeMultiManager()
{
try {
global $rep, $vues;
require($rep . $vues['enigmeMultiManager']);
} catch (Exception $e) {
$error = $e->getMessage();
require($rep . $vues['erreur']);
}
}
public function goToEnigmeSoloManager()
{ {
try { try {
global $rep, $vues; global $rep, $vues;
$model = new AdminModel(); $model = new AdminModel();
$lesEnigmes = $model->getEnigmesSolo(); $enigme = $model->getEnigmeById($_GET['id']);
require($rep . $vues['enigmeSoloManager']); require($rep . $vues['detailEnigme']);
} catch (Exception $e) { } catch (Exception $e) {
$error = $e->getMessage(); $error = $e->getMessage();
require($rep . $vues['erreur']); require($rep . $vues['erreur']);
} }
} }
public function goToDetailEnigme() public function goToModifEnigmeSolo()
{ {
try { try {
global $rep, $vues; global $rep, $vues;
$model = new AdminModel(); $model = new AdminModel();
$enigme = $model->getEnigmeById($_GET['id']); $enigme = $model->getEnigmeById($_GET['id']);
require($rep . $vues['detailEnigme']); require($rep . $vues['modifEnigmeSolo']);
} catch (Exception $e) { } catch (Exception $e) {
$error = $e->getMessage(); $error = $e->getMessage();
require($rep . $vues['erreur']); require($rep . $vues['erreur']);
} }
} }
public function goToModifEnigmeSolo() public function goToAdminSolo()
{ {
try { try {
global $rep, $vues; global $rep, $vues;
$model = new AdminModel(); $model = new AdminModel();
$enigme = $model->getEnigmeById($_GET['id']); $lesEnigmesSolo = $model->getEnigmesSolo();
require($rep . $vues['modifEnigmeSolo']); require($rep . $vues['adminSolo']);
} catch (Exception $e) { } catch (Exception $e) {
$error = $e->getMessage(); $error = $e->getMessage();
require($rep . $vues['erreur']); require($rep . $vues['erreur']);
} }
} }
public function goToAdminSolo() public function goToAdminMulti()
{ {
try { try {
global $rep, $vues; global $rep, $vues;
require($rep . $vues['adminSolo']); // $model = new AdminModel();
// $lesEnigmesSolo = $model->getEnigmesSolo();
require($rep . $vues['adminMulti']);
} catch (Exception $e) { } catch (Exception $e) {
$error = $e->getMessage(); $error = $e->getMessage();
require($rep . $vues['erreur']); require($rep . $vues['erreur']);
@ -252,7 +242,7 @@ class AdminController extends UserController
$id = $_GET['id']; $id = $_GET['id'];
$model->deleteEnigme($id); $model->deleteEnigme($id);
echo '<script>alert("L\'énigme a bien été supprimé.");</script>'; echo '<script>alert("L\'énigme a bien été supprimé.");</script>';
$this->goToEnigmeSoloManager(); $this->goToAdmin();
} }
catch (Exception $e) { catch (Exception $e) {
$error = $e->getMessage(); $error = $e->getMessage();
@ -305,7 +295,7 @@ class AdminController extends UserController
} }
$enigme = $model->addNewEnigmeSolo($nom, $enonce, $aide, $rappel, $exemple, $test, $solution, $prompt); $enigme = $model->addNewEnigmeSolo($nom, $enonce, $aide, $rappel, $exemple, $test, $solution, $prompt);
echo '<script>alert("L\'énigme a bien été ajouté.");</script>'; echo '<script>alert("L\'énigme a bien été ajouté.");</script>';
require($rep . $vues['adminSolo']); $this->goToAdmin();
} catch (Exception $e) { } catch (Exception $e) {
$error = $e->getMessage(); $error = $e->getMessage();
require($rep . $vues['erreur']); require($rep . $vues['erreur']);

@ -1,273 +1,239 @@
@import url("https://fonts.googleapis.com/css2?family=Orbitron&display=swap"); @font-face {
font-family: Fauna;
src: url("../../assets/fonts/Fauna.ttf");
}
@font-face {
font-family: Equinox;
src: url("../../assets/fonts/Equinox.otf");
}
/* End Fonts CSS */
/*Default CSS*/
body { body {
min-height: 100vh; min-height: 100vh;
font-family: "Orbitron", sans-serif; font-family: Verdana, Geneva, Tahoma, sans-serif;
color: white; color: white;
background-image: url(../../assets/img/BackgroundAdmin.png);
scroll-behavior: smooth;
height: 100vh; height: 100vh;
background-position: center center; background-color: #111219;
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
background-color: #464646;
}
p,
a,
li,
button,
ul {
margin: 0;
padding: 0;
line-height: normal;
text-decoration: none !important;
}
/* Animation CSS */
@keyframes blink {
0%,
22%,
36%,
75% {
color: #ffe6ff;
text-shadow: 0 0 0.6rem #ffe6ff, 0 0 1.5rem #dd07bf,
-0.2rem 0.1rem 1rem #dd07bf, 0.2rem 0.1rem 1rem #dd07bf,
0 -0.5rem 2rem #841174, 0 0.5rem 3rem #841174;
}
28%,
33% {
color: #dd07bf;
text-shadow: none;
}
82%,
97% {
color: #991888;
text-shadow: none;
}
}
@keyframes flicker {
from {
opacity: 1;
}
4% {
opacity: 0.9;
}
6% {
opacity: 0.85;
}
8% {
opacity: 0.95;
}
10% {
opacity: 0.9;
}
11% {
opacity: 0.922;
}
12% {
opacity: 0.9;
}
14% {
opacity: 0.95;
}
16% {
opacity: 0.98;
}
17% {
opacity: 0.9;
}
19% {
opacity: 0.93;
}
20% {
opacity: 0.99;
}
24% {
opacity: 1;
}
26% {
opacity: 0.94;
}
28% {
opacity: 0.98;
}
37% {
opacity: 0.93;
}
38% {
opacity: 0.5;
}
39% {
opacity: 0.96;
}
42% {
opacity: 1;
}
44% {
opacity: 0.97;
}
46% {
opacity: 0.94;
}
56% {
opacity: 0.9;
}
58% {
opacity: 0.9;
}
60% {
opacity: 0.99;
}
68% {
opacity: 1;
}
70% {
opacity: 0.9;
}
72% {
opacity: 0.95;
}
93% {
opacity: 0.93;
}
95% {
opacity: 0.95;
}
97% {
opacity: 0.93;
}
to {
opacity: 1;
}
}
@keyframes animate1 {
0% {
left: -100%;
}
50%,
100% {
left: 100%;
}
}
@keyframes animate2 {
0% {
top: -100%;
}
50%,
100% {
top: 100%;
}
}
@keyframes animate3 {
0% {
right: -100%;
}
50%,
100% {
right: 100%;
}
} }
@keyframes animate4 { li {
0% { display: inline;
bottom: -100%; width: 225px;
}
50%,
100% {
bottom: 100%;
}
}
.flicker {
animation: shine 2s forwards, blink 3s 2s infinite;
}
.fast-flicker {
animation: shine 2s forwards, blink 10s 1s infinite;
}
h1 {
letter-spacing: 0.5rem;
color: #ffe6ff;
text-shadow: 0 0 0.6rem #ffe6ff, 0 0 1.5rem #dd07bf,
-0.2rem 0.1rem 1rem #dd07bf, 0.2rem 0.1rem 1rem #dd07bf,
0 -0.5rem 2rem #841174, 0 0.5rem 3rem #841174;
animation: shine 2s forwards, flicker 3s infinite;
} }
a { a {
letter-spacing: 0.2rem; color: white;
font-weight: 400; text-decoration: none !important;
border-radius: 10px;
font-size: 30px;
cursor: pointer;
transition: 0.5s;
}
a span {
position: absolute;
display: block;
} }
a:hover {
#enigmeSoloManager { color: white;
color: #ff86ff;
} }
#enigmeSoloManager:hover { h1,
background: #ff86ff; h2,
color: #000000; h3,
box-shadow: 0 0 5px #ff86ff, 0 0 25px #ff86ff, 0 0 50px #ff86ff, h4,
0 0 100px #ff86ff; h5,
-webkit-box-reflect: below 1px linear-gradient(transparent, #0005); h6,
.font {
font-family: Equinox;
} }
#enigmeMultiManager { button {
color: #56fcfc; background: transparent;
color: white;
outline: none;
}
.legend {
color: #898989;
font-weight: bolder;
}
.current {
background: rgb(146, 254, 157);
background: -moz-linear-gradient(
50deg,
rgba(146, 254, 157, 1) 0%,
rgba(0, 201, 255, 1) 100%
);
background: -webkit-linear-gradient(
50deg,
rgba(146, 254, 157, 1) 0%,
rgba(0, 201, 255, 1) 100%
);
background: linear-gradient(
50deg,
rgba(146, 254, 157, 1) 0%,
rgba(0, 201, 255, 1) 100%
);
box-shadow: 0px 0px 50px -5px rgba(0, 201, 255, 0.3);
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px;
}
.send {
background: rgb(146, 254, 157);
background: -moz-linear-gradient(
50deg,
rgba(146, 254, 157, 1) 0%,
rgba(0, 201, 255, 1) 100%
);
background: -webkit-linear-gradient(
50deg,
rgba(146, 254, 157, 1) 0%,
rgba(0, 201, 255, 1) 100%
);
background: linear-gradient(
50deg,
rgba(146, 254, 157, 1) 0%,
rgba(0, 201, 255, 1) 100%
);
box-shadow: 0px 0px 50px -5px rgba(0, 201, 255, 0.3);
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px;
width: max-content;
height: min-content;
}
.currentText {
color: black;
}
.currentText:hover {
color: black;
}
.nav-button {
color: #898989;
}
.nav-button:hover {
color: white;
} }
#enigmeMultiManager:hover { .dashboard-card {
background: #56fcfc; background: rgb(0, 0, 0);
color: #000000; background: -moz-linear-gradient(
box-shadow: 0 0 5px #56fcfc, 0 0 25px #56fcfc, 0 0 50px #56fcfc, 315deg,
0 0 100px #56fcfc; rgba(0, 0, 0, 0.4) 0%,
-webkit-box-reflect: below 1px linear-gradient(transparent, #0005); rgb(0, 0, 0) 30%
);
background: -webkit-linear-gradient(
315deg,
rgba(0, 0, 0, 0.4) 0%,
rgb(0, 0, 0) 30%
);
background: linear-gradient(
315deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 30%
);
border-radius: 15px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
-ms-border-radius: 15px;
-o-border-radius: 15px;
min-height: 350px;
overflow-y: scroll;
}
.dashboard-card-reversed {
background: rgb(0, 0, 0);
background: -moz-linear-gradient(
45deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 30%
);
background: -webkit-linear-gradient(
45deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 30%
);
background: linear-gradient(
45deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 30%
);
}
.dashboard-card-mail {
background: rgb(0, 0, 0);
background: -moz-linear-gradient(
180deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 30%
);
background: -webkit-linear-gradient(
180deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 30%
);
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 40%
);
border-radius: 15px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
-ms-border-radius: 15px;
-o-border-radius: 15px;
min-height: 400px;
}
.user-box input {
width: 100%;
font-family: Verdana, Geneva, Tahoma, sans-serif;
padding: 8px 0;
font-size: 12px;
color: #fff;
border: none;
border-bottom: 1px solid #fff;
outline: none;
background: transparent;
}
.user-box label {
position: absolute;
top: 0;
left: 0;
font-size: 16px;
color: #fff;
pointer-events: none;
transition: 0.5s;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
}
.user-box input:focus ~ label,
.user-box input:valid ~ label {
top: -20px;
left: 0;
color: #be5631;
font-size: 12px;
}
#message {
width: 100%;
height: 100%;
resize: none;
border: none;
background-color: transparent;
border: 1px solid #fff;
color: #fff;
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px;
} }

@ -1,238 +0,0 @@
@font-face {
font-family: Fauna;
src: url("../../assets/fonts/Fauna.ttf");
}
@font-face {
font-family: Equinox;
src: url("../../assets/fonts/Equinox.otf");
}
/* End Fonts CSS */
body {
min-height: 100vh;
font-family: Verdana, Geneva, Tahoma, sans-serif;
color: white;
height: 100vh;
background-color: #111219;
}
li {
display: inline;
width: 225px;
}
a {
color: white;
text-decoration: none !important;
}
a:hover {
color: white;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: Equinox;
}
button {
background: transparent;
color: white;
outline: none;
}
.legend {
color: #898989;
font-weight: bolder;
}
.current {
background: rgb(146, 254, 157);
background: -moz-linear-gradient(
50deg,
rgba(146, 254, 157, 1) 0%,
rgba(0, 201, 255, 1) 100%
);
background: -webkit-linear-gradient(
50deg,
rgba(146, 254, 157, 1) 0%,
rgba(0, 201, 255, 1) 100%
);
background: linear-gradient(
50deg,
rgba(146, 254, 157, 1) 0%,
rgba(0, 201, 255, 1) 100%
);
box-shadow: 0px 0px 50px -5px rgba(0, 201, 255, 0.3);
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px;
}
.send {
background: rgb(146, 254, 157);
background: -moz-linear-gradient(
50deg,
rgba(146, 254, 157, 1) 0%,
rgba(0, 201, 255, 1) 100%
);
background: -webkit-linear-gradient(
50deg,
rgba(146, 254, 157, 1) 0%,
rgba(0, 201, 255, 1) 100%
);
background: linear-gradient(
50deg,
rgba(146, 254, 157, 1) 0%,
rgba(0, 201, 255, 1) 100%
);
box-shadow: 0px 0px 50px -5px rgba(0, 201, 255, 0.3);
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px;
width: max-content;
height: min-content;
}
.currentText {
color: black;
}
.currentText:hover {
color: black;
}
.nav-button {
color: #898989;
}
.nav-button:hover {
color: white;
}
.dashboard-card {
background: rgb(0, 0, 0);
background: -moz-linear-gradient(
315deg,
rgba(0, 0, 0, 0.4) 0%,
rgb(0, 0, 0) 30%
);
background: -webkit-linear-gradient(
315deg,
rgba(0, 0, 0, 0.4) 0%,
rgb(0, 0, 0) 30%
);
background: linear-gradient(
315deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 30%
);
border-radius: 15px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
-ms-border-radius: 15px;
-o-border-radius: 15px;
min-height: 350px;
overflow-y: scroll;
}
.dashboard-card-reversed {
background: rgb(0, 0, 0);
background: -moz-linear-gradient(
45deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 30%
);
background: -webkit-linear-gradient(
45deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 30%
);
background: linear-gradient(
45deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 30%
);
}
.dashboard-card-mail {
background: rgb(0, 0, 0);
background: -moz-linear-gradient(
180deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 30%
);
background: -webkit-linear-gradient(
180deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 30%
);
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0.4) 0%,
rgba(0, 0, 0, 1) 40%
);
border-radius: 15px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
-ms-border-radius: 15px;
-o-border-radius: 15px;
min-height: 400px;
}
.user-box input {
width: 100%;
font-family: Verdana, Geneva, Tahoma, sans-serif;
padding: 8px 0;
font-size: 12px;
color: #fff;
border: none;
border-bottom: 1px solid #fff;
outline: none;
background: transparent;
}
.user-box label {
position: absolute;
top: 0;
left: 0;
font-size: 16px;
color: #fff;
pointer-events: none;
transition: 0.5s;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
}
.user-box input:focus ~ label,
.user-box input:valid ~ label {
top: -20px;
left: 0;
color: #be5631;
font-size: 12px;
}
#message {
width: 100%;
height: 100%;
resize: none;
border: none;
background-color: transparent;
border: 1px solid #fff;
color: #fff;
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px;
}

@ -0,0 +1,273 @@
@import url("https://fonts.googleapis.com/css2?family=Orbitron&display=swap");
/*Default CSS*/
body {
min-height: 100vh;
font-family: "Orbitron", sans-serif;
color: white;
background-image: url(../../assets/img/BackgroundAdmin.png);
scroll-behavior: smooth;
height: 100vh;
background-position: center center;
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
background-color: #464646;
}
p,
a,
li,
button,
ul {
margin: 0;
padding: 0;
line-height: normal;
text-decoration: none !important;
}
/* Animation CSS */
@keyframes blink {
0%,
22%,
36%,
75% {
color: #ffe6ff;
text-shadow: 0 0 0.6rem #ffe6ff, 0 0 1.5rem #dd07bf,
-0.2rem 0.1rem 1rem #dd07bf, 0.2rem 0.1rem 1rem #dd07bf,
0 -0.5rem 2rem #841174, 0 0.5rem 3rem #841174;
}
28%,
33% {
color: #dd07bf;
text-shadow: none;
}
82%,
97% {
color: #991888;
text-shadow: none;
}
}
@keyframes flicker {
from {
opacity: 1;
}
4% {
opacity: 0.9;
}
6% {
opacity: 0.85;
}
8% {
opacity: 0.95;
}
10% {
opacity: 0.9;
}
11% {
opacity: 0.922;
}
12% {
opacity: 0.9;
}
14% {
opacity: 0.95;
}
16% {
opacity: 0.98;
}
17% {
opacity: 0.9;
}
19% {
opacity: 0.93;
}
20% {
opacity: 0.99;
}
24% {
opacity: 1;
}
26% {
opacity: 0.94;
}
28% {
opacity: 0.98;
}
37% {
opacity: 0.93;
}
38% {
opacity: 0.5;
}
39% {
opacity: 0.96;
}
42% {
opacity: 1;
}
44% {
opacity: 0.97;
}
46% {
opacity: 0.94;
}
56% {
opacity: 0.9;
}
58% {
opacity: 0.9;
}
60% {
opacity: 0.99;
}
68% {
opacity: 1;
}
70% {
opacity: 0.9;
}
72% {
opacity: 0.95;
}
93% {
opacity: 0.93;
}
95% {
opacity: 0.95;
}
97% {
opacity: 0.93;
}
to {
opacity: 1;
}
}
@keyframes animate1 {
0% {
left: -100%;
}
50%,
100% {
left: 100%;
}
}
@keyframes animate2 {
0% {
top: -100%;
}
50%,
100% {
top: 100%;
}
}
@keyframes animate3 {
0% {
right: -100%;
}
50%,
100% {
right: 100%;
}
}
@keyframes animate4 {
0% {
bottom: -100%;
}
50%,
100% {
bottom: 100%;
}
}
.flicker {
animation: shine 2s forwards, blink 3s 2s infinite;
}
.fast-flicker {
animation: shine 2s forwards, blink 10s 1s infinite;
}
h1 {
letter-spacing: 0.5rem;
color: #ffe6ff;
text-shadow: 0 0 0.6rem #ffe6ff, 0 0 1.5rem #dd07bf,
-0.2rem 0.1rem 1rem #dd07bf, 0.2rem 0.1rem 1rem #dd07bf,
0 -0.5rem 2rem #841174, 0 0.5rem 3rem #841174;
animation: shine 2s forwards, flicker 3s infinite;
}
a {
letter-spacing: 0.2rem;
font-weight: 400;
border-radius: 10px;
font-size: 30px;
cursor: pointer;
transition: 0.5s;
}
a span {
position: absolute;
display: block;
}
#enigmeSoloManager {
color: #ff86ff;
}
#enigmeSoloManager:hover {
background: #ff86ff;
color: #000000;
box-shadow: 0 0 5px #ff86ff, 0 0 25px #ff86ff, 0 0 50px #ff86ff,
0 0 100px #ff86ff;
-webkit-box-reflect: below 1px linear-gradient(transparent, #0005);
}
#enigmeMultiManager {
color: #56fcfc;
}
#enigmeMultiManager:hover {
background: #56fcfc;
color: #000000;
box-shadow: 0 0 5px #56fcfc, 0 0 25px #56fcfc, 0 0 50px #56fcfc,
0 0 100px #56fcfc;
-webkit-box-reflect: below 1px linear-gradient(transparent, #0005);
}

@ -20,7 +20,7 @@
<body class="m-3"> <body class="m-3">
<div> <div>
<a class="btn btn-primary m-3" href="index.php?action=goToAdminSolo" role="button">Retour</a> <a class="btn btn-primary m-3" href="index.php?action=goToAdmin" role="button">Retour</a>
<h1 class="text-center">Ajouter un énigme</h1> <h1 class="text-center">Ajouter un énigme</h1>
</div> </div>
<form action="index.php?action=addNewEnigmeSolo" method="POST"> <form action="index.php?action=addNewEnigmeSolo" method="POST">
@ -76,8 +76,5 @@
Submit Submit
</button> </button>
</form> </form>
<!-- <script src="https://ajaxorg.github.io/ace-builds/src-noconflict/ace.js" type="text/javascript"
charset="utf-8"></script> -->
<!-- <script src="View/src/JS/base.js"></script> -->
</body> </body>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -20,8 +20,8 @@
integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/" integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/"
crossorigin="anonymous" crossorigin="anonymous"
></script> ></script>
<link rel="stylesheet" href="../../CSS/Admin2.css" /> <link rel="stylesheet" href="./View/src/CSS/Admin.css" />
<script src="../../JS/Admin.js"></script> <script src="./View/src/JS/Admin.js"></script>
</head> </head>
<body> <body>
<div class="d-flex"> <div class="d-flex">
@ -30,14 +30,14 @@
<nav class="navbar justify-content-center"> <nav class="navbar justify-content-center">
<!-- Title --> <!-- Title -->
<div class="row px-3 pt-4 pb-5 m-0 text-center" style="width: fit-content"> <div class="row px-3 pt-4 pb-5 m-0 text-center" style="width: fit-content">
<h2 style="font-family: Equinox">Scripted</h2> <a style="font-family: Equinox; font-size: 1.5em; font-weight: bold;" href="index.php?action=goToHome">Scripted</a>
</div> </div>
<!-- End Title --> <!-- End Title -->
<ul class="nav flex-column"> <ul class="nav flex-column">
<!-- ANCHOR Global Link --> <!-- ANCHOR Global Link -->
<li class="nav-item d-flex align-items-center px-1 py-2 mb-3"> <li class="nav-item d-flex align-items-center px-1 py-2 mb-3">
<a class="nav-link d-flex align-items-center nav-button" href="./Admin.html" onclick="changeCurrent(this)"> <a class="nav-link d-flex align-items-center nav-button" href="index.php?action=goToAdmin" onclick="changeCurrent(this)">
<svg class="mr-2" width="20px" height="20px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_iconCarrier"> <path d="M17.79 22.75H6.21C3.47 22.75 1.25 20.52 1.25 17.78V10.37C1.25 9.01 2.09 7.3 3.17 6.46L8.56 2.26C10.18 1 12.77 0.940005 14.45 2.12L20.63 6.45C21.82 7.28 22.75 9.06 22.75 10.51V17.79C22.75 20.52 20.53 22.75 17.79 22.75ZM9.48 3.44L4.09 7.64C3.38 8.2 2.75 9.47 2.75 10.37V17.78C2.75 19.69 4.3 21.25 6.21 21.25H17.79C19.7 21.25 21.25 19.7 21.25 17.79V10.51C21.25 9.55001 20.56 8.22 19.77 7.68L13.59 3.35C12.45 2.55 10.57 2.59 9.48 3.44Z" fill="currentColor" ></path> <path d="M12 18.75C11.59 18.75 11.25 18.41 11.25 18V15C11.25 14.59 11.59 14.25 12 14.25C12.41 14.25 12.75 14.59 12.75 15V18C12.75 18.41 12.41 18.75 12 18.75Z" fill="currentColor" ></path></g></svg> <svg class="mr-2" width="20px" height="20px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_iconCarrier"> <path d="M17.79 22.75H6.21C3.47 22.75 1.25 20.52 1.25 17.78V10.37C1.25 9.01 2.09 7.3 3.17 6.46L8.56 2.26C10.18 1 12.77 0.940005 14.45 2.12L20.63 6.45C21.82 7.28 22.75 9.06 22.75 10.51V17.79C22.75 20.52 20.53 22.75 17.79 22.75ZM9.48 3.44L4.09 7.64C3.38 8.2 2.75 9.47 2.75 10.37V17.78C2.75 19.69 4.3 21.25 6.21 21.25H17.79C19.7 21.25 21.25 19.7 21.25 17.79V10.51C21.25 9.55001 20.56 8.22 19.77 7.68L13.59 3.35C12.45 2.55 10.57 2.59 9.48 3.44Z" fill="currentColor" ></path> <path d="M12 18.75C11.59 18.75 11.25 18.41 11.25 18V15C11.25 14.59 11.59 14.25 12 14.25C12.41 14.25 12.75 14.59 12.75 15V18C12.75 18.41 12.41 18.75 12 18.75Z" fill="currentColor" ></path></g></svg>
Global Global
</a> </a>
@ -46,7 +46,7 @@
<!-- ANCHOR Enigme Solo Link --> <!-- ANCHOR Enigme Solo Link -->
<li class="nav-item d-flex align-items-center px-1 py-2 mb-3"> <li class="nav-item d-flex align-items-center px-1 py-2 mb-3">
<a class="nav-link d-flex align-items-center nav-button" href="./AdminExtendSolo.html" onclick="changeCurrent(this)"> <a class="nav-link d-flex align-items-center nav-button" href="index.php?action=goToAdminSolo" onclick="changeCurrent(this)">
<svg class="mr-2" fill="currentColor" height="20px" width="20px" version="1.1" id="XMLID_241_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_iconCarrier"> <g id="code"> <g> <path d="M9.9,22.3L8,21.7l6-20l1.9,0.6L9.9,22.3z M17.6,18.7l-1.5-1.4L21,12l-4.9-5.3l1.5-1.4l6.2,6.7L17.6,18.7z M6.2,18.7 L0.1,12l6.1-6.7l1.5,1.4L2.8,12l4.9,5.3L6.2,18.7z" ></path> </g> </g></g></svg> <svg class="mr-2" fill="currentColor" height="20px" width="20px" version="1.1" id="XMLID_241_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_iconCarrier"> <g id="code"> <g> <path d="M9.9,22.3L8,21.7l6-20l1.9,0.6L9.9,22.3z M17.6,18.7l-1.5-1.4L21,12l-4.9-5.3l1.5-1.4l6.2,6.7L17.6,18.7z M6.2,18.7 L0.1,12l6.1-6.7l1.5,1.4L2.8,12l4.9,5.3L6.2,18.7z" ></path> </g> </g></g></svg>
Énigmes Solo Énigmes Solo
</a> </a>
@ -100,7 +100,7 @@
<h6>Énigme 1</h6> <h6>Énigme 1</h6>
</div> </div>
<div class="col-2 d-flex justify-content-end"> <div class="col-2 d-flex justify-content-end">
<a href="./View/src/pages/Admin/SeeOrdre.php"> <a href="">
<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 24 24" id="more-vertical" data-name="Flat Line" xmlns="http://www.w3.org/2000/svg" class="icon flat-line" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_iconCarrier"><line id="primary-upstroke" x1="12" y1="5.95" x2="12" y2="6.05" style="fill: none; stroke: #ffffff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5;"></line><line id="primary-upstroke-2" data-name="primary-upstroke" x1="12" y1="11.95" x2="12" y2="12.05" style="fill: none; stroke: #ffffff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5;"></line><line id="primary-upstroke-3" data-name="primary-upstroke" x1="12" y1="17.95" x2="12" y2="18.05" style="fill: none; stroke: #ffffff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5;"></line></g></svg> <svg fill="currentColor" width="20px" height="20px" viewBox="0 0 24 24" id="more-vertical" data-name="Flat Line" xmlns="http://www.w3.org/2000/svg" class="icon flat-line" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_iconCarrier"><line id="primary-upstroke" x1="12" y1="5.95" x2="12" y2="6.05" style="fill: none; stroke: #ffffff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5;"></line><line id="primary-upstroke-2" data-name="primary-upstroke" x1="12" y1="11.95" x2="12" y2="12.05" style="fill: none; stroke: #ffffff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5;"></line><line id="primary-upstroke-3" data-name="primary-upstroke" x1="12" y1="17.95" x2="12" y2="18.05" style="fill: none; stroke: #ffffff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5;"></line></g></svg>
</a> </a>
</div> </div>

@ -21,7 +21,7 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<a class="btn btn-primary m-3" href="index.php?action=goToEnigmeSoloManager" role="button">Retour</a> <a class="btn btn-primary m-3" href="index.php?action=goToAdmin" role="button">Retour</a>
<h1>Enigme</h1> <h1>Enigme</h1>
</div> </div>
</div> </div>

@ -1,57 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Admin</title>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!-- CSS -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js"
integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/"
crossorigin="anonymous"
></script>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0"
/>
<link rel="stylesheet" href="./View/src/CSS/EnigmeMultiManager.css" />
</head>
<body>
<div class="d-flex">
<!-- console 1 pour les tests -->
<div class="d-flex flex-column">
<div class="row align-self-center">
<h2>test de l'&Eacutenigme</h2>
</div>
<div class="row">
<div class="ace rounded" id="editor">
</div>
</div>
</div>
</div>
<script src="https://ajaxorg.github.io/ace-builds/src-noconflict/ace.js" type="text/javascript"
charset="utf-8"></script>
<script src="https://raw.githack.com/pythonpad/brython-runner/master/lib/brython-runner.bundle.js"
type="text/javascript" charset="utf-8"></script>
<script src="View/src/JS/base.js"></script>
</body>
</html>

@ -1,35 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Admin</title>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!-- CSS -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU"
crossorigin="anonymous"
/>
</head>
<body>
<div class="container">
<div>
<a class="btn btn-primary m-3" href="index.php?action=goToAdminSolo" role="button">Retour</a>
<h1 class="text-center">Enigme Solo Manager</h1>
</div>
<div class="d-flex justify-content-center">
<a class="btn btn-primary m-3" href="index.php?action=goToSeeOrdre" role="button">Modifier l'ordre</a>
<?php
foreach ($lesEnigmes as $enigme){
echo "<a class=\"btn btn-primary m-3\" href=\"index.php?action=goToDetailEnigme&id=".$enigme->getIdEnigme()."\" role=\"button\">".$enigme->getNom() ."</a>";
}
?>
</div>
</div>
</body>

@ -19,7 +19,7 @@
</head> </head>
<body class="m-3"> <body class="m-3">
<div> <div>
<a class="btn btn-primary m-3" href="index.php?action=goToEnigmeSoloManager" role="button">Retour</a> <a class="btn btn-primary m-3" href="index.php?action=goToAdmin" role="button">Retour</a>
<h1> Modifier une énigme </h1> <h1> Modifier une énigme </h1>
</div> </div>
<form <form

@ -21,7 +21,7 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<a class="btn btn-primary m-3" href="index.php?action=goToEnigmeSoloManager" role="button">Retour</a> <a class="btn btn-primary m-3" href="index.php?action=goToAdmin" role="button">Retour</a>
<h1>Ordre des énigmes</h1> <h1>Ordre des énigmes</h1>
</div> </div>
</div> </div>

Loading…
Cancel
Save