-
Notifications
You must be signed in to change notification settings - Fork 0
/
guia de uso.docx
94 lines (71 loc) · 2.54 KB
/
guia de uso.docx
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
include '../../conexion/conexion.php';
?>
<!-- codigo para la busqueda -->
<div class="alert alert-info">
<label> BUSQUEDA : </label>
<input type="text" id="Txt_Buscar" placeholder="Digite su busqueda..." name="Txt_Buscar" value="" />
</div>
<!-- codigo para la tabla con boostrap 4 -->
<table class=" table responsive-table table-bordered z-depth-1 centered table-hover input-xs table-striped nowrap " id="Tab_Filter">
<thead class="bg-info text-white">
<tr>
<th data-field="Descripción">Descripción del Horario</th>
<th data-field="Instructor">Instructor</th>
<th data-field="Cupo">Cupo</th>
<th data-field="Inscritos">Inscritos</th>
<th data-field="Grupo">Grupo</th>
<th data-field="accion">Accion</th>
</tr>
</thead>
<tbody >
<?php
$consulta_citas=$pdo->query("SELECT * from v_horario");
if($consulta_citas->rowCount() == 0){
echo "<tr>
<td colspan='5'>No hay Horarios asignados</td>
</tr>";
}
else {
foreach ($consulta_citas as $row) :
?>
<tr>
<td><?= $row["Hora"] ?></td>
<td ><?= $row['Instructor'];?></td>
<td><?= $row["Total"] ?></td>
<td><?= $ninscritos ?></td>
<td><button class="btn btn-success " title="Ver grupo de trabajo "?>" ><i class="dripicons-user-group"></i></button> </td>
<td>
<button class="btn btn-success " title="Editar " ><i class="dripicons-document-edit"></i></button>
<button class="btn btn-warning" title="Eliminar" ><i class="mdi mdi-window-close"></i></button>
<button class="btn btn-info" title="Imprimir "><i class="dripicons-print"></i></button> </td>
</td>
</tr>
<?php endforeach ?>
<?php } ?>
</tbody>
</table>
<!-- codigo para el paginador -->
<ul class="pagination" id="NavPosicion_b"></ul>
<!-- agego los scripts para el paginador y buscador -->
<script src="../js/paging.js"></script>
<script src="../js/jquery_searchtable.js"></script>
<script src="js/app.js"></script>
<script>
<!-- codigo paraacrgar scripts de jsr -->
// $.getScript("categorias/static/js/actions.js")
<!-- codigo para cativar el paginador -->
var pager = new Pager('Tab_Filter', 5);
pager.init();
pager.showPageNav('pager', 'NavPosicion_b');
pager.showPage(1);
<!-- codigo para cativar el buscador -->
$(document).ready(function() {
$(function() {
theTable = $("#Tab_Filter");
$("#Txt_Buscar").keyup(function() {
$.uiTableFilter(theTable, this.value);
});
});
});
</script>