-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplats.php
More file actions
59 lines (51 loc) · 2.34 KB
/
Copy pathplats.php
File metadata and controls
59 lines (51 loc) · 2.34 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
<?php
require_once 'class/db.php';
$db = new DB();
$plats = $db->getPlats();
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/plats.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="scripts/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
<?php echo file_get_contents("components/Nav.html"); ?>
<main class="p-5 container-fluid content-row">
<div class="row">
<?php foreach ($plats as $plat): ?>
<div class="col-lg-4 my-2">
<div class="card h-100 flex-fill">
<img src="public/<?php echo strtolower($plat["Nom"] . ".jpg") ?>" class="card-img-top plat-img"
alt="Image de <?php echo strtolower($plat["Nom"]) ?>" />
<div class="card-body">
<h5 class="card-title">
<?php echo $plat["Nom"] ?>
</h5>
<p class="card-text">
Ingredients:
<?php echo $plat["Description"] ?>
</p>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
</body>
</html>