78 lines
3.6 KiB
PHP
Executable File
78 lines
3.6 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
$unitePoidsLib='Kg';
|
|
if (empty($lg)) $lg='FRA';
|
|
|
|
// ---------------------------------------------------
|
|
// Recup commande
|
|
// ---------------------------------------------------
|
|
include ("_reqPanier/panier.reqSelectCde.php");
|
|
include ("panier.formattageCde.php");
|
|
|
|
// ---------------------------------------------------
|
|
// Recup nombre articles
|
|
// ---------------------------------------------------
|
|
include ("_reqPanier/panier.reqSelectLignes.php");
|
|
|
|
// ---------------------------------------------------
|
|
// Panier synthèse
|
|
// ---------------------------------------------------
|
|
if ( $affMContext === true ) echo '<div id="blocSynthese" style="cursor:context-menu" ' .$mouseOverMenuContextContainer. ' onContextMenu="return mConStyle(this, \'Panier\', \'blocSynthese\', 8,\'cde\', 4, 82, event);" >';
|
|
else echo '<div id="blocSynthese" >';
|
|
echo '<h1 class="panierTitre" >';
|
|
dynamiqItemImage (0,0,'panierTitre', 'span', '-action-','cde',82, 'icones', '-textClass-','width:97%; text-align:center; margin:auto;margin-top:0;');
|
|
echo '</h1>';
|
|
|
|
if (isset($_SESSION['nbArt'])) {$nbArt=$_SESSION['nbArt'];};
|
|
if ($nbArt!=0 && $nbArt!='') {
|
|
// nb articles
|
|
dynamiqItemMessage(0, 0, '-', '-', 'div', 'itemPanier', '-action-', 'cde', 21, ' : ' .$nbArt );
|
|
|
|
// on est en kilos uniquement sur le total cde (voir panier.calculCde.php)
|
|
$reqSelect="SELECT libelle FROM `unitespoids` WHERE idPoids=2 and idLg='" .$lg. "';";
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug (2, ['Requête Select Poids' => $reqSelect], 'panierAffCde.php'); }
|
|
|
|
$resConn='';
|
|
$resConn=$idPdo->query($reqSelect);
|
|
if ($resConn) {
|
|
$tabResult=$resConn->fetch(PDO::FETCH_ASSOC);
|
|
if ($tabResult!='') {$unitePoidsLib=$tabResult['libelle'];}
|
|
else {$unitePoidsLib='Kg';}
|
|
}
|
|
|
|
// ---------------------------------------------------
|
|
// Poids en kilos
|
|
// ---------------------------------------------------
|
|
if ($poidsCde!='' && !empty(($poidsCde) ) ) {dynamiqItemMessage(0, 0, '-', '-', 'div', 'itemPanier', '-action-', 'cde', 23, ' ' .$poidsCde. ' ' .$unitePoidsLib ); }
|
|
|
|
// ---------------------------------------------------
|
|
// Total reduction
|
|
// ---------------------------------------------------
|
|
if ($reductionCde!='' && $reductionCde!=0) {dynamiqItemMessage(0, 0, '-', '-', 'div', 'itemPanier', '-action-', 'cde', 32, ' : ' .$reductionCde. ' €' ); }
|
|
|
|
// ---------------------------------------------------
|
|
// Total Cde
|
|
// ---------------------------------------------------
|
|
if ($totalTtcCde!='') {dynamiqItemMessage(0, 0, '-', '-', 'div', 'itemPanier', '-action-', 'cde', 33, ' : ' .$totalTtcCde. ' €' ); }
|
|
|
|
// ---------------------------------------------------
|
|
// Frais de port
|
|
// ---------------------------------------------------
|
|
if ($etape>=4) {dynamiqItemMessage(0, 0, '-', '-', 'div', 'itemPanier', '-action-', 'cde', 19, ' : ' .$fpCdeTTC. ' €' ); }
|
|
|
|
// ---------------------------------------------------
|
|
// Total général
|
|
// ---------------------------------------------------
|
|
if ($etape>=4) {
|
|
$totalCde=$_SESSION['totalCde'];
|
|
|
|
if ($totalCde!='' && $totalCde!=0 )
|
|
{dynamiqItemMessage(0, 0, '-', '-', 'div', 'itemPanier', '-action-', 'cde', 31, '  ' .$totalCde. ' €'); }
|
|
}
|
|
}
|
|
else {
|
|
// msg ==>Votre panier est vide
|
|
dynamiqItemImage (0, 0, 'titresPanier', 'span', '-', 'cde', 62, '-', '-textClass-', '-');
|
|
}
|
|
echo '</div>';
|
|
?>
|