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:
parent
08cf6cc31c
commit
466c4b0625
4 changed files with 9 additions and 11 deletions
|
|
@ -14,18 +14,18 @@
|
||||||
* @author Laura
|
* @author Laura
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Admin{
|
class AdminCtrl{
|
||||||
|
|
||||||
public function admin() {
|
public function admin() {
|
||||||
|
|
||||||
$objCategory = new Category ();
|
/* $objCategory = new Category ();
|
||||||
$objCategory->setName($_POST['category_name'] ?? "");
|
$objCategory->setName($_POST['category_name'] ?? "");
|
||||||
$objCategory->setParent($_POST['category_parent'] ?? "");
|
$objCategory->setParent($_POST['category_parent'] ?? "");
|
||||||
|
|
||||||
$objCategoryModel = new CategoryModel();
|
$objCategoryModel = new CategoryModel();
|
||||||
$boolInsert = $objCategoryModel->insert($objCategory);
|
$boolInsert = $objCategoryModel->insert($objCategory);
|
||||||
|
|
||||||
/* EN ATTENTE
|
EN ATTENTE
|
||||||
if ($boolInsert === true) {
|
if ($boolInsert === true) {
|
||||||
$_SESSION['success'] = "Catégorie ajoutée avec succès";
|
$_SESSION['success'] = "Catégorie ajoutée avec succès";
|
||||||
header("Location:index.php?ctrl=admin&action=admin");
|
header("Location:index.php?ctrl=admin&action=admin");
|
||||||
|
|
@ -41,5 +41,4 @@
|
||||||
include('../app/views/partials/footer.php');
|
include('../app/views/partials/footer.php');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -116,7 +116,3 @@
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</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>
|
|
||||||
|
|
|
||||||
|
|
@ -28,5 +28,7 @@
|
||||||
<p>Suivez-nous</p>
|
<p>Suivez-nous</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -11,10 +11,11 @@
|
||||||
<link rel="stylesheet" href="assests/css/style.css">
|
<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 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">
|
<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>
|
<title>Folliow</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav class="navbar navbar-expand-lg navbar-light">
|
<nav class="navbar navbar-expand-lg navbar-light">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<!-- Logo -->
|
<!-- Logo -->
|
||||||
<a class="navbar-brand d-flex align-items-center" href="#">
|
<a class="navbar-brand d-flex align-items-center" href="#">
|
||||||
|
|
@ -68,7 +69,7 @@
|
||||||
<ul class="navbar-nav ">
|
<ul class="navbar-nav ">
|
||||||
<li class="nav-item ">
|
<li class="nav-item ">
|
||||||
<a class="nav-link" href="edit_account.php" title="Modifier mon compte" aria-label="Modifier mon compte">
|
<a class="nav-link" href="edit_account.php" title="Modifier mon compte" aria-label="Modifier mon compte">
|
||||||
<img src=".<?php echo $_SESSION["user"]["user_image"]; ?>"
|
<img src=".<?php echo $_SESSION["user"]["user_image"]; ?>"
|
||||||
class="rounded-circle flex-shrink-0 mt-2 ml-5"
|
class="rounded-circle flex-shrink-0 mt-2 ml-5"
|
||||||
style="width: 36px; height: 36px; object-fit: cover;"
|
style="width: 36px; height: 36px; object-fit: cover;"
|
||||||
alt="Photo de profil">
|
alt="Photo de profil">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue