while($ar = mysql_fetch_assoc($qu))
{
for($i=0;$i<=$space;$i++) {echo ' ';}
echo 'Article ' . $ar['id'] . ' : ' . $ar['nom'] . ' <input type="button" value="Modifier" onClick="showmodifform(\\'show' . $ar['id'] . '\\')" /><div style="display:none;" id="show' . $ar['id'] . '">Modification de l\\'article :';
echo '<form name="ajout" method="post">';
echo 'Titre : <input type="text" name="article" value="' . stripslashes(htmlentities($ar['nom'])) . '" />';
echo '<select name="langage">';
$langq = mysql_query("SELECT id,nom FROM cl_langages");
while($listlang = mysql_fetch_assoc($langq))
{
echo '<option value="' . $listlang['id'] . '"';
if($listlang['id']==$ar['langage']) { echo 'selected'; }
echo '>' . $listlang['nom'] . '</option>';
}
echo '</select>';
echo '<select name="faq">';
$faqq = mysql_query("SELECT id,nom FROM cl_faq");
while($listfaq = mysql_fetch_assoc($faqq))
{
echo '<option value="' . $listfaq['id'] . '"';
if($listfaq['id']==$ar['id_faq']) { echo 'selected'; }
echo '>' . $listfaq['nom'] . '</option>';
}
echo '</select><br />';
echo '<textarea rows="5" cols="30" name="description">' . stripslashes(nl2br(htmlentities($ar['description']))) . '</textarea><br />';
echo '<textarea rows="30" cols="60" name="contenu">' . stripslashes(nl2br(htmlentities($ar['contenu']))) . '</textarea></br />';
echo '<input type="hidden" name="mode" value="edit" />';
echo '<input type="submit" value="Editer l\\'article" /></form>';
echo '</div> <form name="suppr" method="post"><input type="hidden" name="mode" value="del" /><input type="button" value="Supprimer" /></form><br />';
}