-
Notifications
You must be signed in to change notification settings - Fork 6
/
produits.php
85 lines (79 loc) · 3.59 KB
/
produits.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
require_once("admin/model/bd_articles.php");
include("includes/header.php");
require_once("i18n/translationService.php");
$t = getTranslations();
?>
<style>
body {
padding-top: 90px;
}
</style>
</head>
<body>
<!--==========================
HEADER
============================-->
<header id="header" style="background: black">
<?php include("includes/nav.php")?>
</header>
<section id="contact" class="section-bg wow fadeInUp">
<div class="container">
<div class="section-header text-center">
<header class="section-header wow fadeInUp">
<h3><?php echo $t->shop_mod->title; ?></h3>
</header>
<p class="compact">
<?php echo $t->shop_mod->shop_info; ?>
</p>
<p class="font-weight-bold compact">
<?php echo $t->shop_mod->list_intro; ?>
</p>
</div>
<div class="row">
<div class="col-md" style="margin-bottom:10px">
<div class="card">
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th scope="col"><?php echo $t->shop_mod->image; ?></th>
<th scope="col"><?php echo $t->shop_mod->article; ?></th>
<th scope="col"><?php echo $t->shop_mod->price; ?></th>
<th scope="col"><?php echo $t->shop_mod->inventory; ?></th>
<th scope="col"><?php echo $t->shop_mod->description; ?></th>
</tr>
</thead>
<tbody>
<?php
$tabAllArticles = getAllArticles();
foreach ($tabAllArticles as $Article) { ?>
<tr class="clickable" data-toggle="collapse" id="row<?php echo $Article['articleID']; ?>" data-target=".row<?php echo $Article['articleID']; ?>">
<td>
<img height="100" width="100" src="<?php echo "../../img/epicerie/" . $Article['articleID'] . ".jpg"; ?>" />
</td>
<td>
<?php echo $Article['nom']; ?>
</td>
<td>
<?php echo $Article['cout']; ?>
</td>
<td>
<?php echo $Article['qty']; ?>
</td>
<td>
<?php echo $Article['info']; ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
<?php
include("includes/footer.php");
?>