| Current Path : /home/a/t/a/ataenra/www/ATA/INTRANET/Tech/MesSav/ |
| Current File : /home/a/t/a/ataenra/www/ATA/INTRANET/Tech/MesSav/MESend.php |
<div class="container1">
<div class="table-responsive">
<h5 class="btn-lg btn-success"> MES Terminés</h5>
<div style="overflow-x: hidden; overflow-y: scroll; width: 100%; height: 600px;">
<table class='table table-hover table-bordered table-condensed'>
<thead>
<tr>
<th>ID ATA</th>
<th>Reference</th>
<th>Date Soumission</th>
<th>Nom Client</th>
<th>Code postal</th>
<th>Telephone</th>
<th>Etat</th>
<th>Action</th>
</tr>
</thead>
<?php while ($R3 = $list3->fetch(PDO::FETCH_OBJ)) {
if($R3->Etat =="Termine"){
$l5 = $dbco->prepare("SELECT * FROM gest_mes M JOIN gest_mes_detail MD ON M.ID_Mes=MD.ID_mes WHERE M.ID_Mes='".$R3->ID_Mes."'");
$l5->execute();
$R5 = $l5->fetch(PDO::FETCH_OBJ);
} ?>
<tr>
<td><?php echo $R3->ID_Mes; ?></td>
<td><?php echo $R3->RefF; ?></td>
<td><?php $dateS1 = $R3->DateS; $DS1 = new DateTime($dateS1); ?>
<?php echo $DS1->Format('d-m-Y'); ?></td>
<td><?php echo $R3->NomC; ?></td>
<td><?php echo $R3->CPC; ?></td>
<td><?php echo $R3->TelC; ?></td>
<td>
<?php if($R3->Etat=="Erreur"){echo '<a class="btn btn-danger">Non conforme</a>';} ?>
<?php if($R3->Etat=="Termine"){echo '<a class="btn btn-info">Termine</a>';} ?></td>
<td>
<?php if($R5->Etat == "Termine" ){echo '<a class="btn btn-danger" href="./ATA/FICHIERS/MES/'.$R3->ID_Mes.'/Rapport/Rapport'.$R3->ID_Mes.'.pdf" download="">Rapport</a>';}?>
</td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>