"; echo""; echo"
livre); echo""; echo""; echo""; echo""; echo"
"; echo"


Les Fables de La Fontaine

"; echo"
"; echo"
"; echo""; echo""; echo""; echo""; echo""; echo"
"; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; // Affichage du titre de l'illustration echo""; echo""; echo""; // Affichage de l'intro et des notes echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo"
    
"; if($livre<10){$livre2="0".$livre;} else{$livre2=$livre;} if($tri=="livre"){ // Affichage de l'illustration echo"

"; echo""; echo""; echo""; echo"

"; } else{ $nb=rand(0,240); //echo $nb; $req="select livre, fable, article, titre from fables where idFable='$nb'"; $res=mysql_query($req,$connexion); $li=mysql_fetch_object($res); if($li->livre<10){$liv="0".$li->livre;} else{$liv=$li->livre;} if($li->fable<10){$fab="0".$li->fable;} else{$fab=$li->fable;} $image="../arac2/$liv-$fab.jpg"; echo"

"; echo""; echo""; echo""; echo"

"; } echo"
 
"; $ti="$li->article $li->titre"; $titreIllus=$ti; echo"

$titreIllus
W.Aractingi


"; echo"
"; echo""; echo"
 
"; echo"
"; echo""; //Affichage du tableau et de la fable echo""; echo""; echo""; echo""; echo""; echo"






 
"; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo""; echo"
"; echo"
"; //***************Texte de la fable affiché ici********************** // **************TRI PAR LIVRE******************** if($tri=="livre") { $requete="select idFable, article, titre, nbVers, fable from fables where livre = '$livre'"; $resultat=mysql_query($requete,$connexion); $liv_arabe= $chaine.arabe_vers_romain($livre); echo"

Les fables du livre $liv_arabe

"; echo""; while($ligne=mysql_fetch_object($resultat)) { $titre1=$ligne->article." ".$ligne->titre; echo""; } echo"
idFable\">$titre1
"; /*echo"
"; echo""; echo""; echo"
"; */ } // **************LES 12 LIVRES DE FABLES******************** if($tri=="12livres") { echo"

Les 12 livres de fables

"; echo""; for($liv=1;$liv<13;$liv++){ $liv_arabe= $chaine.arabe_vers_romain($liv); echo""; } echo"
Les fables du livre $liv_arabe
"; } // **************TRI ALPABETIQUE******************** if($tri=="alpha") { $requete="select idFable, article, titre, livre, fable from fables order by titre"; $resultat=mysql_query($requete,$connexion); echo"

Les fables triées par ordre alphabétique

"; echo""; while($ligne=mysql_fetch_object($resultat)) { $liv_arabe= $chaine.arabe_vers_romain($ligne->livre); $titre1=$ligne->article." ".$ligne->titre; echo""; } echo"
idFable\">$titre1
"; } // **************TRI PAR LONGUEUR******************** if($tri=="long") { if ($ordre=="crois") { $requete="select idFable, article, titre, livre, nbVers, fable from fables order by nbVers asc"; } else{ $requete="select idFable, article, titre, livre, nbVers, fable from fables order by nbVers desc"; } $resultat=mysql_query($requete,$connexion); echo"

Les fables triées par longueur

"; echo""; while($ligne=mysql_fetch_object($resultat)) { $liv_arabe= $chaine.arabe_vers_romain($ligne->livre); if($ligne->nbVers>0){ $titre1=$ligne->article." ".$ligne->titre." ($ligne->nbVers)"; echo""; } } echo"
idFable\">$titre1
"; } // **************VERSIONS ETRANGERES******************** if($tri=="etr") { if($langue=="ang"){ $langue="ang"; $tit="anglais";} else if($langue=="por"){ $langue="por"; $tit="portugais";} else if($langue=="ita"){ $langue="ita"; $tit="italien";} else if($langue=="nee"){ $langue="nee"; $tit="neerlandais";} $requete="select idFable, article, titre, livre, nbVers, IdEtr, titreEtr, fable from fables, etranger where idFable=idFableFr and langue='$langue'"; $resultat=mysql_query($requete,$connexion); echo"

Les fables en $tit

"; echo""; while($ligne=mysql_fetch_object($resultat)) { $liv_arabe= $chaine.arabe_vers_romain($ligne->livre); //$titre1=$ligne->article." ".$ligne->titre." ($ligne->nbVers)"; echo""; } echo"
idEtr\">$ligne->titreEtr
"; } include("../outils/weborama.php"); //echo"$ligne->texteFable"; echo"


"; echo"
"; echo"
"; echo"

 

"; echo"
"; ?>