-
Notifications
You must be signed in to change notification settings - Fork 0
/
filieres.php
64 lines (61 loc) · 2.55 KB
/
filieres.php
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
<?php
include('connexionDB.php');
session_start();
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>filières</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-default">
<?php include('navigation.php') ?>
</nav>
<div class="container">
<div style="text-align: right;">
<h5>Vous êtes connecté M/Mlle <?php echo $_SESSION['nom'].' '.$_SESSION['prenom']; ?></h5>
<a href="examen/deconnexion.php">
<button type="button" class="btn rounded-pill btn-info">Deconnectez-vous !</button>
</a>
</div>
<div class="container-xxl flex-grow-1 container-p-y">
<h3> Listes des filières</h3>
<a href="examen/add_filiere.php"><button type="button" class="btn rounded-pill btn-primary">Ajouter</button></a>
<table class="table table-condensed">
<thead>
<tr>
<th>ID</th>
<th>Code</th>
<th>Libelle</th>
<th>Actions</th>
</tr>
<?php
$numero = 0;
$filieres=$connexion->query("SELECT * FROM filiere");
while($element=$filieres->fetch()){
$numero +=1;
?>
</thead>
<tbody>
<td><?php echo $numero ?></td>
<td><?php echo $element['code'] ?></td>
<td><?php echo $element['libelle'] ?></td>
<td>
<a href="examen/update_filiere.php?id=<?=$element['id']?>"><button type="button" class="btn rounded-pill btn-warning">Modifier</button></a>
<a href="examen/delete_filiere_db.php?id=<?=$element['id']?>"><button type="button" class="btn rounded-pill btn-danger">Supprimer</button></a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</body>
</html>