shell bypass 403
<div class="row">
<div class="col-md-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Liste des affectations</h3>
<div class="box-tools">
<?php if(in_array($add, $access["Affectation"]->actions)){ ?>
<a href="<?php echo site_url('affectation/add'); ?>" class="btn btn-success btn-sm">Ajouter</a>
<?php } ?>
</div>
</div>
<div class="box-body">
<table id="dataaffectation" class="table table-striped">
<thead>
<tr>
<th>Utilisateur</th>
<th>Poste</th>
<th>Equipe</th>
<th>Etat</th>
<th>Societe</th>
<th>Planning</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php foreach($affectation as $a){ ?>
<tr>
<td><?php echo $a['name']." ".$a['prenom']; ?></td>
<td><?php echo $a['poste']; ?></td>
<td><?php echo $a['equipe']; ?></td>
<td>
<?php if($a['actif']=="1"){ ?>
<span class="badge badge-success">Actif</span>
<?php }else{ ?>
<span class="badge badge-danger">Inactif</span>
<?php }?>
</td>
<td><?php echo $a['entreprise']; ?></td>
<td><?php echo $a['planning']; ?></td>
<td>
<?php if(in_array($edit, $access["Affectation"]->actions)){ ?>
<a href="<?php echo site_url('affectation/edit/'.$a['idaffectation']); ?>" class="btn btn-info btn-xs"><span class="fa fa-pencil"></span> Edition</a>
<?php } ?>
<?php if(in_array($delete, $access["Affectation"]->actions)){ ?>
<a href="<?php echo site_url('affectation/remove/'.$a['idaffectation']); ?>" class="btn btn-danger btn-xs"><span class="fa fa-trash"></span> Supprimer</a>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<div class="pull-right">
<?php echo $this->pagination->create_links(); ?>
</div>
</div>
</div>
</div>
</div>