-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
71 lines (60 loc) · 2.55 KB
/
index.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
<?php
//-----------------------------
// Page principal du site web, le catalogue.
//-----------------------------
require_once(realpath(__DIR__).'/php/biblio/foncCommunes.php');
//Variable pour que header.php charge un javascript spécifique à la page index.php
$js = array();
$js[] = 'index.js';
//Variable pour que header.php charge une feuille de style spécifique à la page index.php
$css = array();
$css[] = 'index.css';
//Variable pour que header.php donne un titre de page spécifique à index.php
$titre = 'LogiKek';
//Variable pour que header.php donne une description spécifique à la page index.php
$description = 'Site de vente de système d\'exploitation';
//Variable pour que header.php donne des mots clés spécifique à la page index.php
$motCle = 'OS, Linux, Windows, BSD, Apple, RHEL, Vente, logiciel';
//Charge les scripts
require_once("./header.php");
require_once("./sectionGauche.php");
?>
<!-- Début section central col-md-7 -->
<div class="col-md-7" id="centre">
<div class="pub">
<img class="img-responsive" src="./img/LogiKek2.png" alt="Logo LogiKek">
</div>
<!-- Début des produits -->
<div class="row">
<?php if(count($liste->getCatalogue()) > 0) : ?>
<?php foreach($liste->getCatalogue() as $value): ?>
<div class="col-md-4 panel panel-default produit">
<h4><?php echo $value->getNom(); ?></h4>
<a class="thumbnail imgProduitPetit" data-noProduit="<?php echo $value->getCodeProduit() ?>">
<img src="./img/produits/<?php echo $value->getCodeProduit(); ?>_small.png" alt="<?php echo $value->getNom(); ?>" onError="this.onerror=null;this.src='./img/produits/nonDispo_small.png';">
</a>
<?php foreach($value->getCategories() as $categorie): ?>
<span class="label label-info proCategorie"><?php echo $categorie; ?></span>
<?php endforeach; ?>
<h4 class="proPrix">
<?php echo number_format($value->getPrix(), 2); ?>$
<a href="./panierGestion.php?quoiFaire=ajout&noProduit=<?php echo $value->getCodeProduit(); ?>" class="proCart">
<i class="fa fa-shopping-cart"></i>
</a>
</h4>
</div>
<?php endforeach; ?>
<?php else : ?>
<h1 id="aucunProduit">Aucun produit</h1>
<?php endif; ?>
</div> <!-- Fin des produits -->
</div> <!-- Fin section central col-md-7 -->
<div class="col-md-1"> <!-- Début Section de droite central -->
</div>
<!-- Fin section de droite central -->
</div>
<div id="myModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog">
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<?php require_once('./footer.php'); ?>