Your IP : 216.73.216.65


Current Path : /home/ataenra/www/ATA/INTRANET/Formulaires/PAC_AE/
Upload File :
Current File : /home/ataenra/www/ATA/INTRANET/Formulaires/PAC_AE/Tableaupac.php

<div class="containerTableau1">

<div class="table-responsive">

            <table class='table table-hover table-bordered table-condensed'>

                <h4><strong>Modeles de Pompe A Chaleur compatibles</strong></h4>

                    

                    <tr> 

                    

                            <th>Marque</th>

                            <th>Modele</th>

                            <th>Puissance</th>

                            <th>80/100%</th>

                            <th>>120%</th>

                            <th>Conso Max / Compatibilite Electrique</th>

                            <th><?php echo $Scop; ?></th>

                            

                            <th>Conso PAC Chauffage</th>

                            <?php if(($_SESSION['EcsNew'] == "Oui")||($_SESSION['EcsNew'] == "RaccoB")||($_SESSION['EcsNew'] == "RaccoBN")){echo "<th>Conso PAC Ecs</th>";}?>

                            <th>Consommations et Economies</th>

                            

                            <th>Cout total TTC</th>

                            <?php if($_SESSION['PrimesATA']== "Oui"){echo "<th>Primes déduites TTC</th>";}?>

                            <th>Choisir</th>



                    </tr> 

                            <?php $L=1; while ($L<$i){?>

                                <?php $T = $PAC[$L]['ID']; 
                                  $Etotal = $PAC[$L]['consomax'] + $PAC[$L]['appoint']/2; 
                                  $TauxCouvPac80100 = Round ((($PAC[$L]['Puissance'])/($_SESSION['Deperditions']))*100);
                                  $TauxCouvPac120 = Round ((($PAC[$L]['Puissance']+$PAC[$L]['appoint'])/($_SESSION['Deperditions']))*100);

                                 

                                  

                                

                                  $CP = round ((24*$_SESSION['Deperditions']*0.9*2.5)/($_SESSION['DeltaT']*$PAC[$L]['Scop']));

                                  if($Etotal<$consodispo){$messagelec = "Compatible";}
                                  elseif($Etotal>$consodispo){$messagelec = "Trop faible";}
                                  else{$messagelec = "Pas de pac compatibles";}

                                  if(($_SESSION['EcsNew'] == "Oui")||($_SESSION['EcsNew'] == "RaccoB")||($_SESSION['EcsNew'] == "RaccoBN")){ $ConsoPacEcs = round($consoECS/$PAC[$L]['Scop']); $ConsoPac = $CP+$ConsoPacEcs;}

                                  elseif($_SESSION['EcsNew'] == "TH" || $_SESSION['EcsNew'] == "Non"){$ConsoPac= $CP; $ConsoPacEcs = $consoECS;}

                                  else{$ConsoPac= $CP;} ?>



<?php if($TauxCouvPac80100 < 80 || $TauxCouvPac80100 > 100){

        echo '<tr bgcolor="FFC0C0">';
}else{

        echo '<tr bgcolor="F0FFC0">';
}
?>
                      

                        <td><?php echo $PAC[$L]['Marque']; ?></td>

                        <td><?php echo $PAC[$L]['Modele']; ?></td>

                        <td><?php echo $PAC[$L]['Pmax']; ?></td>

                        <td><?php echo "".$TauxCouvPac80100." %"; ?></td>

                        <td><?php echo "".$TauxCouvPac120." %"; ?></td>

                        <td><?php echo $messagelec;?></td>

                        <td><?php echo $PAC[$L]['Scop'];?></td>

                        <td><?php echo "".$CP." kWh /An"; ?></td>

                        <?php if(($_SESSION['EcsNew'] == "Oui")||($_SESSION['EcsNew'] == "RaccoB")||($_SESSION['EcsNew'] == "RaccoBN")){echo '<td> et '.$ConsoPacEcs.' kWh</td>';} ?>

                        <td><?php $Prixpac = round ($ConsoPac*$EDF); echo "soit ".$Prixpac."  euros "; ?>

                        <?php $Ecopac = round ($Annuel-$Prixpac); echo " et donc ".$Ecopac." euros d'économie annuelle.";  ?></td>

                        <td><?php  echo "".$PrixComischantier[$L]." Euros"; ?></td>

                         <!-- A valoriser correctement-->

                        <?php if($_SESSION['PrimesATA']== "Oui"){$RAC = $PrixComischantier[$L]-$_SESSION['MCEE']-$_SESSION['MPR']; echo "<td>".$RAC." Euros</td>";}?>

                           

                        <td><a><input type="checkbox" value="<?php echo $T; ?>" name="IDPAC"></a></td>

                                <?php echo '<input type="text" hidden value="'.$ConsoPac.'" name="PCPE'.$T.'">' ?>

                                <?php echo '<input type="text" hidden value="'.$ConsoPacEcs.'" name="PCPEcs'.$T.'">' ?>

                                <?php echo '<input type="text" hidden value="'.$Ecopac.'" name="ECO'.$T.'">' ?>

                                <?php echo '<input type="text" hidden value="'.$TauxCouvPac120.'" name="TX'.$T.'">' ?>

                                <?php echo '<input type="text" hidden value="'.$PrixComischantier[$L].'" name="PPV'.$T.'">' ?>     

                                <?php echo '<input type="text" hidden value="'.$L.'" name="Simul'.$T.'">' ?>

                                <?php echo '<input type="text" hidden value="'.$MCOM[$L].'" name="MCOM'.$T.'">' ?>

                                <?php if($PAC[$L]['TypePac'] == "Monobloc"){ echo '<input type="text" hidden value="PAC_AE_M" name="TypePAC'.$T.'">';}

                                      if($PAC[$L]['TypePac'] == "Split"){echo '<input type="text" hidden value="PAC_AE_S" name="TypePAC'.$T.'">';}?>

                    <?php  $L++; } ?>            

                

                    </tr>

                                          

                </table>

            </div>           

            </div>