"; echo "\n"; echo "
"; if ( $categorieData['MontreEntete']==1 ) { echo ""; echo "\n"; echo ""; echo "\n"; echo "
"; echo ""; if ( file_exists("photos/cat-".$line["NumCat"].".jpg")) echo ""; else echo ""; echo "
".trim(($line["TitreCat"]))."
".$line["DescCat"]."
".trim(($line["TitreCat"]))."
".nl2br($line["DescCat"])."
"; echo "

\n"; // sous Categorie $r = SQL_request("SELECT * FROM categorie WHERE ParentCat=".$num." ORDER BY OrdreCat"); if ( mysql_num_rows($r)!=0 ) { echo ""; echo "\n"; echo ""; echo "\n"; echo "
"; while ( $line = mon_mysql_fetch_array($r)) { echo ""; if ( file_exists("photos/cat-".$line["NumCat"].".jpg")) echo ""; else echo ""; echo "
".trim(($line["TitreCat"]))."
".nl2br($line["DescCat"])."
".trim(($line["TitreCat"]))."
".nl2br($line["DescCat"])."
"; } echo "

\n"; } } // recherche du nombre d'objet dans cette categorie $r = SQL_request('SELECT COUNT(*) FROM objetcategorie WHERE NumCat='.$num); $l = mon_mysql_fetch_array($r); $nbObjet = $l[0]; if ( !isset( $_GET['start'] )) $_GET['start']=0; $_GET['start'] = intval($_GET['start']); $r = SQL_request("SELECT * FROM objet, objetcategorie WHERE NumCat=".$num." AND objet.NumObj=objetcategorie.NumObj ORDER BY Reference DESC LIMIT ".$_GET['start'].",".$categorieData['NombreFiche']); if ( $categorieData['Format']==0 ) // affichage en fiches { while ( $line = mon_mysql_fetch_array($r)) { afficheFiche( $line["NumObj"]); } } if ( $categorieData['Format']==2 ) // affichage en etiquette { $nb = 0; echo ""; while ( $line = mysql_fetch_array($r)) { echo " "; $nb++; if ( ($nb%$lineOption['NbEtiquette'])==0 ) echo ""; } echo "
".$line["TitreObj"]."
"; if ( $files = glob("photos/".intval($line["NumObj"])."-*.jpg")) { list($width, $height, $type, $attr) = getimagesize($files[0]); if ( $width > 800 ) { $height*=800/$width; $width=800; } echo ""; } echo "
"; } if ( $categorieData['Format']==1 ) // affichage en liste { echo "
"; echo "\n"; echo ""; echo "\n"; echo "
"; echo "\n"; echo ""; while ( $line = mon_mysql_fetch_array($r)) { echo ""; // affiche la premiere photo si elle existe echo ""; // affiche la description echo "\n"; // affiche le prix echo "\n"; // affiche le panier si besoin echo ""; } echo "
ImageDesignationPrix 
"; if ( $files = glob("photos/".intval($line["NumObj"])."-*.jpg")) { //foreach ($files as $filename) { list($width, $height, $type, $attr) = getimagesize($files[0]); if ( $width > 800 ) { $height*=800/$width; $width=800; } echo ""; } } echo "".(($line["TitreObj"]))."".(( $line["PrixObj"]!=0 ) ? (number_format($line["PrixObj"],2,',',' '))." € TTC" : "").""; /*if ( $line["EstEnVente"]==1 ) echo ""; */ echo "
"; echo "
\n"; } // affiche les differente page if ( !isset($_GET['start']) ) $_GET['start']=0; if ( $nbObjet > $categorieData["NombreFiche"] ) { echo ""; $nbpage = ceil( $nbObjet / $categorieData['NombreFiche'] ); $actuel = floor( $_GET['start'] / $categorieData['NombreFiche'] ) + 1; for ( $a=1; $a <= $nbpage ; $a++ ) { if ( $a==$actuel ) echo ""; echo "".$a." "; if ( $a==$actuel ) echo ""; } echo ""; } if ( $categorieData["Etendre"]==1 ) { $r = SQL_request("SELECT * FROM categorie WHERE ParentCat=".$num); while ( $line = mon_mysql_fetch_array($r)) afficheListeObjetsCategorie( $line["NumCat"] ); } } echo "
"; echo "\n"; echo "
\n"; } $tabCat = array(); if ( isset($_GET["categorie"])) $tabCat = explode("-",$_GET["categorie"]); $selectedCat = "a"; if ( count($tabCat)>0) $selectedCat=$tabCat[(count($tabCat)-1)]; if ( isset( $_GET['numarticle'] ) ) { $_GET['numarticle'] = intval($_GET['numarticle']); $r = SQL_request('SELECT * FROM objet WHERE NumObj='.$_GET['numarticle']); if ( mysql_fetch_array($r) ) afficheFiche( $_GET['numarticle'] ); } else { if ( $selectedCat!="a") afficheListeObjetsCategorie( $selectedCat ); else { echo ""; echo ""; echo ""; echo ""; echo "
"; //echo "".$lineSociete["GrandTitre"]."
".$lineSociete["SousTitre"]."



".nl2br($lineSociete["TexteAcc"]).""; echo "
".$lineSociete["SousTitre"]."
"; echo "
"; } } ?>