Created
July 20, 2017 16:03
-
-
Save anonymous/a490e7973a1d6b1b514c36f2b083aac9 to your computer and use it in GitHub Desktop.
Agradezco tu pronta respuesta Israel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Israel, te saludo y agradezco tu respuesta la cual me fue de mucha ayuda, pudiendo solucionar el problema de la siguiente manera: | |
<table id="tblPersonas" class="table table-striped"> | |
<thead> | |
<tr> | |
<th>ID</th> | |
<th>Fecha alta</th> | |
<th>Nombre operador</th> | |
<th>Usuario</th> | |
<th>AccionesHOLLLLL</th> | |
</tr> | |
</thead> | |
<tbody></tbody> | |
</table> | |
<!-- jQuery 2.2.0 --> | |
<script type="text/javascript" src="<?PHP echo base_url('assets/plugins/jQuery/jquery-2.2.3.min.js') ?>"></script> | |
<!-- Datatable --> | |
<script type="text/javascript" src="<?PHP echo base_url('assets/plugins/datatables/jquery.dataTables.min.js') ?>"></script> | |
<script type="text/javascript" src="<?PHP echo base_url('assets/plugins/datatables/dataTables.bootstrap.min.js') ?>"></script> | |
<script type="text/javascript"> | |
$('#tblPersonas').DataTable({ | |
'info': true, | |
'paging': true, | |
'filter': true, | |
'stateSave': true, | |
'ajax': { | |
"url":"<?PHP echo base_url(); ?>" + "operadores/listar/", | |
"type":"POST", | |
"data": { | |
'<?php echo $this->security->get_csrf_token_name(); ?>' : '<?php echo $this->security->get_csrf_hash(); ?>' | |
}, | |
"dataSrc": '' | |
}, | |
'columns': [ | |
//{data: 'rownum','sClass':'dt-body-center'}, | |
{data: 'IDOPERADOR', 'sClass':'dt-body-center'}, | |
{data: 'CREATED_AT'}, | |
{data: 'NOMBRECOMPLETO'}, | |
{data: 'USUARIO'}, | |
//{data: 'ciudad'}, | |
//{data: 'intEstado'}, | |
{"orderable": true, render:function(data, type, row){ | |
return '<a href="#" class="btn btn-block btn-primary btn-sm" style="width: 80%;" data-toggle="modal" data-target="#modalEditPersona" onClick="selPersona()"><i class="fa fa-fw fa-edit"></i></a>' | |
} | |
} | |
], | |
"order": [[0, "asc"]], | |
}); | |
</script> | |
Por otro lado, otra pregunta, con base a tu experencia qué recomendación me darías ya que deseo usar CodeIgniter desarrollando un Front-End | |
y aparte establecer rutas APIRestFull para que sean consumidas a través de una App desarrollada en Android. Siguiendo tus cursos tengo la noción | |
que requiero un package JWT para codeigniter. Sin embargo me gustaría tener tu respuesta la cual me sería de mucha ayuda. | |
Saludos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment