<script> changerTitre("Accueil"); </script> <?php $pdo = new Mypdo(); $citationManager = new CitationManager($pdo); $citation = $citationManager->getTopCitation(); $voteManager = new VoteManager($pdo); $personneManager = new PersonneManager($pdo); if (is_null($citation)) { ?> <h2>Aucune top citation à lister !</h2> <?php } else { ?> <h2> Actuellement, la meilleure citation est... </h2> <table class="sortable" > <tr> <th> Nom de l'enseignant </th> <th> Libellé </th> <th> Date</th> <th> Moyenne des notes </th> <?php if (isConnected() && $personneManager->isEtudiant(getPersonneConnectee()->getPerNum())) { ?> <th>Noter</th> <?php } if (isConnected() && getPersonneConnectee()->isPerAdmin()) { ?> <th> Déposé par </th> <th> Validé par </th> <th> Modération </th>