Your IP : 216.73.216.65


Current Path : /home/ataenra/www/ATA/INTRANET/Admin/
Upload File :
Current File : /home/ataenra/www/ATA/INTRANET/Admin/agcom.php

<?php
require_once '../Outils/co.php';
//RECUP DES INFORMATIONS SUR TABLE pacaevar
    //Tableau de tous les projets en cours
    $list1 = $dbco->prepare("SELECT * FROM chantier WHERE  Commande = 'A commander'"); 
    $list1->execute();

    $list2 = $dbco->prepare("SELECT * FROM chantier WHERE  Preparation = 'A preparer'"); 
    $list2->execute();

    $list3 = $dbco->prepare("SELECT * FROM chantier WHERE  Planification = 'A planifier'"); 
    $list3->execute();
?>

<!-- DOCUMENT HTML A AFFICHER-->

<!DOCTYPE html>
    <html lang="en">
    <head>
        <title>GESTION PROJETS</title>
        <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="./ATA/Intranet/Admin/css/agcom.css" rel="stylesheet" type="text/css">
    </head>

    <body>
    <div class="containerTitre">
            <div class="row" >
                <div class="col-md-2">
	    		<img src="./ATA/Intranet/outils/required/ATA_logo_horiz.jpg" alt="ISO" width=100% class="img-responsive" />
                </div>   
                <div class="col-md-8">
				<span class="align-middle">ADMIN GESTION PROJET</span>
                </div> 
                <div class="col-md-2">
                <a href="index.php/hadm" title="">
	            <img alt="HOME" src="./ATA/Intranet/outils/required/home1.png" alt="ISO" width=30% class="img-responsive" class="align-right"/> </a>  
                </div>
                
	         </div>	
	    </div>
    <div class="containerPage"> 
            <form method="post" autocomplete="off">
                <div class="container1">
                        <h5 class="btn-lg btn-info"> PROJETS A COMMANDER </h5>
                       
                        <table class='table table-hover table-bordered table-condensed'>
                        <thead>
                        <tr>
                            <th>DATE</th>
                            <th>ID</th>
                            <th>TYPE</th>
                            <th>ACTIONS</th>
                        </tr>
                        </thead>

                        <tbody>
                        <?php while ($R1 = $list1->fetch(PDO::FETCH_OBJ)) {?>

                        <tr>
                            <td><?php echo $R1->date; ?></td>
                            <td><?php echo $R1->ID; ?></td>
                            <td><?php echo $R1->TypeF; ?></td>
                            <td><?php echo '<a class="btn btn-warning" href="./ATA/AdmGestionProjet/commande.php?IDPAC='.$R1->IDPAC.'&ID='.$R1->ID.'">GENERER COMMANDE</a>'; ?>
                        </tbody>              
                        <?php } ?>

                        </table>
                </div>   
                <div class="container1">         
                    
                        
                        <h5 class="btn-lg btn-warning"> PROJETS A POINTER </h5>
                       
                        <table class='table table-hover table-bordered table-condensed'>
                        <thead>
                        <tr>
                            <th>DATE</th>
                            <th>ID</th>
                            <th>DATE COMMANDE</th>
                            <th>TYPE</th>
                            <th>ACTIONS</th>
                        </tr>
                        </thead>

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

                        <tr>
                            <td><?php echo $R2->date; ?></td>
                            <td><?php echo $R2->ID; ?></td>
                            <td><?php echo $R2->DateCommande; ?></td>
                            <td><?php echo $R2->TypeF; ?></td>
                          
                            <td><?php echo '<a class="btn btn-warning" href="./ATA/AdmGestionProjet/pointage.php?IDPAC='.$R2->IDPAC.'&ID='.$R2->ID.'">POINTAGE</a>'; ?>
                        </tbody>              
                        <?php } ?>

                    </table>

                </div>     
                <div class="container1">     
                       
                        <h5 class="btn-lg btn-success"> PROJETS A PLANIFIER</h5>
                       
                        <table class='table table-hover table-bordered table-condensed'>
                        <thead>
                        <tr>
                            <th>DATE</th>
                            <th>ID</th>
                            <th>DATE COMMANDE</th>
                            <th>DATE PREPARATION</th>
                            <th>TYPE</th>
                            <th>ACTIONS</th>
                        </tr>
                        </thead>

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

                        <tr>
                            <td><?php echo $R3->date; ?></td>
                            <td><?php echo $R3->ID; ?></td>
                            <td><?php echo $R3->DateCommande; ?></td>
                            <td><?php echo $R3->DatePrepa; ?></td>
                            <td><?php echo $R3->TypeF; ?></td>
                            <td><?php echo '<a class="btn btn-danger" href="./ATA/AdmGestionProjet/planification.php?ID='.$R3->ID.'">PLANIFIER</a>'; ?>
                        </tbody>              
                        <?php } ?>

                    </table>
                </div>
            
            </form>
       </div>
    </body>
</html>