'; $_SESSION['libellesArt']=''; if (!isset($_SESSION['sOpt'])) $_SESSION['sOpt']="1"; echo ''; for($j=0; $j'; $idPrd=$idPrdTab[$j]; include ("_reqPanier/panier.reqSelectPrd.php"); // --------------------------------------------------- // 0 - FORMATTAGE apres CALCUL // --------------------------------------------------- include ("panier.formattageLignesCde.php"); echo '
'; // --------------------------------------------------- // Affichage image // --------------------------------------------------- echo '
'; echo '
'; if (isset($nomPrd)) { echo ''; if (isset($imagePrd)) echo '' .$nomPrd. ''; echo ''; } // Icône options if (isset($imagePrd)) { if ($imagePrd=='' || $imagePrd=='-') echo ''; } echo '
'; echo '
'; // --------------------------------------------------- // Affichage du nom prd // --------------------------------------------------- echo '
'; //pour mettre les options en colonnes if (isset($nomPrd)) { echo '
'; // --------------------------------------------------- // Affichage image + nom // --------------------------------------------------- // Trop compliqué avec fonction générique, de plus il faut aller sur idPrd avec clic droit if ( $affMContext === true ) echo '
'; else echo '
'; if ( $affMContext === true ) echo '' .$nomPrd. ''; else echo '' .$nomPrd. ''; echo '
'; // --------------------------------------------------- // Affichage de la remise ou promo // --------------------------------------------------- if (isset($typeReducLigneTab[$j]) && trim($typeReducLigneTab[$j])!='-' && $typeReducLigneTab[$j]!='') { echo '
'; echo ''; echo $typeReducLigneTab[$j]. '  '; if ($typeReducLigneTab[$j]==$cdeMsg[33]) { echo abs($remiseCli). '  % '; } if ($typeReducLigneTab[$j]==$cdeMsg[89]) { echo abs(intval($promo)). ' €'; } echo ''; } else { echo '
'; echo ' - '; } echo '
'; // --------------------------------------------------- // Prix HT remisé--> pas de place pour responsive // --------------------------------------------------- if ( $affMContext === true ) echo '
'; else echo '
'; if ( $affMContext === true ) echo ''; else echo ''; if (!empty($prixUnitRemiseHtTab[$j])) echo $prixUnitRemiseHtTab[$j]. '  €   '; echo ''; echo '
'; // --------------------------------------------------- // Quantité <--> creation d'un id unique sur chaque item pour post javascript // --------------------------------------------------- if ( $affMContext === true ) echo '
'; else echo '
'; $affListe=$catalogAfficher[30]; if (isset($_SESSION['geststockOui'])) $gererStock=$_SESSION['geststockOui']; else $gererStock=1; if ($gererStock==1 ) { // flag edt : 60 en dur if ($stock>60) $maxQte=60; else $maxQte=$stock; if ($stock >=1) $affListe==1; else $affListe==0; } else { $maxQte=$_SESSION['qDefaut']; } if ($affListe==0) {echo '' .$qteTab[$j] ; echo ''; } else { echo ''; // --------------------------------------------------- // si option quantité à 1 // --------------------------------------------------- $reqSelectP="SELECT * from prdOptions WHERE idCde =" .$idCde. " and idLgCde=" .$idLgCdeTab[$j]. ";"; if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug (2, ['codeOpe' => $codeOpe], 'panier.affLignes.php'); } $resConnX=''; $resConnX=$idPdo->query($reqSelectP); if ($resConnX) { $o=0; $test=-1; while($tabResult=$resConnX->fetch(PDO::FETCH_ASSOC)) { $test=$tabResult['numListe']; } if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug (2, ['test' => $test], ''); } } if($test>-1) { $qte=1; echo '1'; } else { // --------------------------------------------------- // Liste deroulante // --------------------------------------------------- if ( $affMContext === true ) echo ''; for ($ijk=1; $ijk<= $maxQte; $ijk++) { if ($ijk==$qteTab[$j]) {echo ''; } else {echo ''; } } echo ''; } echo ''; echo ''; } if (isset($debug[1]) && $debug[1] == '1' ) { $debugMsg .= monDebug (1, ['$_SESSION[qDefaut]' => $_SESSION['qDefaut'], 'qte' => $qte, 'maxQte' => $maxQte, 'affListe' => $affListe], ''); } // --------------------------------------------------- // Bouton supprimer: hoh hoho la class est en dur...flag edt // --------------------------------------------------- echo ' '; echo '
'; // --------------------------------------------------- // TTC de la ligne // --------------------------------------------------- if ( $affMContext === true ) echo '
'; else echo '
'; if ( $affMContext === true ) echo '' .$totTtcLigneTab[$j]. '  €   '; else echo '' .$totTtcLigneTab[$j]. '  €   '; echo '
'; // --------------------------------------------------- // Recup articles pour le mail commande // --------------------------------------------------- if (isset($imagePrd)) $imagesMail = str_replace("./",$_SESSION['prodServer']. '/',$imagePrd); if (isset($imagePrd)) $imagesMail = str_replace("../",$_SESSION['prodServer']. '/',$imagesMail); $libellesArt .='
  • ' .$nomPrd. ' ( ' .$qteTab[$j]. ' ) '. $totTtcLigneTab[$j] . ' € ' .$nomPrd. '
  • '; if (isset($debug[1]) && $debug[1] == '1') {include ("panier.debugLignes.php"); } echo '
    '; } // --------------------------------------------------- // Options // --------------------------------------------------- echo '
    '; include ("options.lignes.php"); echo '
    '; echo '
    '; echo '
    '; echo '
    '; }//for $libellesArt .=''; $_SESSION['libellesArt']=$libellesArt; ?>