HEX
Server: LiteSpeed
System: Linux premium106.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User: cstehnfp (2380)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/cstehnfp/lgos-rdc.com/admin_faq_gestion.php
<?php
include ('admin_pagetop.php');
echo "Gestion de la FAQ $aa";
include ('admin_pagemid.php');
//On compte  le nombre d'facs
$req_res1=$mysqli->query("SELECT * FROM $table_faq");
$nb_results=nbre($req_res1);
include ('pagination1.php');
//On va chercher la liste des facs
//Initialisation du tableau
echo "$table<tr>
<th> Actions </th>
<th>Id</th>
<th>Date</th>
<th>Poseur </th>
<th>Question Fr</th>
<th>R&eacute;ponse En</th>
<th>Question En</th>
<th>R&eacute;ponse FR</th>
<th>Au public</th>
</tr>";		
$facs= $mysqli->query("SELECT * FROM $table_faq ORDER BY id DESC LIMIT $start,$nb_results_p_page");
while($row=$facs->fetcharray()){
$question=$row['question_fr'];
$reponse=$row['reponse_fr'];
$question_en=$row['question_en'];
$reponse_en=$row['reponse_en'];
$date=$row['temps'];
$aff=$row['aff'];
$id=$row['id'];
$nom=$row['nom'];
$telephone=$row['telephone'];
$email=$row['email'];
$question=stripslashes($question);
$reponse=stripslashes($reponse);
$question_en=stripslashes($question_en);
$reponse_en=stripslashes($reponse_en);
$atemps=datefr($date);
//On remplit le tableau 
echo "<tr>
<td><a title=Modifier href=?p=faq_am&id=$id>$img_modif</a>
<a title=Supprimer href=?p=faq_suppr&id=$id>$img_suppr</a></td>
<td>$id</td>
<td>$atemps</td>
<td>$nom<br> $telephone<br> $email</td>
<td>$question</td>
<td>$reponse</td>
<td>$question_en</td>
<td>$reponse_en</td>
<td>$aff</td>
</td></tr>";
}
//Fermeture du tableau
echo "</table>";	
//################   Suite Multipages ########################
include ('admin_pagination.php');
//######################### Fin multipages ###########################					
include ('admin_pagebas.php');
?>