-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaiement_complet.php
More file actions
82 lines (77 loc) · 3.24 KB
/
Copy pathpaiement_complet.php
File metadata and controls
82 lines (77 loc) · 3.24 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
include('dbconfig.php');
include('security.php');
secAdmin();
include('includes/header.php');
include('includes/navbar.php');
?>
<div class="container-fluid">
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Paiements</h6>
</div>
<div class="card-body">
<?php
if (isset($_SESSION['success']) && $_SESSION['success'] != '') {
echo '<h2 class="bg-primary text-white"> ' . $_SESSION['success'] . ' </h2>
<meta http-equiv="refresh" content="5; url = paiement_complet.php" />';
unset($_SESSION['success']);
}
if (isset($_SESSION['status']) && $_SESSION['status'] != '') {
echo '<h2 class="bg-danger text-white"> ' . $_SESSION['status'] . ' </h2>';
unset($_SESSION['status']);
}
?>
<div class="table-responsive">
<?php
$query = "SELECT * FROM etudiants JOIN paiements ON etudiants.CIN = paiements.CIN and paiements.nature = 'complet';";
$query_run = mysqli_query($connection, $query);
?>
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th>ID</th>
<th>CIN</th>
<th>Nom</th>
<th>Prenom</th>
<th>type de paiement</th>
<th>nature de paiement</th>
<th>mois</th>
<th>annee</th>
</tr>
</thead>
<tbody>
<?php
if (mysqli_num_rows($query_run) > 0) {
while ($row = mysqli_fetch_assoc($query_run)) {
?>
<tr>
<td><?php echo $row['Id']; ?></td>
<td><?php echo $row['CIN']; ?></td>
<td><?php echo $row['Etudiant_name']; ?></td>
<td><?php echo $row['Etudiant_prenom']; ?></td>
<td><?php echo $row['type'] ?></td>
<td>
<span class="badge badge-primary" style="font-size: 16px;">
<?php echo $row['nature'] ?>
</span>
</td>
<td><?php echo $row['mois'] ?></td>
<td><?php echo $row['annee'] ?></td>
</tr>
<?php
}
} else {
echo "Aucun enregistrement trouvé";
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php
include('includes/scripts.php');
include('includes/footer.php');
?>