From 3a1f22db88192ab1c7bcd50c880da9af1ce9586b Mon Sep 17 00:00:00 2001 From: bastien ollier Date: Fri, 16 Dec 2022 19:49:30 +0100 Subject: [PATCH] correction css --- controllers/ControllerAdmin.php | 3 +-- gateways/GatewaySources.php | 2 +- vues/administration.php | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/controllers/ControllerAdmin.php b/controllers/ControllerAdmin.php index e75ea9a..78d949a 100644 --- a/controllers/ControllerAdmin.php +++ b/controllers/ControllerAdmin.php @@ -15,7 +15,6 @@ class ControllerAdmin { switch($action) { case "goToAdminConnexion": require($vues['adminConnexion']); - header("location:".$vues['adminConnexion']); break; case "goToAdministration": $gatewaySources = new GatewaySources(new Connection($dsn,$user,$pass)); @@ -89,7 +88,7 @@ class ControllerAdmin { $gate = new GatewaySources(new Connection($dsn, $user, $pass)); $gate->deleteSources($_REQUEST["idSource"]); } - header("location: ".$vues['administration']); + header("location: index.php?action=goToAdministration"); } function setNbArticlesParPage(){ diff --git a/gateways/GatewaySources.php b/gateways/GatewaySources.php index 4191480..76360f2 100644 --- a/gateways/GatewaySources.php +++ b/gateways/GatewaySources.php @@ -17,7 +17,7 @@ class GatewaySources public function deleteSources($idSource) { - $query = "delete from sources where idsource = :idsource;"; + $query = "delete from sources where link = :idsource;"; $this->con->executeQuery($query, array(':idsource' => array($idSource, PDO::PARAM_INT) ) ); diff --git a/vues/administration.php b/vues/administration.php index 88bac64..81f7427 100644 --- a/vues/administration.php +++ b/vues/administration.php @@ -9,11 +9,14 @@ getlink().'">'; echo "
"; echo ""; + echo ''; echo "
"; + echo ""; } ?>