$topic_titre"; echo "

"; echo pages_topic($id,$page_actuelle,$id_forum); echo "
"; $post_par_page = req_id("interface","post_par_page","1","0"); $start_post = ($page_actuelle-1) * $post_par_page; $requete = mysql_query("select id,id_auteur from post where id_topic='$id' order by id limit $start_post,$post_par_page"); $nbr_post = mysql_num_rows($requete); $i = 0; while ($topic = mysql_fetch_array($requete)) { $id_post = $topic[0]; $id_auteur = $topic[1]; if ($i == $nbr_post-1) { echo "\n"; } include 'post.php'; $i++; } /* $requete = mysql_query("SELECT * FROM post where id_topic='$id' order by id"); $nbr_post = mysql_numrows($requete); $post_par_page = req_id("interface","post_par_page","1","0"); $i = $post_par_page*($page_actuelle-1); $i_max = $post_par_page*$page_actuelle; if ($nbr_post < $i_max) $i_max = $nbr_post; if ($i < $i_max) { WHILE ($i != $i_max) { $id_post = @mysql_result($requete,$i,"id"); $id_auteur = @mysql_result($requete,$i,"id_auteur"); $j = $i+1; if ($j == $i_max) { echo ""; } include 'post.php'; $i++; } } */ echo "
"; echo "

"; echo pages_topic($id,$page_actuelle,$id_forum); echo "

"; if (req_id("topic","etat",$id,"0") == "1") { echo "

Ce sujet est verrouillé, vous ne pouvez plus y répondre.

"; } elseif ($id_visiteur < "1") { echo "

Vous devez être membre pour pouvoir répondre à ce Sujet.

"; } else { // FORMULAIRE BAS echo ""; $texte_rows = req_id("interface","texte_rows","1","0"); $texte_cols = req_id("interface","texte_cols","1","0"); $form_style = theme("form_style",$id_visiteur); echo "

Répondre

"; echo liste_smileys(1,1); } } include 'interface_bas.php'; ?>