Last active
June 20, 2016 15:48
-
-
Save jlamim/2f35f36d09c7d6d921397ccbd33771f7 to your computer and use it in GitHub Desktop.
Paginação de resultados com Ajax, CodeIgniter e Bootstrap - Conteúdo HTML retornado via ajax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if($usuarios): ?> | |
<div class="table-responsive"> | |
<table class="table table-striped"> | |
<thead> | |
<th>#</th> | |
<th>Nome</th> | |
<th>Email</th> | |
</thead> | |
<tbody> | |
<?php foreach($usuarios as $usuario): ?> | |
<tr> | |
<td><?=$usuario->id?></td> | |
<td><?=$usuario->nome?></td> | |
<td><?=$usuario->email?></td> | |
</tr> | |
<?php endforeach; ?> | |
</tbody> | |
</table> | |
</div> | |
<?php echo $pagination; ?> | |
<?php else: ?> | |
<p class="alert alert-info">Página inexistente</p> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment