forked from dareyesm/filtroHtmlJquery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
55 lines (54 loc) · 1.22 KB
/
index.php
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
<!DOCTYPE html>
<html lang="es">
<head>
<title>Filtro HTML</title>
<meta charset="utf-8">
</head>
<body>
<h1>Listado de Usuarios...</h1>
<?php
require 'class/users.php';
$consultar = new Users();
$result = $consultar->listar_u();
?>
<div id="resultado"></div>
<div id="tabla">
<table border="1">
<form id="books" name="books" method="POST">
<tr>
<td></td>
<td>
<select name="code" id="code">
<option value="">Ordenar</option>
<option value="A">Ascendentemente</option>
<option value="D">Descendentemente</option>
</select>
</td>
<td></td>
</tr>
<tr>
<td>
Id Usuario
</td>
<td>
Usuario
</td>
<td>
Pass
</td>
</tr><?php
foreach ($result as $key => $value) {?>
<tr>
<td><?php echo $value['idUser'];?></td>
<td><?php echo $value['naUser'];?></td>
<td><?php echo $value['paUser'];?></td>
</tr>
<?php }
?>
</form>
</table>
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/filtro.js"></script>
</div>
</body>
</html>