$n, 'count(SESSION[order]'=>count($_SESSION['order']), 'currentFormOrder'=> $currentFormOrder ],'02-formChapeau.php');
// boucle sur les 23 tables des caracteristiques
For ($x=0; $x<23; $x++) {
include ("couleurIcone.php");
// ---------------------------------------------------
// ---------------------------------------------------
// Requete select = Boucle sur requetes de chaque CA et mise en tableaux generiques
// ---------------------------------------------------
// ---------------------------------------------------
// ---------------------------------------------------
include ("./pages/panier/_formOptions/reqOpt/formOptionsreqSelect.php");
// init des variables de la boucle
$nbLignes=count($tabIdType);
${'affCetteListe' .$x}='none';
$nombreItem[$x]=0;
$numColonne[$x]=0;
$prefixIdItem=str_replace(' ', '_', $libDynNom[$x]);
$totQuantParListe=0;
// $ordreOptTab[$x]=100;
// $totMontantParListe =0;
// $delta=0;
if (!empty($_SESSION['typeDeListe'])) $typeDeListe=$_SESSION['typeDeListe'];
// ---------------------------------------------------
// idTypeCherche = 0 ne pas afficher
// idTypeCherche = 1 liste principale
// idTypeCherche >1 = valeur
$continuer=true;
// EDT
if ($idTypeCherche==0 ) $continuer=false;
if ($typeDeListe[$x]=='Includée' ) $continuer=true;
// allegment debug
// if (isset($debug[15]) && $debug[15] == '1' ) { $debugMsg .= monDebug(1,['
idTypeCherche'=>$idTypeCherche, 'continuer'=>$continuer, 'typeDeListe['.$x.']'=>$typeDeListe[$x], 'trouveOrdre'=>$trouveOrdre ],'02-formChapeau.php');}
// boucle sur la table des id generique
if ($continuer==true && $trouveOrdre==0) {
For ($z=0; $z<$nbLignes; $z++) {
if (!empty($tabCode1[$z])) $c1=strtoupper($tabCode1[$z]);
if (!empty($tabCode2[$z])) $c2=strtoupper($tabCode2[$z]);
if (!empty($tabCode3[$z])) $c3=strtoupper($tabCode3[$z]);
$tabItemNumber[$u]=$x .$z;
$prixHTOptTab[$u]=$prixHTTab[$z];
$prixTTCOptTab[$u]=$prixTTCTab[$z];
$tvaOptTab[$u]=$tabTvaTaux[$z];
// Trouver l'ordre d'affichage
if (isset($tabOrdre[$z]) && !empty($tabOrdre[$z]) && !isset($ordreOptTab[$x]) ) $ordreOptTab[$x]=$tabOrdre[$z];
//else $ordreOptTab[$x]=0
// allegment debug
// if (isset($debug[15]) && $debug[15] == '1' ) { $debugMsg .= monDebug(1,['tabOrdre[' .$z. ']' => $tabOrdre[$z], 'ordreOptTab[' .$x. ']' => $ordreOptTab[$x], 'tabTagLib[' .$z. ']' => $tabTagLib[$z], 'currentFormOrder' => $currentFormOrder ],'02-formChapeau.php'); }
// ---------------------------------------------------
// soit code1 = Listes avec option -> ON PRENDS CODE1 POUR SAVOIR LISTE
// soit code1 = Listes sans option -> ON PRENDS CODE2 de la ligne item=1 POUR SAVOIR et / ou
// soit code1 = Selection
// ---------------------------------------------------
// si on a trouve la bonne liste (ordre=ordre)
if ( $ordreOptTab[$x] == $currentFormOrder) {
// if ( isset($ordreOptTab[$x]) && $ordreOptTab[$x] == $currentFormOrder) {
// $tabIdType[$z]==1 :=> c'est une liste a afficher
// $idTypeCherche==1 :=> c'est l'id qui donne le type de fiche
if ($tabIdType[$z]==1 && $idTypeCherche==1 ) {
if (isset($debug[15]) && $debug[15] == '1' ) $debugMsg .= monDebug(1,['Je traite le type de liste: $tabIdType[$z]'=>$tabIdType[$z], 'c1'=>$c1 ], '02-formChapeau.php');
if (isset($c1)) {
if ($c1!="" && $c1!="-" && isset($c1)) {
$ETOU=$c2;
// ---------------------------------------------------
// Valeurs utiles pour le post suivant seulement
// ---------------------------------------------------
$_SESSION['ETOU']=$ETOU;
$sOpt=$x;
// ---------------------------------------------------
// Formulaire
// ---------------------------------------------------
echo '