Пример #1
0
<?php

//------------------------------------------------------------------------------
// confirmerPanier.php
// Maxim Hébert
// 22/03/2016
//------------------------------------------------------------------------------
global $root;
$root = '.';
require_once "biblio/foncCommunes.php";
session_start();
global $myBD;
if (isset($_SESSION['authentification'])) {
    $panier = new Panier();
    html_header();
    html_sideMenu("");
    echo "<div class='col-xs-12 col-sm-8 col-sm-offset-2'>";
    if ($panier->getNbAchats() == 0) {
        echo "<br><h3 class='text-center'>Votre commande d'achats est vide.</h3>";
    } else {
        $panier->afficherCommandes();
        $panier->afficherFacture();
        echo "\n            <p class='pull-right'>\n                <a href='panierGestion.php' class='btn btn-default'>Modifier la commande</a>\n                <a href='carteCredit.php' class='btn btn-success'>Commander</a>\n            </p>";
    }
    echo "</div>";
} else {
    header("location:authentification.php?provenance=confirmerPanier");
    exit;
}
html_footer();