Skip to content

Instantly share code, notes, and snippets.

@jlamim
Last active June 20, 2016 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlamim/0f1a55b688215896d2bd8d1e06f55eae to your computer and use it in GitHub Desktop.
Save jlamim/0f1a55b688215896d2bd8d1e06f55eae to your computer and use it in GitHub Desktop.
Paginação de resultados com Ajax, CodeIgniter e Bootstrap - View principal
<?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