alpha_full/admin/adminInclude/ressources/caracteristiquesToTab.php
2026-04-06 22:58:51 +02:00

362 lines
9.3 KiB
PHP
Executable File

<?php
//$nomFicAppelant = basename(__FILE__);
// -----------------------------------------------------
// Mise en tableau de chaque caPers
// ce fichier est includé dans :
// ./pages/panier/formOptions/formOptionsreqSelect
// ./admin/catalogue/listevaleurs/caPers
$v2=1;
// a faire marcher ( car ko dans form option ) essayer {$idTabType .$idCaPers}
// $tabIdType=${'idTabType' .$idCaPers};
// $tabTagLib=${'nomTabType' .$idCaPers};
// $tabCode1=${'code1TabType' .$idCaPers};
// $tabCode2=${'code2TabType' .$idCaPers};
// $prixHTTab=${'prixHTTabType' .$idCaPers};
// $prixTTCTab=${'prixTTCTabType' .$idCaPers};
// $imageCATab=${'imageCATabType' .$idCaPers};
// $tabTvaTaux=${'tauxTvaTabType' .$idCaPers};
// $idTypeCherche=${'prixTTCTabType' .$idCaPers};
// print_r($tabTvaTaux);
if ($v2==1) {
// -----------------------------------------------------
// Mise en tableau de chaque caPers
// idTypeX vient de la requete sur produit depuis optionTest.ca puis en generique s'appelle : idTypeCherche
//
// -----------------------------------------------------
switch ($idCaPers) {
case 1:
$tabIdType=$idTabType1;
$tabTagLib=$nomTabType1;
$tabOrdre=$ordreTabType1;
$tabCode1=$code1TabType1;
$tabCode3=$code3TabType1;
$tabCode2=$code2TabType1;
$prixHTTab=$prixHTTabType1;
$prixTTCTab=$prixTTCTabType1;
$imageCATab=$imageCATabType1;
$idTypeCherche=$idType1;
$tabTvaTaux=$tauxTvaTabType1;
break;
case 2:
$tabIdType=$idTabType2;
$tabTagLib=$nomTabType2;
$tabOrdre=$ordreTabType2;
$tabCode1=$code1TabType2;
$tabCode2=$code2TabType2;
$tabCode3=$code3TabType2;
$prixHTTab=$prixHTTabType2;
$prixTTCTab=$prixTTCTabType2;
$imageCATab=$imageCATabType2;
$idTypeCherche=$idType2;
$tabTvaTaux=$tauxTvaTabType2;
break;
case 3:
$tabIdType=$idTabType3;
$tabTagLib=$nomTabType3;
$tabOrdre=$ordreTabType3;
$tabCode1=$code1TabType3;
$tabCode2=$code2TabType3;
$tabCode3=$code3TabType3;
$prixHTTab=$prixHTTabType3;
$prixTTCTab=$prixTTCTabType3;
$imageCATab=$imageCATabType3;
$idTypeCherche=$idType3;
$tabTvaTaux=$tauxTvaTabType3;
break;
case 4:
$tabIdType=$idTabType4;
$tabTagLib=$nomTabType4;
$tabOrdre=$ordreTabType4;
$tabCode1=$code1TabType4;
$tabCode2=$code2TabType4;
$tabCode3=$code3TabType4;
$prixHTTab=$prixHTTabType4;
$prixTTCTab=$prixTTCTabType4;
$imageCATab=$imageCATabType4;
$idTypeCherche=$idType4;
$tabTvaTaux=$tauxTvaTabType4;
break;
case 5:
$tabIdType=$idTabType5;
$tabTagLib=$nomTabType5;
$tabOrdre=$ordreTabType5;
$tabCode1=$code1TabType5;
$tabCode2=$code2TabType5;
$tabCode3=$code3TabType5;
$prixHTTab=$prixHTTabType5;
$prixTTCTab=$prixTTCTabType5;
$imageCATab=$imageCATabType5;
$idTypeCherche=$idType5;
$tabTvaTaux=$tauxTvaTabType5;
break;
case 6:
$tabIdType=$idTabType6;
$tabTagLib=$nomTabType6;
$tabOrdre=$ordreTabType6;
$tabCode1=$code1TabType6;
$tabCode2=$code2TabType6;
$tabCode3=$code3TabType6;
$prixHTTab=$prixHTTabType6;
$prixTTCTab=$prixTTCTabType6;
$imageCATab=$imageCATabType6;
$idTypeCherche=$idType6;
$tabTvaTaux=$tauxTvaTabType6;
break;
case 7:
$tabIdType=$idTabType7;
$tabTagLib=$nomTabType7;
$tabOrdre=$ordreTabType7;
$tabCode1=$code1TabType7;
$tabCode2=$code2TabType7;
$tabCode3=$code3TabType7;
$prixHTTab=$prixHTTabType7;
$prixTTCTab=$prixTTCTabType7;
$imageCATab=$imageCATabType7;
$idTypeCherche=$idType7;
$tabTvaTaux=$tauxTvaTabType7;
break;
case 8:
$tabIdType=$idTabType8;
$tabTagLib=$nomTabType8;
$tabOrdre=$ordreTabType8;
$tabCode1=$code1TabType8;
$tabCode2=$code2TabType8;
$tabCode3=$code3TabType8;
$prixHTTab=$prixHTTabType8;
$prixTTCTab=$prixTTCTabType8;
$imageCATab=$imageCATabType8;
$idTypeCherche=$idType8;
$tabTvaTaux=$tauxTvaTabType8;
break;
case 9:
$tabIdType=$idTabType9;
$tabTagLib=$nomTabType9;
$tabOrdre=$ordreTabType9;
$tabCode1=$code1TabType9;
$tabCode2=$code2TabType9;
$tabCode3=$code3TabType9;
$prixHTTab=$prixHTTabType9;
$prixTTCTab=$prixTTCTabType9;
$imageCATab=$imageCATabType9;
$idTypeCherche=$idType9;
$tabTvaTaux=$tauxTvaTabType9;
break;
case 10:
$tabIdType=$idTabType10;
$tabTagLib=$nomTabType10;
$tabOrdre=$ordreTabType10;
$tabCode1=$code1TabType10;
$tabCode2=$code2TabType10;
$tabCode3=$code3TabType10;
$prixHTTab=$prixHTTabType10;
$prixTTCTab=$prixTTCTabType10;
$imageCATab=$imageCATabType10;
$idTypeCherche=$idType10;
$tabTvaTaux=$tauxTvaTabType10;
break;
case 11:
$tabIdType=$idTabType11;
$tabTagLib=$nomTabType11;
$tabOrdre=$ordreTabType11;
$tabCode1=$code1TabType11;
$tabCode2=$code2TabType11;
$tabCode3=$code3TabType11;
$prixHTTab=$prixHTTabType11;
$prixTTCTab=$prixTTCTabType11;
$imageCATab=$imageCATabType11;
$idTypeCherche=$idType11;
$tabTvaTaux=$tauxTvaTabType11;
break;
case 12:
$tabIdType=$idTabType12;
$tabTagLib=$nomTabType12;
$tabOrdre=$ordreTabType12;
$tabCode1=$code1TabType12;
$tabCode2=$code2TabType12;
$tabCode3=$code3TabType12;
$prixHTTab=$prixHTTabType12;
$prixTTCTab=$prixTTCTabType12;
$imageCATab=$imageCATabType12;
$idTypeCherche=$idType12;
$tabTvaTaux=$tauxTvaTabType12;
break;
case 13:
$tabIdType=$idTabType13;
$tabTagLib=$nomTabType13;
$tabOrdre=$ordreTabType13;
$tabCode1=$code1TabType13;
$tabCode2=$code2TabType13;
$tabCode3=$code3TabType13;
$prixHTTab=$prixHTTabType13;
$prixTTCTab=$prixTTCTabType13;
$imageCATab=$imageCATabType13;
$idTypeCherche=$idType13;
$tabTvaTaux=$tauxTvaTabType13;
break;
case 14:
$tabIdType=$idTabType14;
$tabTagLib=$nomTabType14;
$tabOrdre=$ordreTabType14;
$tabCode1=$code1TabType14;
$tabCode2=$code2TabType14;
$tabCode3=$code3TabType14;
$prixHTTab=$prixHTTabType14;
$prixTTCTab=$prixTTCTabType14;
$imageCATab=$imageCATabType14;
$idTypeCherche=$idType14;
$tabTvaTaux=$tauxTvaTabType14;
break;
case 15:
$tabIdType=$idTabType15;
$tabTagLib=$nomTabType15;
$tabOrdre=$ordreTabType15;
$tabCode1=$code1TabType15;
$tabCode2=$code2TabType15;
$tabCode3=$code3TabType15;
$prixHTTab=$prixHTTabType15;
$prixTTCTab=$prixTTCTabType15;
$imageCATab=$imageCATabType15;
$idTypeCherche=$idType15;
$tabTvaTaux=$tauxTvaTabType15;
break;
case 16:
$tabIdType=$idTabType16;
$tabTagLib=$nomTabType16;
$tabOrdre=$ordreTabType16;
$tabCode1=$code1TabType16;
$tabCode2=$code2TabType16;
$tabCode3=$code3TabType16;
$prixHTTab=$prixHTTabType16;
$prixTTCTab=$prixTTCTabType16;
$imageCATab=$imageCATabType16;
$idTypeCherche=$idType16;
$tabTvaTaux=$tauxTvaTabType16;
break;
case 17:
$tabIdType=$idTabType17;
$tabTagLib=$nomTabType17;
$tabOrdre=$ordreTabType17;
$tabCode1=$code1TabType17;
$tabCode2=$code2TabType17;
$tabCode3=$code3TabType17;
$prixHTTab=$prixHTTabType17;
$prixTTCTab=$prixTTCTabType17;
$imageCATab=$imageCATabType17;
$idTypeCherche=$idType17;
$tabTvaTaux=$tauxTvaTabType17;
break;
case 18:
$tabIdType=$idTabType18;
$tabTagLib=$nomTabType18;
$tabOrdre=$ordreTabType18;
$tabCode1=$code1TabType18;
$tabCode2=$code2TabType18;
$tabCode3=$code3TabType18;
$prixHTTab=$prixHTTabType18;
$prixTTCTab=$prixTTCTabType18;
$imageCATab=$imageCATabType18;
$idTypeCherche=$idType18;
$tabTvaTaux=$tauxTvaTabType18;
break;
case 19:
$tabIdType=$idTabType19;
$tabTagLib=$nomTabType19;
$tabOrdre=$ordreTabType19;
$tabCode1=$code1TabType19;
$tabCode2=$code2TabType19;
$tabCode3=$code3TabType19;
$prixHTTab=$prixHTTabType19;
$prixTTCTab=$prixTTCTabType19;
$imageCATab=$imageCATabType19;
$idTypeCherche=$idType19;
$tabTvaTaux=$tauxTvaTabType19;
break;
case 20:
$tabIdType=$idTabType20;
$tabTagLib=$nomTabType20;
$tabOrdre=$ordreTabType20;
$tabCode1=$code1TabType20;
$tabCode2=$code2TabType20;
$tabCode3=$code3TabType20;
$prixHTTab=$prixHTTabType20;
$prixTTCTab=$prixTTCTabType20;
$imageCATab=$imageCATabType20;
$idTypeCherche=$idType20;
$tabTvaTaux=$tauxTvaTabType20;
break;
case 21:
$tabIdType=$idTabType21;
$tabTagLib=$nomTabType21;
$tabOrdre=$ordreTabType21;
$tabCode1=$code1TabType21;
$tabCode2=$code2TabType21;
$tabCode3=$code3TabType21;
$prixHTTab=$prixHTTabType21;
$prixTTCTab=$prixTTCTabType21;
$imageCATab=$imageCATabType21;
$idTypeCherche=$idType21;
$tabTvaTaux=$tauxTvaTabType21;
break;
case 22:
$tabIdType=$idTabType22;
$tabTagLib=$nomTabType22;
$tabOrdre=$ordreTabType22;
$tabCode1=$code1TabType22;
$tabCode2=$code2TabType22;
$tabCode3=$code3TabType22;
$prixHTTab=$prixHTTabType22;
$prixTTCTab=$prixTTCTabType22;
$imageCATab=$imageCATabType22;
$idTypeCherche=$idType22;
$tabTvaTaux=$tauxTvaTabType22;
break;
case 23:
$tabIdType=$idTabType23;
$tabTagLib=$nomTabType23;
$tabOrdre=$ordreTabType23;
$tabCode1=$code1TabType23;
$tabCode2=$code2TabType23;
$tabCode3=$code3TabType23;
$prixHTTab=$prixHTTabType23;
$prixTTCTab=$prixTTCTabType23;
$imageCATab=$imageCATabType23;
$idTypeCherche=$idType23;
$tabTvaTaux=$tauxTvaTabType23;
break;
}
}
// if (isset($debug[15]) && $debug[15] == '1') {
// $debugMsg .= monDebug(1,[
// '<br>idTypeCherche'=> $idTypeCherche,
// 'tabIdType'=> $tabIdType
// ],'carateristiquesToTab.php');}
?>