| Current Path : /home/a/t/a/ataenra/www/ATA/INTRANET/Tech/MesSav/ |
| Current File : /home/a/t/a/ataenra/www/ATA/INTRANET/Tech/MesSav/MESd.php |
<!-- -------------------TABLEAU N°2 ----------------------------------------------->
<?php
?>
<div class="container1">
<div class="table-responsive">
<h6 class="btn-lg btn-warning"> MES PLANIFIEES </h6>
<div style="overflow-x: hidden; overflow-y: scroll; width: 100%; height: 350px;">
<table class='table table-hover table-bordered table-condensed'>
<thead>
<tr>
<th>ID ATA</th>
<th>Equipe</th>
<th>Installateur</th>
<th>Adresse Chantier</th>
<th>Client</th>
<th>Machine</th>
<th>Gaz</th>
<th>Observations</th>
<th>Etat</th>
<th>Action</th>
</tr>
</thead>
<?php while ($R1 = $list1->fetch(PDO::FETCH_OBJ)) {?>
<?php
if($R1->Ens_ae !=0){$table1="gest_ens_pac_ae"; $table2="gest_gamme_pac"; $Ens="Ens_ae";
$l4 = $dbco->prepare("SELECT G.GAZ, E.appel, E.Puissance FROM ".$table1." E JOIN ".$table2." G ON E.ID_gamme=G.ID_gamme WHERE E.ID_Ens='".$R1->Ens_ae."'");
$l4->execute();
$R4 = $l4->fetch(PDO::FETCH_OBJ);
}
if($R1->Ens_aa !=0){$table1="gest_ens_pac_aa"; $table2="gest_gamme_pac_aa"; $Ens="Ens_aa";
$l4 = $dbco->prepare("SELECT G.GAZ, E.appel, E.Puissance FROM ".$table1." E JOIN ".$table2." G ON E.ID_gamme=G.ID_gamme WHERE E.ID_Ens='".$R1->Ens_aa."'");
$l4->execute();
$R4 = $l4->fetch(PDO::FETCH_OBJ);
}
?>
<tr>
<td><?php echo $R1->ID_Mes; ?></td>
<td><?php echo $R1->Equipe; ?></td>
<td><?php echo ''.$R1->RaisonS.' / '.$R1->TelI.''; ?></td>
<td><?php echo ''.$R1->AdresseC.' '.$R1->CPC.' '.$R1->VilleC.''; ?></td>
<td><?php echo ''.$R1->NomC.' / '.$R1->TelC.''; ?></td>
<td><?php echo ''.$R4->appel.' '.$R4->Puissance.''; ?></td>
<td><?php echo 'R'.$R4->GAZ.''; ?></td>
<td><?php echo $R1->ObsD; ?></td>
<td>
<?php if($R1->Etat=="Planifie"){$Plani1 = $R1->DateP; $dateTime4 = new DateTime($Plani1);echo '<a class="btn btn-info">Planifié le '.$dateTime4->format('d-m-Y').'</a>';} ?></td>
<td>
<?php if($R1->Etat=="Planifie"){echo '<a class="btn btn-warning" href="./ATA/INTRANET/Tech/MesSav/MesStart.php?ID='.$R1->ID_Mes.'">Start</a>';}?></td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>