Advertisement
tonny16

view dashboard

Jul 17th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.01 KB | None | 0 0
  1. <?php foreach ($tutoriel_securite as $tuto_securite) {
  2.                             echo '<td colspan="4" class="colspan">' .$tuto_securite->nom_categorie .'</td>';
  3.                    
  4.                            
  5.  
  6.                                 echo "<tr>";
  7.  
  8.                                 echo "<td>" .$tuto_securite->titre. "</td>";
  9.  
  10.                                 if ($tuto_securite->status === 'P')
  11.                                 {
  12.                                     $status = '<span class="label label-primary">Publié</span>';
  13.                                 }
  14.                                 else{
  15.                                     $status = '<span class="label label-warning">Brouillon</span>';
  16.                                 }
  17.                                 echo "<td>" .$status. "</td>";?>
  18.                                 <td><a  href="<?php echo base_url()?>tutoriel/edit/<?php echo $tuto_securite->id;?>" class="btn btn-xs btn-primary"><span class="glyphicon glyphicon-edit"></span>  </a></td>
  19.                                 <td><a class="btn btn-danger btn-xs" data-toggle="modal" data-target="#deleteModal" href="<?php echo base_url()?>tutoriel/suppression/<?php echo $tuto_securite->id;?>" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-trash"></span>  </a></td>
  20.  
  21.                                 <?php echo "</tr>";
  22.                             }
  23.                            
  24.                             ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement