Jodes Mucho Emiko
Jodes Mucho Emiko
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
/* Modal Content */
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
</style>
<div id="eys-nav-i">
<ul>
<li><?php echo anchor('genero', 'Home'); ?></li>
</ul>
</div>
<div class="container">
<div class="row">
<div class="col-12">
<h3>Genero - Listar</h3>
</div>
</div>
<div class="row">
<div class="col-12">
<table class="table table-striped table-bordered table-hover"
id="mydatac">
<thead>
<tr>
<th>ID</th>
<th>Nombre</th>
<th style="text-align: right;">Actions</th>
</tr>
</thead>
<tbody id="show_data"></tbody>
</table>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
var mytabla = $('#mydatac').DataTable({
"ajax": {
url: '<?php echo site_url('genero/genero_data')?>',
type: 'GET'
}
});
$('#show_data').on('click','.item_ver', function(){
var id = $(this).data('idgenero');
var retorno = $(this).data('retorno');
window.location.href = retorno + '/' + id;
});
});
</script>
RECORD
<div id="eys-nav-i">
</div>
</div>
</div>
</div>
<?php echo form_close(); ?>
</body>
</html>