require_once ROOT . 'Views/vue_Alert.php'; if ($tabCommandes->taille() != 0) { ?> <div class="row"> <form action="<?php echo $_SERVER['PHP_SELF']; ?> ?uc=MonCompte&action=HistoriqueCommande" method="POST" > <div class="clear col-xs-12 col-sm-2"> <select name="Commande" class="form-control" onChange='submit(form)'>> <option value='0' selected>Selectionner une Commande</option> <?php foreach ($tabCommandes->getCollection() as $commande) { echo "<option value='" . $commande->getNumCommande() . "'"; echo ">" . 'Commande n°' . $commande->getNumCommande() . ' Achetée le ' . Date::formaterDateFr($commande->getDateCommande()) . "</option>"; } ?> </select> </div> </form> </div> <?php if (isset($_POST['Commande'])) { $total = 0; ?> <div class="row"> <div class="row row-centered"> <div class="col-xs-12 col-md-6 col-md-offset-3"> <h2>Commande n°<?php echo $commande->getNumCommande();
?> </h4> <img class="img-responsive" src=<?php echo $Livre->getCouverture(); ?> /><br/> <h5><?php echo '<strong>' . "Code ISBN : " . '</strong>' . $Livre->getCodeISBN(); ?> </h5> <h5><?php echo '<strong>' . "Genre : " . '</strong>' . $Livre->getGenre()->getNomGenre(); ?> </h5> <h5><?php echo '<strong>' . "Date de Sortie : " . '</strong>' . Date::formaterDateFr($Livre->getDateSortie()); ?> </h5> <h5 class="text-justify"><?php echo '<strong>' . "Résumé : " . '</strong><br/>' . $Livre->getResume(); ?> </h5> </div> <div class="col-xs-6 col-sm-6"><br/><br/><br/><br/><br/> <h5 align="vertical"><?php echo '<strong>' . "Prix : " . '</strong>' . $Livre->getTarif() . '€'; ?> </h5> <?php if ($Livre->getQuantiteStock() == 0) {