Merge pull request #15 from Yasder5/guillaume
Fonctionnalité Modération sous Smarty + Débug
This commit is contained in:
commit
6eb58674be
13 changed files with 1046 additions and 22 deletions
|
|
@ -263,4 +263,46 @@
|
|||
header("Location: index.php?ctrl=project&action=home");
|
||||
exit;
|
||||
}
|
||||
|
||||
public function accept(){
|
||||
|
||||
//Récupéré l'id dans l'url
|
||||
$intId = $_GET['id'];
|
||||
|
||||
//Je créer un nouveau model pour exec la commande SQL
|
||||
$objProjectModel = new ProjectModel;
|
||||
$objProjectModel->accept($intId);
|
||||
|
||||
//Redirection vers la page
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
public function refuse(){
|
||||
|
||||
//Récupéré l'id dans l'url
|
||||
$intId = $_GET['id'];
|
||||
|
||||
//Je créer un nouveau model pour exec la commande SQL
|
||||
$objProjectModel = new ProjectModel;
|
||||
$objProjectModel->refuse($intId);
|
||||
|
||||
//Redirection vers la page
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
public function delete(){
|
||||
|
||||
//Récupéré l'id dans l'url
|
||||
$intId = $_GET['id'];
|
||||
|
||||
//Je créer un nouveau model pour exec la commande SQL
|
||||
$objProjectModel = new ProjectModel;
|
||||
$objProjectModel->delete($intId);
|
||||
|
||||
//Redirection vers la page
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue