Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/user/list.phtml |
<div class="table-box">
<div class="col-md-12 header-single-line">
<div class="col-md-5 header-single no-space-top"><?php echo $this->titlePage; ?></div>
<div class="col-md-7 no-space-top"><?php echo $this->render("alert.phtml"); ?></div>
</div>
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
<table class="display table" id="supplierTable" width="100%">
<thead>
<tr>
<th><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list/col/NOM">Nom</a></th>
<th><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list/col/PRENOM">Pr�nom</a></th>
<th><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list/col/RAISONSOCIAL">Raison sociale</a></th>
<th><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list/col/TYPE">Type</a></th>
<th><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list/col/EMAIL">Email</a></th>
<th><a href="<?php echo $this->baseUrl; ?>/backoffice/user/list/col/TEL">Tel</a></th>
<th></th>
</tr>
</thead>
<tbody>
<?php foreach($this->paginator as $row) { ?>
<tr>
<td><?php echo $row->NOM;?></td>
<td><?php echo $row->PRENOM;?></td>
<td><?php echo $row->RAISONSOCIAL;?></td>
<td><?php echo $this->escape($row->TYPE);?></td>
<td><?php echo $this->escape($row->EMAIL);?></td>
<td><?php echo $this->escape($row->TEL);?></td>
<td class="text-center no-space-side">
<div class="btn-group">
<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $row->ID; ?>" ><span class="glyphicon glyphicon-edit"></span> Modifier</a>
<?php if ($this->escape($row->isBAN) == 1) { ?>
<a class="btn btn-warning" href="<?php echo $this->baseUrl; ?>/backoffice/user/ban/id/<?php echo $row->ID; ?>/ban/0/page/<?php echo $this->paginator->getCurrentPageNumber(); ?>" ><span class="glyphicon glyphicon-ban-circle"></span> Bannir</a>
<?php } else { ?>
<a class="btn btn-warning" href="<?php echo $this->baseUrl; ?>/backoffice/user/ban/id/<?php echo $row->ID; ?>/ban/1/page/<?php echo $this->paginator->getCurrentPageNumber(); ?>" ><span class="glyphicon glyphicon-ok-sign"></span> D�bannir</a>
<?php } ?>
<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/user/del/id/<?php echo $row->ID; ?>/page/<?php echo $this->paginator->getCurrentPageNumber(); ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
</div>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<?php echo $this->paginationControl($this->paginator, 'All', 'pagination.phtml'); ?>
</div>