Your IP : 216.73.216.65


Current Path : /home/ataenra/www/ATA/INTRANET/Tech/
Upload File :
Current File : /home/ataenra/www/ATA/INTRANET/Tech/profil.php

<?php



$dateA = date('Y');

$dateB = date('m-Y');



$com = $_SESSION['AF']; 

//RECUP DES INFORMATIONS 

    //Recup infos entreprise

    $ent = $dbco->prepare("SELECT * FROM ata_entreprise WHERE  ID = '1'"); 

    $ent->execute();

    $ent1 = $ent->fetch(PDO::FETCH_OBJ);



    //Recup infos effectifs selon personne connecte

    $list1 = $dbco->prepare("SELECT * FROM ata_effectifs WHERE  ID = '$IDAF'"); 

    $list1->execute();

    $R1 = $list1->fetch(PDO::FETCH_OBJ);


    //Recup infos equipes selon personne connecte

    $eq1 = $dbco->prepare("SELECT * FROM ata_equipes WHERE  ID = '$R1->ID_equipe'"); 

    $eq1->execute();

    $EQ = $eq1->fetch(PDO::FETCH_OBJ);


    //Recup infos vehicule selon personne connecte

    $veh = $dbco->prepare("SELECT * FROM ata_vehicules WHERE  ID = '$EQ->ID_vehicule'"); 

    $veh->execute();

    $veh1 = $veh->fetch(PDO::FETCH_OBJ);



    //BOUCLE infos equipes selon personne connecte

    $meb1 = $dbco->prepare("SELECT * FROM ata_equipes WHERE  ID = '$R1->ID_equipe'"); 

    $meb1->execute();



     //BOUCLE infos outillage Gaz selon personne connecte

     $out = $dbco->prepare("SELECT * FROM ata_outils WHERE ID_equipe = '$R1->ID_equipe' AND Otype ='Gaz'"); 

     $out->execute();

     

     //BOUCLE infos outillage Port selon personne connecte

     $out2 = $dbco->prepare("SELECT * FROM ata_outils WHERE  ID_equipe = '$R1->equipe' AND Otype ='Port'"); 

     $out2->execute();



    //BOUCLE infos chantier pour tableau selon personne connecte et annee en cours

    //$list2 = $dbco->prepare("SELECT * FROM chantier WHERE  ID_equipe = '$R1->ID_equipe' AND YEAR(Date) = '$dateA' AND etat = 'Termine'"); 

    //$list2->execute();



    //Nb de projets

    //$req = $dbco->query("SELECT COUNT(*) as Nbprojet FROM pacaevar WHERE  user = '$R1->Login' "); 

    //$nbprojet = $req->fetch();

    //$req->closeCursor();

    

    //Nb de chantiers en cours

    //$req2 = $dbco->query("SELECT COUNT(*) as NbchantierT FROM chantier WHERE  user = '$R1->Login'"); 

    //$nbchantier = $req2->fetch();

    //$req2->closeCursor();

    

    //Nb de chantier termines

    //$req3 = $dbco->query("SELECT COUNT(*) as nbct FROM chantier WHERE  user = '$R1->Login' AND etat = 'Termine' AND MONTH(Date) = '$dateB'"); 

    //$nbct = $req3->fetch();

    //$req3->closeCursor();

    

    //CA Previsible



?>







<!DOCTYPE html>

<html lang="fr">

<head>

  <meta charset="UTF-8">

  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>

 

  <!--<link href="css/bootstrap-4.4.1.css" rel="stylesheet">-->

  <link href="./ata/intranet/outils/css/profil.css" rel="stylesheet" type="text/css">

  <title>FORMULAIRE POINTAGE</title>

</head>



