-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmostrar-usuarios
62 lines (62 loc) · 3.15 KB
/
mostrar-usuarios
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<form method="post" action="usuarios.php" class="form-horizontal form-bordered">
<div class="form-group">
<div class="col-md-6">
<div class="input-group">
<select id="example-select" name="coluna" class="form-control" size="1">
<option value="NMUSUARIO">Filtrar por Nome</option>
<option value="EMAIL">Filtrar por E-mail</option>
</select>
<input type="text" id="example-input1-group3" name="pesq" class="form-control" placeholder="Digite aqui...">
<span class="input-group-btn">
<button type="submit" class="btn btn-effect-ripple btn-primary" style="overflow: hidden; position: relative;">Buscar</button>
</span>
</div>
</div>
</div>
</form>
<div class="table-responsive">
<table id="example-datatable" class="table table-striped table-bordered table-vcenter">
<thead>
<tr>
<th class="text-center" style="width: 50px;">ID</th>
<th class='text-center'>NOME</th>
<th class='text-center'>E-MAIL</th>
<th class='text-center' style="width: 120px;">STATUS</th>
<th class="text-center" style="width: 75px;">AÇÕES</th>
</tr>
</thead>
<tbody>
<?php
include('listarUsuarios.php');
?>
</tbody>
</table>
<!-- PAGINAÇÃO -->
<div class="col-sm-5 hidden-xs">
<div class="dataTables_info" id="example-datatable_info" role="status" aria-live="polite">
Total de <strong> <?php echo $total;?></strong> registros.
</div>
</div>
<div class="col-sm-7 col-xs-12 clearfix">
<div class="dataTables_paginate paging_bootstrap" id="example-datatable_paginate">
<ul class="pagination pagination-sm remove-margin">
<li class="prev disabled">
<a href="javascript:void(0)"><i class="fa fa-chevron-left"></i> </a>
</li>
<?php
for($i = 1; $i < $numPaginas + 1; $i++) {
if($pagina == $i){
echo "<li class='active'><a href='usuarios.php?pagina=$i'>".$i."</a></li>";
}else{
echo "<li><a href='usuarios.php?pagina=$i'>".$i."</a></li>";
}
}
?>
<li class="next disabled">
<a href="javascript:void(0)"> <i class="fa fa-chevron-right"></i>
</a>
</li>
</ul>
</div>
</div>
<!-- FIM PAGINAÇÃO -->