示例#1
0
                            <tr>
                                <td class="no-line"></td>
                                <td class="no-line"></td>
                                <td class="no-line text-center"><strong>Total Commande</strong></td>
                                <td class="no-line text-right"><?php 
echo $totalpoints;
?>
</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php 
$soustraction = $points - $totalpoints;
/** Calcul des points en moins */
if ($soustraction < 0) {
    echo "Erreur";
} else {
    $mafacturemanager->valider();
    /** Validation Commande */
    $monpaniermanager = new PanierManager($bdd);
    $monpaniermanager->suppression_panier_all();
    /** Suppression Panier */
    $monutilisateurmanager->soustraction_points($soustraction);
    /** Soustraction points */
}