| Current Path : /home/a/t/a/ataenra/www/ATA/INTRANET/Tech/MesSav/ |
| Current File : /home/a/t/a/ataenra/www/ATA/INTRANET/Tech/MesSav/MesForm11.php |
<?php
$l2 = $dbco->prepare("SELECT * FROM gest_mes M JOIN gest_mes_detail D ON M.ID_Mes=D.ID_mes WHERE M.ID_Mes=".$_GET['ID']."");
$l2->execute();
$r2 = $l2->fetch(PDO::FETCH_OBJ);
if($r2->Ens_ae !=0){$table1="gest_ens_pac_ae"; $table2="gest_gamme_pac"; $Ens="Ens_ae"; $table3="gest_produits_pac_ae"; $table4="gest_join_pac_ae";}
if($r2->Ens_aa !=0){$table1="gest_ens_pac_aa"; $table2="gest_gamme_pac_aa"; $Ens="Ens_aa"; $table3="gest_produits_pac_aa"; $table4="gest_join_pac_aa";}
$l4 = $dbco->prepare("SELECT * FROM ".$table1." E JOIN ".$table2." G ON E.ID_gamme=G.ID_gamme WHERE E.ID_Ens='".$r2->$Ens."'");
$l4->execute();
$r4 = $l4->fetch(PDO::FETCH_OBJ);
$l5 = $dbco->prepare("SELECT * FROM ".$table3." P JOIN ".$table4." J ON J.ID_produit=P.ID_Produit WHERE J.ID_ens='".$r2->$Ens."' AND P.Emp='UE'");
$l5->execute();
$r5 = $l5->fetch(PDO::FETCH_OBJ);
$l6 = $dbco->prepare("SELECT * FROM ".$table3." P JOIN ".$table4." J ON J.ID_produit=P.ID_Produit WHERE J.ID_ens='".$r2->$Ens."' AND P.Emp='UI'");
$l6->execute();
$r6= $l6->fetch(PDO::FETCH_OBJ);
//Rappatrier les données PAC
$typeelec = $r4->Elec;
?>
<!--FORMULAIRES A PARTIR DICI-->
<form action="index.php/tmes" method="POST" autocomplete="off" >
<div class="container1">
<h4 class="btn-lg btn-info" type="submit" name="test"> Formulaire 9 : Préparation Gaz 2/2:</h4>
<div style="overflow-x: hidden; overflow-y: hidden; width: 100%; height: 350px;">
<div class="row">
<div class="col-md-3-l">
<h4>Préparation mesures 2/2 : </h4>
<b>Mettre la machine en chauffage pendant 15m</b>
<p>Placer la sonde de température BP sur le retour chauffage.</p>
<p>Placer la sonde de température HP sur le départ chauffage.</p>
<p>Relever la température du départ.</p>
<p>Relever la température du retour.</p>
</div>
<div class="col-md-3-l">
<h4>Valeurs : </h4>
<input class="form-control" type="float" name="Eau_Temp_Dep" placeholder="Temp départ Eau en degrès" required />
<input class="form-control" type="float" name="Eau_Temp_Retour" placeholder="Temp retour Eau en degrès" required /><br><br>
<input class="form-control" type="float" name="Elec_Tension_NT" placeholder="Voltage Neutre / Terre" required />
<input class="form-control" type="float" name="Elec_Icomp" placeholder="Ampérage Compresseur" required />
</div>
<div class="col-md-3-l">
<h4>Préparation mesures 2/2 : </h4>
<p>Placer la pince ampermètrique sur la phase UE.</p>
<p>Relever le voltage UE.</p>
</div>
<div class="col-md-3-l">
<h4>Valeurs : </h4>
<?php if($typeelec =="Mono"){ echo'
<input class="form-control" type="float" name="Elec_Tension_LN" placeholder="Voltage Phase / Neutre" required />
<input class="form-control" type="float" name="Elec_Tension_LT" placeholder="Voltage Phase / Terre" required /><br><br>
';
echo '
<input type="hidden" name="Elec_Tension_L1N" value="0">
<input type="hidden" name="Elec_Tension_L2N" value="0">
<input type="hidden" name="Elec_Tension_L3N" value="0">
<input type="hidden" name="Elec_Tension_L1T" value="0">
<input type="hidden" name="Elec_Tension_L2T" value="0">
<input type="hidden" name="Elec_Tension_L3T" value="0">';
}
if($typeelec =="Tri"){ echo'
<input class="form-control" type="float" name="Elec_Tension_L1N" placeholder="Voltage Phase1 / Neutre" required />
<input class="form-control" type="float" name="Elec_Tension_L2N" placeholder="Voltage Phase2 / Neutre" required />
<input class="form-control" type="float" name="Elec_Tension_L3N" placeholder="Voltage Phase3 / Neutre" required />
<input class="form-control" type="float" name="Elec_Tension_L1T" placeholder="Voltage Phase1 / Terre" required />
<input class="form-control" type="float" name="Elec_Tension_L2T" placeholder="Voltage Phase2 / Terre" required />
<input class="form-control" type="float" name="Elec_Tension_L3T" placeholder="Voltage Phase3 / Terre" required /><br><br>
';
echo '
<input type="hidden" name="Elec_Tension_LN" value="0">
<input type="hidden" name="Elec_Tension_LT" value="0">';
}
?>
<input class="btn-lg btn-success" class="align-middle" type="submit" name="G4" value="Cloturer"/>
<input type='hidden' name='ID' value='<?php echo $_GET['ID'];?>'>
<input type="hidden" name="Elec_Type" value="<?php echo $typeelec;?>">
</div>
</div>
</div>
</div>
</fieldset>
</div>
</div>