=NOW('')"; $SQL.=" ORDER By DateFinPromotion"; //classe les promotions finissant en premier $Requete=mysql_query($SQL,$Connection); $T=mysql_fetch_object($Requete); ?>
0) {//il existe des images //Construction d'un tableau ?>
FichierImage; $tNumImages[]=$T->NumImage; $tNomImage[]=stripslashes($T->LibelleProd); $tPrixProd[]=$T->PrixProd; $tNumProd[]=$T->NumProd; $tCatProd[]=$T->CategorieProd; $tTauxPromo[]=$T->TauxPromo; $tTypePromo[]=$T->TypePromotion; $tDateFin[]=$T->DateFinPromotion; } //----------------------------------------------------- // définition du tableau HTML (plaquette de photos) $NbrePhotosParLigne=NBRE_COL_NOUVEAUTES; echo "\n"; $ligne=0; while (($ligne*$NbrePhotosParLigne)<(sizeof($tImages))) { //ligne du nom de la poupée echo "\n"; for ($pos = 0; $pos < $NbrePhotosParLigne; $pos++) { $ind=$ligne*$NbrePhotosParLigne+$pos; if (isset($tImages[$ind]) && $tImages[$ind]!="") { echo "\n"; } else { echo "\n"; } }//fin for print "\n"; // ligne de l' image principale echo "\n"; for ($pos = 0; $pos < $NbrePhotosParLigne; $pos++) { $ind=$ligne*$NbrePhotosParLigne+$pos; if (isset($tImages[$ind]) && $tImages[$ind]!="") {//recherche augmentation de prix avec les options $NomImg=substr($tImages[$ind],0,strlen($tImages[$ind])-4); echo "\n"; } else {//affichage vide si pas de photo sur la fin de ligne echo "\n"; } } print "\n"; //affichage ligne de ventes flash $ligne++; } echo "
\n"; echo "

",ucfirst($tNomImage[$ind]),""; echo "

  
\n"; echo ""; echo "",$Libel_ClicAgrandir," ",ucfirst($tNomImage[$ind]),"
\n"; echo "
  "; echo "
\n"; ?>