Пример #1
0
                    <div class="table-responsive">
                        <table class="table table-condensed">
                            <thead>
                            <tr>
                                <td><strong>Article</strong></td>
                                <td class="text-center"><strong>Points</strong></td>
                                <td class="text-center"><strong>Quantité</strong></td>
                                <td class="text-right"><strong>Total</strong></td>
                            </tr>
                            </thead>
                            <tbody>



                            <?php 
$facturelignes = $mafacturemanager->recup_facture_lignes($monidfact);
/** Recuperation lignes factures*/
$soustraction = 0;
$totalpoints = 0;
foreach ($facturelignes as $factureligne) {
    $totalpoints = $totalpoints + $factureligne->getPointsart() * $factureligne->getQuantiteart();
    /** Calcul cout total */
    ?>
                                <!-- foreach ($order->lineItems as $line) or some such thing here -->
                                <tr>
                                    <td><?php 
    echo $factureligne->getNomart();
    /** Affichage */
    ?>
</td>
                                    <td class="text-center"><?php 
Пример #2
0
                    <h3 class="panel-title"><strong>Résumé</strong></h3>
                </div>
                <div class="panel-body">
                    <div class="table-responsive">
                        <table class="table table-condensed">
                            <thead>
                            <tr>
                                <td><strong>Article</strong></td>
                                <td class="text-center"><strong>Points</strong></td>
                                <td class="text-center"><strong>Quantité</strong></td>
                                <td class="text-right"><strong>Total</strong></td>
                            </tr>
                            </thead>
                            <tbody>
                            <?php 
$facturelignes = $monmanagerfacture->recup_facture_lignes($idfact);
$totalpoints = 0;
foreach ($facturelignes as $factureligne) {
    $totalpoints = $totalpoints + $factureligne->getPointsart() * $factureligne->getQuantiteart();
    ?>
                                <!-- foreach ($order->lineItems as $line) or some such thing here -->
                                <tr>
                                    <td><?php 
    echo $factureligne->getNomart();
    ?>
</td>
                                    <td class="text-center"><?php 
    echo $factureligne->getPointsart();
    ?>
</td>
                                    <td class="text-center"><?php