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();
    </div>
</div>
<div class="row">
    <div class="col-xs-12 col-sm-12">
        <div class="thumbnail">
            <div class="caption">
                <?php 
foreach ($TabCom->getCollection() as $Commentaire) {
    ?>
                <div class="thumbnail">
                    <div class="caption">
                        <h4><?php 
    echo 'Posté par ' . $Commentaire->getUser()->getPrenom();
    ?>
                            <?php 
    echo 'le ' . Date::formaterFr($Commentaire->getDateCom());
    ?>
</h4>
                        <h5><?php 
    echo 'Contenu : ';
    ?>
</h5>
                        <h5><?php 
    echo $Commentaire->getCom();
    ?>
<h5>
                    </div>
                </div>
                <?php 
}
?>