Fractionnement de la page admin pour enlever le header et footer car déjà présent en partial. Attente de maj CSS/HTML du la page Admin de Guillaume pour pouvoir avancer sur le PHP

This commit is contained in:
laura.chevillet 2026-01-27 16:23:47 +01:00
parent 08cf6cc31c
commit 466c4b0625
4 changed files with 9 additions and 11 deletions

View file

@ -14,18 +14,18 @@
* @author Laura
*/
class Admin{
class AdminCtrl{
public function admin() {
$objCategory = new Category ();
/* $objCategory = new Category ();
$objCategory->setName($_POST['category_name'] ?? "");
$objCategory->setParent($_POST['category_parent'] ?? "");
$objCategoryModel = new CategoryModel();
$boolInsert = $objCategoryModel->insert($objCategory);
/* EN ATTENTE
EN ATTENTE
if ($boolInsert === true) {
$_SESSION['success'] = "Catégorie ajoutée avec succès";
header("Location:index.php?ctrl=admin&action=admin");
@ -41,5 +41,4 @@
include('../app/views/partials/footer.php');
}
}

View file

@ -116,7 +116,3 @@
</div>
</main>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<script src="js/scripts.js"></script>
</body>
</html>

View file

@ -28,5 +28,7 @@
<p>Suivez-nous</p>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<script src="js/scripts.js"></script>
</body>
</html>

View file

@ -11,6 +11,7 @@
<link rel="stylesheet" href="assests/css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
<script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script>
<title>Folliow</title>
</head>
<body>