Your IP : 216.73.216.65


Current Path : /home/a/t/a/ataenra/www/ATA/INTRANET/MesSav/
Upload File :
Current File : /home/a/t/a/ataenra/www/ATA/INTRANET/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>Fabricant</th>
        <th>Reference</th>
        <th>Date Soumission</th>
        <th>Date d'intervention finale</th>
        <th>Installateur</th>
        <th>Client Final / Coordonnées</th>
        <th>Etat</th>
        <th>Rapport</th>
        <th>Facture</th>
        <th>Action</th>
        </tr>
        </thead>

        <?php while ($R3 = $list3->fetch(PDO::FETCH_OBJ)) {?>

        <tr>
        <td><?php echo "MES.".$R3->ID_Mes.""; ?></td>
        <td><?php echo $R3->Fabricant; ?></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 $dateR1 = $R3->DateR; $DR1 = new DateTime($dateR1); ?>
            <?php echo $DR1->Format('d-m-Y'); ?></td>
        
        <td><?php echo "".$R3->RaisonS." / ".$R3->TelI." / ".$R3->EmailI.""; ?></td> 
        <td><?php echo "".$R3->NomC." - ".$R3->AdresseC." ".$R3->CPC." ".$R3->VilleC." / ".$R3->TelC." - ".$R3->EmailC."" ; ?></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($R3->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>
        <td></td>
        <td></td>               
        </tr>
    <?php } ?>
        
    </table>   
    </div>
</div>
</div>