Last active
June 20, 2016 15:22
-
-
Save jlamim/0f1a55b688215896d2bd8d1e06f55eae to your computer and use it in GitHub Desktop.
Paginação de resultados com Ajax, CodeIgniter e Bootstrap - View principal
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 $this->load->view('commons/cabecalho'); ?> | |
<div class="container"> | |
<div class="page-header"> | |
<h1>Paginação de Resultados com CodeIgniter e Bootstrap</h1> | |
</div> | |
<div class="row"> | |
<div class="col-md-12" id="RegistrosPagina"> | |
<?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 endif; ?> | |
<?php echo $pagination; ?> | |
</div> | |
</div> | |
</div> | |
<?php $this->load->view('commons/rodape'); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment