Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/supplier/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>
<table class="display table" id="supplierTable" width="100%">
<thead>
<tr>
<th></th>
<th>Entreprise</th>
<th>Nom</th>
<th>Pr�nom</th>
<th>Email</th>
<th>Tel</th>
<th></th>
</tr>
</thead>
<tbody>
<?php foreach($this->listsupplier as $row) { ?>
<tr>
<td>
<ul class="gallerybox">
<li>
<figure>
<a href="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit/id/<?php echo $row['ID']; ?>"><img src="<?php if (isset($row['URL'])) { echo '/'.$this->escape($row['URL']); } else {echo '/items/product/default/default.png'; } ?>"></a>
</figure>
</li>
</ul>
</td>
<td><?php echo $this->escape($row['COMPANY']);?></td>
<td><?php echo $this->escape($row['NOM']);?></td>
<td><?php echo $this->escape($row['PRENOM']);?></td>
<td><?php echo $this->escape($row['EMAIL']);?></td>
<td><?php echo $this->escape($row['TEL']);?></td>
<td>
<div class="btn-group">
<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit/id/<?php echo $row['ID']; ?>"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/supplier/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
</div>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<script>
$(document).ready(function() {
initDataTable('supplierTable', [[ 1, "asc" ]], [
{ "orderable": false, "targets": 0},
{ "orderable": false, "targets": -1, "width": "270px" }
]);
});
</script>
</div>