exportacion de datos en la vista 'p'
This commit is contained in:
parent
96e51cf97c
commit
e331fbca0b
@ -2171,18 +2171,27 @@ if($tipo ==""){
|
||||
|
||||
$fila=1;
|
||||
while( $row = mysqli_fetch_array( $sql ) ) {
|
||||
if($fila % $registros == 0) {$separador="</table>$pie<div class='saltopagina'></div>$cabecera<table class='table table-bordered table-striped'><th></th>$titulo";}
|
||||
if($fila % $registros == 0) {$separador="</table>$pie<div class='saltopagina'></div>$cabecera<table class='table table-bordered table-striped exportable'><thead><th></th>$titulo</thead>";}
|
||||
else {$separador="";}
|
||||
$linea = formulario_imprimir_linea("$id","$row[control]","linea_planilla");
|
||||
$despliegue .= "<tr><td><small>$fila</small></td>$linea</tr> $separador";
|
||||
//formulario_imprimir_linea("$row[form_id]","$row[control]")
|
||||
$fila++;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
$tabla= "$cabecera <table class='table table-bordered table-striped'>$titulos $despliegue</table>$pie";
|
||||
return "<div class='container-fluid'>$tabla</div>";
|
||||
$tabla= "$cabecera <table class='table table-bordered table-striped exportable'><thead>$titulos</thead><tbody>$despliegue</tbody></table>$pie";
|
||||
return "<div class='container-fluid'>$tabla</div>
|
||||
<script type='text/javascript'>
|
||||
$('.exportable').DataTable( {
|
||||
dom: 'Bfrtip',
|
||||
pageLength:$registros,
|
||||
buttons: [
|
||||
'copy', 'excel', 'csv','print'
|
||||
]
|
||||
} );
|
||||
</script>";
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user