|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Profils des Alumnis</title>
|
|
|
|
<link rel="stylesheet" href="{{ dir }}/public/css/profil.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
{% include "menu.html" %}
|
|
|
|
</header>
|
|
|
|
<h1>Les Alumnis :</h1>
|
|
|
|
|
|
|
|
<div class="profiles-container">
|
|
|
|
{% for profil in profils %}
|
|
|
|
<div class="profile">
|
|
|
|
<div class="profile-image-container">
|
|
|
|
<img src="{{ dir }}/public/assets/{{ profil.image ?: 'default.png' }}" alt="Image de profil">
|
|
|
|
</div>
|
|
|
|
<div class="profile-details">
|
|
|
|
<p>{{ profil.prenom }} {{ profil.nom }}</p>
|
|
|
|
<a href="{{ 'voir_profil.php?id=' ~ profil.id }}">Voir le profil</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<p>Aucun profil trouvé.</p>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pagination">
|
|
|
|
{% if page > 1 %}
|
|
|
|
<a href="{{ dir }}/getProfilByPage/{{ page - 1 }}">Précédente</a>
|
|
|
|
{% endif %}
|
|
|
|
<span>{{ page }}</span>
|
|
|
|
{% if page < nombreTotalPages %}
|
|
|
|
<a href="{{ dir }}/getProfilByPage/{{ page + 1 }}">Suivante</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|