<body>



	<div class="containerPage"> 

    <div class="containerTitre">

    <div class="row">

            <div class="col-md-2-l">

            <img src="./ATA/INTRANET/Outils/required/ATA-logo.jpg" alt="ISO" width=30% class= />

            </div>   

            <div class="col-md-8-a">

            <span class="align-middle">GESTION DE VOTRE PROFIL</span>

            </div> 

            <div class="col-md-2-r">

            <a href="index.php/htech" title="">

            <img alt="HOME" src="./ATA/INTRANET/Outils/required/home1.png" alt="ISO" width=30% /> </a>

            </div>

            </div>

    </div>

        

	

		<div class="container1">

        <?php 

        if($R1->ID_equipe =="1"){$eq = "Equipe 1";}elseif($R1->ID_equipe =="2"){$eq = "Equipe 2";}

        elseif($R1->ID_equipe =="3"){$eq = "Equipe 3";}elseif($R1->ID_equipe =="4"){$eq = "Equipe 4";}elseif($R1->ID_equipe =="5"){$eq = "Equipe 5";}

        echo '<h5 class="btn-lg btn-info">INFORMATIONS : '.$eq.'</h5>'; ?>

            

            <div class="row">             

                            <div class="col-md-6">    

                            <h4>MEMBRES DE L'EQUIPE</h4>

                            </div>

                            <div class="col-md-6">    

                            <h4>ENTREPRISE</h4>

                            </div>

            </div>

           



            <div class="row">

                <div class="col-md-8">

                

                    <?php $membre = 1; ?>

                    <?php while($meb = $meb1->fetch(PDO::FETCH_OBJ)) {?>

                        <div class="row">

                        <div class="col-md-3">

                        <strong><a>EQUIPIER <?php echo $membre; ?></a></strong><br>

                            <?php echo'<a href="./ATA/INTRANET/Commerce/modifprofil.php?ID='.$meb->ID.'" title="">

                            <img src="./ATA/INTRANET/Outils/required/PhotoProfil/'.$meb->ID.'.jpg" alt="ISO" width="100%" class="align-center"/></a>'; ?>

                        </div>

                        <div class="col-md-7">

                        <br>

                        <a>Login : <?php ?></a><br>

                        <a>Nom : <?php  ?></a><br>

                        <a>Telephone : <?php ?></a><br>

                        <a>Email : <?php  ?></a><br>

                        <a>N° Manip : <?php ?></a><br>

                        </div>

                    </div>

                    <?php ++$membre ; } ?>

                </div>

                







                <div class="col-md-4">       

                    <div class="col-md-6-a">

                        <strong><a>INFORMATIONS ENTREPRISE</a></strong><br>

                        <a>SIREN : <?php echo $ent1->Siren; ?></a><br>

                        <a>N° CAPACITE : <?php echo $ent1->Capacite; ?></a><br>

                        <a>N° QUALIPAC : <?php echo $ent1->Qualipac; ?></a><br>

                        <a>N° QUALIPV : <?php echo $ent1->Qualipv; ?></a><br><br>

                

                    </div>



                    <div class="col-md-6-a">

                        <strong><a>DOCUMENTS ENTREPRISE</a></strong><br>

                        <a>SIREN : Lien </a><br>

                        <a>N° CAPACITE : Lien </a><br>

                        <a>N° QUALIPAC : Lien </a><br>

                        <a>N° QUALIPV : Lien </a><br><br>

                    </div>

                </div>

            </div>





            <div class="row">

                <div class="col-md-6"> 

                    <h4>VEHICULE ET EQUIPEMENT</h4>

                </div>

                <div class="col-md-6"> 

                    <h4>STATISTIQUES</h4>

                </div>

            </div>

            <div class="row">

                <div class="col-md">  

                    <div class="col-md-5">    

                    <strong><a>VEHICULE</a></strong><br>

                        <a>Marque : <?php echo $veh1->marque; ?></a><br>

                        <a>Réfèrence : <?php echo $veh1->ref; ?></a><br>

                        <a>Immat : <?php echo $veh1->immat; ?></a><br>

                        <a>Date révision : <?php echo $veh1->DateR; ?></a><br><br>

                        <strong><a>OUTILLAGE PORTATIF</a></strong><br>

                        <?php while($outils2 = $out2->fetch(PDO::FETCH_OBJ)) { ?>

                        <?php echo '<a>'.$outils2->Ftype.' : '.$outils2->ref.'</a><br>';?>

                   

                        <?php } ?>  

                    

        

                    </div>

                    <div class="col-md-6-a">    

                    <strong><a>OUTILLAGE FRIGO</a></strong><br>

                        <?php while($outils = $out->fetch(PDO::FETCH_OBJ)) { ?>

                        <?php echo '<a>'.$outils->Ftype.' : '.$outils->ref.'</a><br>';?>

                   

                        <?php } ?>

                    </div>

                 





                </div>

                <div class="col-md"> 

                    <div class="col-md-8" text-align="left">

                    <strong><a>MENSUEL <?php echo $dateB; ?></a></strong><br>

                    <?php echo '<a>Objectif : '.$R1->ObjectifM.'</a><br>'; ?>

                    <a>Nb de chantiers attribués : <?php echo $nbchantier['NbchantierT']; ?></a><br>

                    <a>Chantiers termines : <?php echo $nbct['nbct']; ?></a><br>

                    <a>Primes du mois : <?php $Prime = ($nbct['nbct']-$R1->ObjectifM)*750;

                    if($Prime >0){echo $Prime;}?> Euros</a><br><br>

                    </div>



                    <div class="col-md-4-a">

                    <strong><a>ANNUEL <?php echo $dateA; ?></a></strong><br>

                    <a>Nb de chantiers attribués : <?php echo $nbchantier['NbchantierT']; ?></a><br>

                    <a>Chantiers termines : <?php echo $nbct['nbct']; ?></a><br><br>



                    </div>

                </div>

            </div>

                









             







                <form method="post" autocomplete="off">

            

                    <h5 class="btn-lg btn-warning">LISTES DES CHANTIERS TERMINES</h5>

                    

                    <div style="overflow-x: hidden; overflow-y: scroll; width: 100%; height: 175px;">

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

                            <thead>

                            <tr>

                            <th>Date</th>

                            <th>ID</th>

                            <th>Nom</th>

                            <th>Code Postal</th>

                            <th>Etat</th>

                            <th>Date Planing</th>

                            <th>Date Cloture</th>

                      

                            </tr>

                            </thead>



                            <?php while ($R2 = $list2->fetch(PDO::FETCH_OBJ)) {?>



                            <tr>

                            <?php $datec = $R2->date; $DT = new DateTime($datec); ?>

                            <td><?php echo $DT->Format('d-m-Y'); ?></td>

                            <td><?php echo $R2->ID; ?></td>

                            <td><?php echo $R2->nom; ?></td>

                            <td><?php echo $R2->CodePC; ?></td>

                            <td><?php echo $R2->Etat; ?></td>

                            <?php $datep = $R2->DatePlani; $DP = new DateTime($datep); ?>

                            <td><?php echo $DP->Format('d-m-Y'); ?></td>

                            <td><?php if(is_null($R2->DateF)){echo 'Non demarre';}else{$datef = $R2->DateF; $DF = new DateTime($datef);

                             echo $DF->Format('d-m-Y'); }?></td>

                





                                                               

                            </tr>

                        <?php } ?>



                     











                        </table>     

                    </div>            

                </form>           

    </div>   

</body>

</html>