-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathetudiants_exclus.php
More file actions
68 lines (60 loc) · 2.22 KB
/
Copy pathetudiants_exclus.php
File metadata and controls
68 lines (60 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
include('security.php');
secAdmin();
include('includes/header.php');
include('includes/navbar.php');
include('dbconfig.php');
?>
<head>
<link rel="stylesheet" type="text/css" href="css/etudiant_admin.css?v=1.0">
</head>
<div class="container">
<div class="row blog">
<div class="col-md-12">
<div class="row">
<?php
$query = "SELECT * FROM `x_etudiants`";
$query_run = mysqli_query($connection, $query);
if (mysqli_num_rows($query_run) > 0) {
while ($row = mysqli_fetch_assoc($query_run)) {
// Vérifier si le chemin de l'image est vide
$imagePath = !empty($row['Image']) ? 'upload/images/' . $row['Image'] : 'upload/images/blanc.png';
?>
<div class="col-lg-3 col-md-6 col-sm-6">
<!-- Ajouter un lien vers detaille_etudiant.php avec l'ID de l'étudiant -->
<a href="detaille_x_etudiant.php?id=<?php echo $row['ID']; ?>" class="card-link">
<div class="our-team">
<div class="pic">
<img src="<?php echo $imagePath; ?>" alt="Image de l'étudiant">
</div>
<div class="team-content">
<h3 class="title"><?php echo $row['nom'] . ' ' . $row['prenom']; ?></h3>
</div>
<ul class="social">
<li>
<a href="https://wa.me/<?php echo $row['Tele']; ?>">
<i class="fa fa-phone"></i>
</a>
</li>
</ul>
</div>
</a></br>
<!-- Fin du lien -->
</div>
<?php
}
} else {
echo "Aucun trouvé";
}
?>
</div>
<!-- .row -->
</div>
<!-- .col -->
</div>
<!-- .row blog -->
</div>
<!-- .container -->
<?php
include('includes/footer.php');
?>