0% found this document useful (0 votes)
10 views4 pages

Jodes Mucho Emiko

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views4 pages

Jodes Mucho Emiko

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

LIST

<style>
body {
font-family: Arial, Helvetica, sans-serif;
}

/* The Modal (background) */


.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* 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">

<h3 style="text-align: left; margin-top:-10px;"> <?php echo $title; ?></h3>


<?php echo form_open('sexo/save_edit') ?>
<ul>
<li> <?php echo anchor('genero/elprimero/', 'primero'); ?></li>
<li> <?php echo anchor('genero/siguiente/'.$genero['idgenero'],
'siguiente'); ?></li>
<li> <?php echo anchor('genero/anterior/'.$genero['idgenero'],
'anterior'); ?></li>
<li style="border-right:1px solid green"><?php echo
anchor('genero/elultimo/', 'Último'); ?></li>
<li> <?php echo anchor('genero/add', 'Nuevo'); ?></li>
<li> <?php echo anchor('genero/edit/'.$genero['idgenero'],'Edit'); ?
></li>
<li style="border-right:1px solid green"> <?php echo
anchor('genero/delete/'.$genero['idgenero'],'Delete'); ?></li>
<li> <?php echo anchor('genero/listar/','Listar'); ?></li>
</ul>
</div>
<br>

<?php echo form_hidden('idgenero',$genero['idgenero']) ?>


<div class="form-group row">
<label class="col-md-2 col-form-label"> Id:</label>
<div class="col-md-10">

<?php echo form_input('idgenero',


$genero['idgenero'],array("disabled"=>"disabled",'placeholder'=>'Idgeneros')
) ?>

</div>
</div>

<div class="form-group row">


<label class="col-md-2 col-form-label"> Nombre:</label>
<div class="col-md-10">

<?php echo form_input('nombre',


$genero['nombre'],array("disabled"=>"disabled",'placeholder'=>'nombre')) ?>

</div>
</div>
<?php echo form_close(); ?>

</body>

</html>

You might also like