| Current Path : /home/a/t/a/ataenra/www/ATA/INTRANET/Admin/Stats/ |
| Current File : /home/a/t/a/ataenra/www/ATA/INTRANET/Admin/Stats/CMD.php |
<?php
//Nb de projets
$req = $dbco->query("SELECT COUNT(*) as Nbcmd FROM gest_commande WHERE com_etat ='New'");
$nb = $req->fetch();
$req->closeCursor();
$NB = $nb['Nbcmd'];
?>
<div style="overflow-x: hidden; overflow-y: scroll; width: 100%; height: 150px;">
<B>Nombre de commande en cours : <?php echo $NB; ?></B>
<?php
//Liste des commandes en etat NEW
$list2 = $dbco->prepare("SELECT * FROM gest_commande WHERE com_etat ='New'");
$list2->execute();
?>
<!--Tableau liste des commandes -->
<table class='table table-hover table-bordered table-condensed'>
<div>
<thead>
<tr>
<th>FRS</th>
<th>N°</th>
<th>Projet N°</th>
<th>Date</th>
</tr>
</thead>
<?php while ($R2 = $list2->fetch(PDO::FETCH_OBJ)) {?>
<tr>
<td><?php
$FRS=$R2->com_frs;
$list3 = $dbco->prepare("SELECT * FROM gest_fournisseurs WHERE IDfrs = $FRS");
$list3->execute();
$R3 = $list3->fetch(PDO::FETCH_OBJ);
echo $R3->frs_nom;
?></td>
<td><?php echo $R2->ID_com; ?></td>
<td><?php echo $R2->com_IDprojet; ?></td>
<td><?php echo $R2->com_date; ?></td>
</tr>
<?php } ?>
</table>
</div>