Merge pull request #15 from Yasder5/guillaume

Fonctionnalité Modération sous Smarty + Débug
This commit is contained in:
Yass 2026-02-10 11:55:48 +01:00 committed by GitHub
commit 6eb58674be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 1046 additions and 22 deletions

View file

@ -122,4 +122,32 @@
return $rqPrep->fetch();
}
public function accept(int $id){
//SQL pour changer le status en accept
$strRq = "UPDATE project
SET project_status= 'publié'
WHERE project_id =".$id;
//retourne la commande
return $this->_db->query($strRq);
}
public function refuse(int $id){
$strRq = "UPDATE project
SET project_status= 'refusé'
WHERE project_id =".$id;
return $this->_db->query($strRq);
}
public function delete(int $id){
$strRq = "DELETE FROM project
WHERE project_id =".$id;
return $this->_db->query($strRq);
}
}