1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| <table border = "1">
<tr bgcolor = "gray">
<th>Numéro Facture</th>
<th>Date de Creation</th>
<th>Mnt Total </th>
<th>Numéro règlement </th>
<th>Type règlement </th>
<th> Montant Reglé</th>
<th> Admin</th>
</tr>
<?php
$con=pdoconnect();
//affichage de ttes les op
$req=$con->prepare('SELECT F.ID_FACT,F.DATE_CREATION,F.TEMPS_TOTAL,F.MT_TOTAL,R.ID_REGL,R.TYPE_REGL,R.DATE_REGL,R.MT_REGL
FROM factures F
JOIN Reglement R
ON R.ID_REGL=F.ID_REGL
ORDER BY F.ID_FACT,R.DATE_REGL') or die($con->errorInfo());
$req->execute();
//On affiche les lignes du tableau une à une à l'aide d'une boucle
//$i=0;
while( $data=$req->fetch()) {
?>
<tr><td><?php echo $data['ID_FACT']; ?></td>
<td><?php echo $data['DATE_CREATION']; ?></td>
<td><?php echo $data['MT_TOTAL']; ?></td>
<td><?php echo $data['ID_REGL']; ?></td>
<td><?php echo $data['TYPE_REGL']; ?></td>
<td><?php echo $data['MT_REGL']; ?></td>
<td>
<?php echo "<a href=\"afficher-abo.php?id={$data['ID_REGL']} \" > Consulter LE REGLEMENT</a> <br>" ;?>
<?php echo "<a href=\"factures-abo.php?id={$data['ID_FACT']} \" > La Facture liee</a> " ;?>
</td>
</tr>
<?php
//$i++;
}; ?>
<?php //echo 'Le nombre Total d abonnements est de :'.$i;?>
<hr/><h2 class="center icon1"><img src="images/plus1.png" />
<?php echo "<a href=\"ajouter-reglement.php?id={$data['ID_REGL']} \" > Ajouter un Nouveau regelemnt Ici </a>" ;?> </h2><hr/><br><br>
</table>
<br><br><a href = "index.php" class="astuce" ><blink>Retour à l'accueil</blink></a><br><br>
</article> |
Partager