isset($c1)?$c1:'empty', 'ETOU' => isset($ETOU)?$ETOU:'empty' ],'21-itemCheck.php');} // --------------------------------------------------- // Formulaire // --------------------------------------------------- if (isset ($c1) && strtoupper($c1)=='AUCUN') { echo '
'; } else { echo '
'; } // --------------------------------------------------- // Champs caché qui stock le bouton radio cliqué - unique par type de CA // --------------------------------------------------- if ($z==2) echo ''; // --------------------------------------------------- // Icône // --------------------------------------------------- if (isset($debug[15]) && $debug[15] == '1' ) { $debugMsg .= monDebug(1, ['u' => isset($u)?$u:'empty', 'src' => isset($src)?$src:'empty', 'item N°' => isset($tabItemNumber[$u])?$tabItemNumber[$u]:'empty', 'tabTagLib' => isset($tabTagLib[$z])?$tabTagLib[$z]:'empty', 'tabQuantite' => isset($tabQuantite[$u])? $tabQuantite[$u]:'empty', 'itemNumberPost' => isset($itemNumberPost[$u])?$itemNumberPost[$u]:'empty' ],''); } echo ' ' .$src. '   '; // --------------------------------------------------- // OU // --------------------------------------------------- if ($ETOU=='OU') { if ($tabItemNumber[$u]==$itemNumberPost && isset($tabQuantite[$u]) && $tabQuantite[$u]>0) {$checked="checked";} else $checked=""; echo ''; } // --------------------------------------------------- // ET // --------------------------------------------------- else { if (isset($tabQuantite[$u]) && $tabQuantite[$u]>0) { // si liste includée avec defaut remplis, la quantité ne compte pas mais on peut l'enlever elle passe à moins 1 // donc code3= SANS c'est que on veut une quantité à 0 mais coché, ou à -1 decochée // si zero elle doit aparaitre dans le panier if (strtoupper($isAucun)=='AUCUN') { echo ''; } if (strtoupper($c3)=='SANS') { echo ''; echo ''; } else { echo ''; if ($sOpt==$x) {$_SESSION['quantiteParListe']=($_SESSION['quantiteParListe']) + ($tabQuantite[$u]);} } echo ''; $activBtn=1; } else { if (isset ($c1) ) { // si isAucun on force le check alors que q = 0 if (strtoupper($isAucun=='AUCUN') && strtoupper($c1)=="AUCUN") echo ''; else echo ''; } } } if (isset($max) && $max!='' && $_SESSION['quantiteParListe'] > $max) { // echo ''; // echo 'Quantité dépassée, veuillez enlever un choix'; $isQDepasse=true; } // --------------------------------------------------- // le code C1 donne la quantité min // --------------------------------------------------- if (!empty($c1) && $c1!='-') { $test=substr($c1, 0, 3); if (strtolower($test)==strtolower('min')) { $min = substr($c1, -2); // max inlut le zero $min = trim( intval($min) ) ; $min = $min++ ; } } // Affichage du libellé echo ' ' .$tabTagLib[$z]. ''; if (isset($debug[15]) && $debug[15] == '1' ) { $debugMsg .= monDebug(1, [ 'c1' => isset($c1)?$c1:'empty', 'z' => $z, 'tabIdType' => $tabIdType[$z], 'u' => $u, 'tabItemN' => isset($tabItemNumber[$u])? $tabItemNumber[$u]:'empty', 'quant' => isset($quant)?$quant:'empty', 'lineItemQ[nLigne]' => isset($lineItemQuantite[$nLigne])?$lineItemQuantite[$nLigne]:'empty', 'SESSION[quantiteParListe]' => $_SESSION['quantiteParListe'] ],''); } $nombreItem[$x]++; echo '
'; ?>