header("Expires: ".gmdate("D, d M Y H:i:s",time())." GMT"); include_once("tools.php"); include_once("entete.php"); ?> function JusteNomFichier( $texte ) { $t = strrchr ( $texte , "/" ); return strstr( $t, substr( $t , 1, 1 ) ); } function afficheListeObjetsCategorie( $num ) { global $lineOption; $r = SQL_request("SELECT * FROM categorie WHERE NumCat=".$num); if ( $line = mon_mysql_fetch_array($r) ) { $categorieData = $line; echo "
\n"; // sous Categorie $r = SQL_request("SELECT * FROM categorie WHERE ParentCat=".$num." ORDER BY OrdreCat"); if ( mysql_num_rows($r)!=0 ) { 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 "
| ||||||||||||||||||||||||||||||||||||||||||||||
".$lineSociete["SousTitre"]." ![]() ".nl2br($lineSociete["TexteAcc"]).""; echo "
| |||