Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php foreach ($tutoriel_securite as $tuto_securite) {
- echo '<td colspan="4" class="colspan">' .$tuto_securite->nom_categorie .'</td>';
- echo "<tr>";
- echo "<td>" .$tuto_securite->titre. "</td>";
- if ($tuto_securite->status === 'P')
- {
- $status = '<span class="label label-primary">Publié</span>';
- }
- else{
- $status = '<span class="label label-warning">Brouillon</span>';
- }
- echo "<td>" .$status. "</td>";?>
- <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>
- <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>
- <?php echo "</tr>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement