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_article_gestion.php
<?php
$pb=1;
include ('admin_pagetop.php');
echo "<form method='GET' action=''>Gestion des articles $aa
<INPUT type='hidden' name='p' value=article_am>
<INPUT type='text' name='id' required>
$BModifier</form>";
include ('admin_pagemid.php');
//On compte  le nombre d'articles
$req_res1=$mysqli->query("SELECT id FROM $table_articles");
$nb_results=nbre($req_res1);
include ('admin_pagination1.php');
$articles= $mysqli->query("SELECT * FROM $table_articles ORDER BY $r $order LIMIT $start, $nb_results_p_page");
//On va chercher la liste des articles
//Initialisation du tableau
echo "$table<tr>";
$pp[1]="id";
$ll[1]="Id";
$pp[2]="titre_fr";
$ll[2]="Titre";
$pp[3]="resume_fr";
$ll[3]="Texte en r&eacute;sum&eacute;";
$pp[4]="affiche";
$ll[4]="Au public";
$pp[6]="vu";
$ll[6]="Vu";
$pp[5]="temps";
$ll[5]="Date";
$pp[7]="alaccueil";
$ll[7]="A l'accueil";
$ntl = 8;
echo "<td>Actions</td>";
for($x=1;$x<$ntl;$x++){echo"<td align=center><a href=\"?p=$p&c=$c&a=$z&r=$pp[$x]\">$ll[$x]</a></td>";}
echo "</tr>";
while($row=$articles->fetchArray()){
$id=$row['id'];
$titre2= $row['titre_fr'];
$resume2= $row['resume_fr'];
$date=$row['temps'];
$tempsa =datefr($date);
$aff=$row['affiche'];
$acc=$row['alaccueil'];
$vu=$row['vu'];
$med=$row['media'];
//On remplit le tableau
echo "<tr>
<td>
<a title='Modifier' href=?p=article_am&id=$id>$img_modif</a>
<a title='Supprimer' href=?p=article_suppr&id=$id>$img_suppr</a>
<br><a title='Modifier simplement' href=?p=article_am&id=$id&gs=1>$img_modif2</a></td>
<td>$id</td>
<td>$titre2 <br><img src='".artcodeimg($med)."' style='width:50%'></td>
<td style='width:200px;'>$resume2</td>
<td>$aff</td>
<td>$tempsa</td>
<td>$vu fois</td>
<td>$acc</td>
</tr>";
}
//Fermeture du tableau
echo "</table>";	
//################   Suite Multipages ########################
include ('admin_pagination.php');
//######################### Fin multipages ###########################					
//include ('admin_pagebas.php');
?></div>
</main>
</div>