?>
</td>
        </tr>

        <tr>
            <td>Feuilles de style</td>
            <td><?php 
echo getNbFile("css", "css");
?>
</td>
        </tr>

        <tr>
            <td>Feuilles javascript</td>
            <td><?php 
echo getNbFile("js", "js");
?>
</td>
        </tr>
    </tbody>
</table>

<div id='infos'>


<h2> Détails sur mon travail </h2>
<p>
  Ce site est un TP réalisé lors de ma deuxième année de DUT Informatique à l'IUT du Limousin.<br/>
  Vous trouverez ci-dessous quelques informations supplémentaires <br/> <br/>
  Votre adresse IP : <?php 
echo $_SERVER["REMOTE_ADDR"] . " (port " . $_SERVER["REMOTE_PORT"] . ")";
<script> changerTitre("Connexion"); </script>
 <h1>Pour vous connecter</h1>
<?php 
$pdo = new Mypdo();
$personneManager = new PersonneManager($pdo);
if (empty($_POST['per_login']) || empty($_POST['per_pwd']) || empty($_POST['reponse'])) {
    // choix aléatoires des deux nombres pour le captcha
    //echo getNbFile("image/nb", "jpg");
    $nb1 = rand(1, getNbFile("image/nb", "jpg"));
    $nb2 = rand(1, getNbFile("image/nb", "jpg"));
    $_SESSION['reponseCaptcha'] = $nb1 + $nb2;
    ?>

    <?php 
    include "include/pages/form/connexion.form.inc.php";
} else {
    if (isset($_SESSION['reponseCaptcha'])) {
        $resultat = $_SESSION['reponseCaptcha'];
        // resultat attendu.
    } else {
        $resultat = '';
    }
    $reponseUser = $_POST['reponse'];
    // réponse utilisateur
    // détails de la connexion + verification details connexion
    $login = $_POST['per_login'];
    $pwd = $_POST['per_pwd'];
    $connexionOK = $personneManager->isConnexionAutorisee($login, $pwd);
    if ($reponseUser != $resultat) {
        $captcha = false;
        // captcha incorrect
  <?php 
//ATTENTION A L'APPELANT !
if ($detailPersonne->isPerAdmin()) {
    ?>
 <img alt="avatar <?php 
    echo $detailPersonne->getPerPrenom();
    ?>
" src="image/avatars/rootAvatar.gif" /> <?php 
} else {
    $nb = rand(1, getNbFile("image/avatars", "jpg"));
    ?>
    <img alt="avatar <?php 
    echo $detailPersonne->getPerPrenom();
    ?>
" src="image/avatars/<?php 
    echo $nb;
    ?>
.jpg" /> <?php 
}
?>
  <?php 
$divisionManager = new DivisionManager($pdo);
?>
  <table class="tableDetailPersonne sortable">
    <tr>
      <th>Pr&eacute;nom</th>
      <th>Mail</th>
      <th>T&eacute;l&eacute;phone</th>
      <?php 
if ($personneManager->isEtudiant($id)) {
    ?>