$moyenneVote = $voteManager->getMoyenneVote($citation->getCitationNum());
$detailsPersonne = $personneManager->getPersonne($citation->getCitationPerNum());
$etudiant = $personneManager->getPersonne($citation->getCitationPerNumEtu());
?>
 <tr>
  <td> <?php 
echo $detailsPersonne->getPerNom() . " " . $detailsPersonne->getPerPrenom();
?>
 </td>
  <td> <?php 
echo $citation->getCitationLibelle();
?>
 </td>
  <td> <?php 
echo getFrenchDate($citation->getCitationDate());
?>
 </td>
  <td> <?php 
$moyenneVote ? print number_format($moyenneVote, 2) : (print "-");
?>
 </td>

  <?php 
if (isConnected() && $personneManager->isEtudiant(getPersonneConnectee()->getPerNum())) {
    ?>
  <td>
  <?php 
    if (!$voteManager->isPerNumDejaVote(getPersonneConnectee()->getPerNum(), $citation->getCitationNum())) {
        ?>
    <a href="index.php?page=<?php 
            //si noteUn non-vide ET noteDeux non-vide -> AFFICHER >= noteUn ET <= noteDeux
            //pour les 3 derniers cas, on accepte pas les citations sans moyenne
            if (empty($_POST['noteUn']) && empty($_POST['noteDeux']) || (empty($_POST['noteDeux']) && $moyenneCit >= $_POST['noteUn'] || empty($_POST['noteUn']) && $moyenneCit <= $_POST['noteDeux'] || !empty($_POST['noteUn']) && empty($_POST['noteUn']) && ($moyenneCit >= $_POST['noteUn'] && $moyenneCit <= $_POST['noteDeux'])) && is_numeric($moyenneCit)) {
                $personne = $managerP->getPersonneById($numPersonne);
                ?>
        <tr>
          <td> <?php 
                echo $personne->per_prenom . " " . $personne->per_nom;
                ?>
 </td>
          <td> <?php 
                echo $citation->getNomCitation();
                ?>
 </td>
          <td> <?php 
                echo getFrenchDate($citation->getDateCitation());
                ?>
 </td>
          <td> <?php 
                if (!is_numeric($moyenneCit)) {
                    echo "N/A";
                } else {
                    echo $moyenneCit;
                }
                ?>
          </td>
        </tr>
         <?php 
            }
        }
    }
<?php 
} else {
    $news = new News();
    $news = $newsManager->getNews($_GET['news']);
    ?>
      <!-- Post Content -->
      <article>
          <div class="container">
              <div class="row">
                  <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                    <h1><?php 
    echo $news->getNews_titre();
    ?>
</h1>
                    <i>Posté le <?php 
    echo getFrenchDate($news->getNews_date());
    ?>
</i>
                    <p><?php 
    echo $news->getNews_description();
    ?>
</p>
                    <p><a href="index.php?page=0">Retour à l'accueil</a></p>
                  </div>
              </div>
          </div>
      </article>

      <hr>
<?php 
}