File: /home/cstehnfp/lgos-rdc.com/ltat.php
<?php
$ajout="";
if($ok==1){$ajout="<form method='GET' action='colis_voir.php'>
Recherche : <INPUT type='text' name='id' required>
$BModifier</form>";}
echo "$page11$ajout";
//On compte le nombre d'articles
//On compte le nombre d'articles
$req_res1=$mysqli->query("SELECT id FROM $table_ltar");
$nb_results=nbre($req_res1);
include ('pagination1.php');
$articles= $mysqli->query("SELECT * FROM $table_ltar ORDER BY $r $order LIMIT $start, $nb_results_p_page");
//On va chercher la liste des articles
//Initialisation du tableau
echo "$table<tr>";
$ppp[1]="id";
$lll[1]="Id";
$ppp[2]="numero";
$lll[2]="$Numero";
$ppp[3]="lifen";
$lll[3]="Life n °";
$ppp[4]="expediteur";
$lll[4]="Expéditeur";
$ppp[5]="destinateur";
$lll[5]="Destinateur";
$ppp[6]="date";
$lll[6]="Date";
echo "<th>Actions</th>";
for($x=1;$x<7;$x++){echo"<th align=center><a href=\"?c=$c&a=$z&r=$ppp[$x]\">$lll[$x]</a></th>";}
echo "</tr>";
while($row=$articles->fetchArray()){
$id=$row['id'];
$numera= $row['numero'];
$lifen= $row['lifen'];
$date=$row['date'];
//$tempsa =datefr($date);
$expediteura=$row['expediteur'];
$destinateura=$row['destinateur'];
$action="<a title='Tracker' href=ltat_voir.php?id=$id>$img_track</a>
<!--a title='Voir' href=?id=$id>$img_voir</a-->";
if($ok==1){$action="$action
<!--a title='Modifier' href=?id=$id>$img_modif</a>
<a title='Supprimer' href=?id=$id>$img_suppr</a-->";}
//On remplit le tableau
echo "<tr><td align=center>$action</td>
<td align=right>$id</td>
<td align=right>$numera</td>
<td align=right style='width:200px;'>$lifen</td>
<td align=right>$expediteura</td>
<td align=right>$destinateura</td>
<td align=right>$date</td>
</tr>";
}
//Fermeture du tableau
echo "</table>$page12";
//################ Suite Multipages ########################
include ('pagination2.php');
//######################### Fin multipages ###########################
?>