
ayuda para crear la datatable
Publicado por superspiderman (1 intervención) el 15/10/2017 17:42:38
Hola buenos dias disculpen alguien que me pueda ayudar para poder usar la datatable lo que pasa que si me da la tabla pero me da fija y quisiera que me aparezca asi

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
<div class="box-body table-responsive">
<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th>Cuenta</th>
<th>Unidad Explot</th>
<th>Centro de Costos</th>
<th>Unidad de Informacion</th>
<th>Proyecto</th>
<th>Presupuestos</th>
<th>Gasto</th>
<th>Comprometido</th>
<th>Precomprometido</th>
<th>Disponible</th>
</tr>
</thead>
<tbody>
<?php
$consulta="SELECT cuenta, unidad, centro, unidad1,proyecto,periodo,presupuesto,gasto,comprometido,precomprometido,disponibilidad FROM dictamenes ";
$resultado=mysql_query($consulta);
while ($fila=mysql_fetch_array($resultado)) {
switch ($fila['cuenta']) {
case 1:
$btn_st = "danger";
$txtFuncion = "Desactivar";
break;
case 0:
$btn_st = "primary";
$txtFuncion = "Activar";
break;
}
//echo '<li data-icon="delete"><a href="?mod=lugares?edit='.$fila['id_tipo'].'"><img src="images/lugares/'.$fila['imagen'].'" height="350" >'.$fila['nombre'].'</a><a href="?mod=lugares?borrar='.$fila['id_tipo'].'" data-position-to="window" >Borrar</a></li>';
echo "<tr>
<td>
$fila[cuenta]
</td>
<td> $fila[unidad] </td>
<td>
$fila[centro]
</td>
<td>
$fila[unidad1]
</td>
<td>
$fila[proyecto]
</td>
<td> $fila[periodo] </td>
<td>
$fila[presupuesto]
</td>
<td>
$fila[comprometido]
</td>
<td>
$fila[precomprometido]
</td>
<td>
$fila[disponibilidad]
</td>
<td>";
//echo '<li data-icon="delete"><a href="?mod=lugares?edit='.$fila['id_tipo'].'"><img src="images/lugares/'.$fila['imagen'].'" height="350" >'.$fila['nombre'].'</a><a href="?mod=lugares?borrar='.$fila['id_tipo'].'" data-position-to="window" >Borrar</
}
?>
</tbody>
<tfoot>
<tr>
<th>Cuenta</th>
<th>Unidad Explot</th>
<th>Centro de Costos</th>
<th>Unidad de Informacion</th>
<th>Proyecto</th>
<th>Presupuestos</th>
<th>Gasto</th>
<th>Comprometido</th>
<th>Precomprometido</th>
<th>Disponible</th>
</tr>
</tfoot>
</table>
</div>
</body>

Valora esta pregunta


0