Ejemplo n.º 1
0
         <th style="width: 10%">Compte</th>
         <th style="width: 10%">N°.Opé</th>
         <th style="width: 10%">Montant</th>
         <th style="width: 10%">Status</th>
         <!--th style="width: 10%">Quittance</th-->
     </tr>
 </thead>
 <tbody>
     <?php
     foreach($operationsNonValidees as $operation){
         $status = "";
         $action = "";
         $idContrat = $operation->idContrat();
         $contrat = $contratManager->getContratById($idContrat);
         $nomProjet = $projetManager->getProjetById($contrat->idProjet())->nom();
         $nomClient = $contratManager->getClientNameByIdContract($operation->idContrat());
         if ( $operation->status() == 0 ) {
             $action = '<a class="btn grey mini"><i class="icon-off"></i></a>'; 
             if ( $_SESSION['userMerlaTrav']->profil() == "admin" ) {
                 $status = '<a class="btn red mini" href="#validateOperation'.$operation->id().'" data-toggle="modal" data-id="'.$operation->id().'"><i class="icon-pause"></i>&nbsp;Non validé</a>';  
             } 
             else{
                 $status = '<a class="btn red mini"><i class="icon-pause"></i>&nbsp;Non validé</a>';
             } 
         } 
         else if ( $operation->status() == 1 ) {
             if ( $_SESSION['userMerlaTrav']->profil() == "admin" ) {
                 $status = '<a class="btn blue mini" href="#cancelOperation'.$operation->id().'" data-toggle="modal" data-id="'.$operation->id().'"><i class="icon-ok"></i>&nbsp;Validé</a>';
                 $action = '<a class="btn green mini" href="#hideOperation'.$operation->id().'" data-toggle="modal" data-id="'.$operation->id().'"><i class="icon-off"></i></a>';   
             }
             else {