62 lines
2.4 KiB
PHP
Executable File
62 lines
2.4 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
$idCdeTab= array();
|
|
$nbLignesTab= array();
|
|
$etatCdeTab= array();
|
|
$poidsCdeTab= array();
|
|
$totalHtCdeTab= array();
|
|
$reductionCdeTab= array();
|
|
$fraisPortCdeTab= array();
|
|
$tvaCdeTab= array();
|
|
$totalTtcCdeTab= array();
|
|
$totalCdeTab= array();
|
|
$tabIdMl= array();
|
|
$commentaireTab= array();
|
|
$dateCdeTab= array();
|
|
$panierExistTab= array();
|
|
$libEtatTab= array();
|
|
|
|
if ($idMail=='' && isset ($_SESSION['idMail'])) {$idMail=$_SESSION['idMail'];}
|
|
$reqSelect="SELECT * FROM `commande` WHERE idMail='" .$idMail. "';";
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= 'mesCdes.reqSelect =' .$reqSelect. '<br>';}
|
|
$resConn=$idPdo->query($reqSelect);
|
|
if ($resConn) {
|
|
$a=0;
|
|
while($tableauCde=$resConn->fetch(PDO::FETCH_ASSOC)) {
|
|
|
|
$idCdeTab[$a]=$tableauCde['idCde'];
|
|
$nbLignesTab[$a]=$tableauCde['nbLigneCde'];
|
|
$etatCdeTab[$a]=$tableauCde['etatCde'];
|
|
$totalHtCdeTab[$a]=$tableauCde['totalHtCde'];
|
|
$reductionCdeTab[$a]=$tableauCde['reductionCde'];
|
|
$fraisPortCdeTab[$a]=$tableauCde['fpCdeTTC'];
|
|
$totalTtcCdeTab[$a]=$tableauCde['totalTtcCde'];
|
|
$totalCdeTab[$a]=$tableauCde['totalCde'];
|
|
$tabIdMl[$a]=$tableauCde['idModeLiv'];
|
|
$commentaireTab[$a]=$tableauCde['commentaire'];
|
|
$dateCdeTab[$a]=$tableauCde['dateCdeCrea'];
|
|
$dateCdeTabModif[$a]=$tableauCde['dateCdeModif'];
|
|
$panierExistTab[$a]='Oui';
|
|
// if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= '<br>panierExist[$a] = ' .$panierExistTab[$a];}
|
|
|
|
// --------------------------------------------------- libelle etats cde
|
|
$queryE="SELECT libelle FROM `libelleetatscde` WHERE codeEtat='" .$etatCdeTab[$a]. "' AND idLg='" .$lg. "';";
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= '<br>queryE = ' .$queryE;}
|
|
$resConn2=$idPdo->query($queryE);
|
|
if ($resConn2) {
|
|
$tableauE=$resConn2->fetch(PDO::FETCH_ASSOC);
|
|
$libEtatTab[$a]=$tableauE['libelle'];
|
|
// if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= '<br>libEtatTab = ' .$libEtatTab[$a];}
|
|
}
|
|
$a++;
|
|
}
|
|
}
|
|
else {
|
|
// Nous sommes désolés, les données ne peuvent pas être affichées.
|
|
$usrSiteMsg .= $navMsg[29]; $usrSiteMsgClass='ko';
|
|
// ---------------------------------------------------
|
|
// ==> contactez-nous
|
|
// ---------------------------------------------------
|
|
dynamiqItemImage (0,0,'boutons', 'span','-','menu', 18, 'icones','-','-');
|
|
}
|
|
?>
|