Hacked By AnonymousFox
<?php
include '../lib/init.php';
/**
* Initialisation
*/
use Lib\Utilisateur;
use Lib\Tool;
use Lib\Action;
use Lib\BreadCrumb;
$projetId = Tool::getId($_GET['projet'],BASEADMIN);
Utilisateur::ifConnect();
Action::ifIsset($projetId,'projet',BASEADMIN.'projet/managerProjet.php');
/* Information sur le projet */
$sql = $bdd->query("SELECT * FROM projet
WHERE projetId = $projetId ");
$data = $sql->fetchObject();
$nom = $data->projetNom;
?>
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1;">
<title><?= TITLEBACK ?></title>
<link rel="icon" type="image/png" href="<?= BASEADMIN ?>img/layout/favicon.png">
<link href="<?= BASEFRONT ?>js/scroll/scroll.css" rel="stylesheet" type="text/css">
<link href="<?= BASEADMIN ?>css/app.css" rel="stylesheet" type="text/css">
</head>
<body>
<main id="main">
<?php
include '../include/menu.php';
?>
<div id="container">
<?php
include '../include/header.php';
?>
<div id="contentTitre">
<h1>Gestion des commentaires pour : <?= $nom ?></h1>
</div>
<?php
BreadCrumb::add(BASEADMIN,array(
'Dashboard' => 'dashboard/dashboard.php',
'Gestion des projets' => 'projet/managerProjet.php',
'Gestion des commentaires' => ''
)
);
?>
<div id="content">
<!-- Tableau de gestion -->
<table class="table">
<tr>
<th width="40%" class="left">Commentaire</th>
<th width="50%" class="left">Message</th>
<th width="10%">Actions</th>
</tr>
<?php
$sql = $bdd->query("SELECT * FROM commentaire
WHERE commentaireParent = $projetId
AND commentaireType = 'projet'
ORDER BY commentaireId DESC ");
/**
* Si aucun commentaire
*/
if($sql->rowCount() == 0){
echo'<tr><td colspan="3">Aucun commentaire</td></tr>';
}
while($data = $sql->fetchObject()){
echo'<tr>';
/**
* Informations
*/
echo '<td class="left">';
echo '<p class="tableDate"> Ajout : '.Tool::dateTime('d/m/Y à H:i',$data->commentaireCreated).'</p>';
if(!is_null($data->commentaireChanged))
echo'<p class="tableDate">Modification : '.Tool::dateTime('d/m/Y à H:i',$data->commentaireChanged).'</p>';
echo '<p><strong>'.$data->commentaireUtilisateurNom.' '.$data->commentaireUtilisateurPrenom.'</strong></p>';
echo '<p>'.$data->commentaireUtilisateurEmail.'</p>';
echo'</td>';
/* Message */
echo'<td class="left">'.$data->commentaireMessage.'</td>';
/**
* Actions
*/
if(!$data->commentaireEtat){
echo'<td data-url="'.BASEADMIN.'actualite/publicationCommentaire.php?commentaire='.$data->commentaireId.'" class="tablePublucation">
<a href="#" title="Publication"><i class="tableAction rouge fa fa-check"></i></a>
</td>';
}
else{
echo'<td data-url="'.BASEADMIN.'actualite/publicationCommentaire.php?commentaire='.$data->commentaireId.'" class="tablePublucation">
<a href="#" title="Publication"><i class="tableAction turquoise fa fa-check"></i></a>
</td>';
}
echo'</tr>';
}
?>
</table>
</div>
</div>
</main>
<script type="text/javascript" src="<?= BASEFRONT ?>js/jquery/jquery.js"></script>
<script type="text/javascript" src="<?= BASEFRONT ?>js/jquery/jquery-ui.js"></script>
<script type="text/javascript" src="<?= BASEFRONT ?>js/scroll/scroll.js"></script>
<script type="text/javascript" src="<?= BASEADMIN ?>js/app.js"></script>
</body>
</html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox