Viewing file: trasnf_view.php (2.66 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div> <h1><?= $titulo ?></h1> <div id="buscador"> <br> <form action="<?php echo base_url()?>recibo/listarTrasnferencias/" method="post"> <input type="text" name="buscando" id="buscando" /> <input type="submit" class="btn btn-primary btn-lg" value="Buscar" /> </form> </div> <form method="post" name="factura" > <?php $this->table->set_heading('Nro Transferencia', 'Monto','Fecha','Cliente' ,'Nro Recibo'); //crea la primera fila de la tabla con el encabezado $tmp = array ( 'table_open' => '<table class="table table-bordered table-striped" id="transferencias" width="100%">' ); //modifica el espaciado $this->table->set_template($tmp); //aplico los cambios de modificacion anterior if($results !=null){ foreach($results as $dato): $this->table->add_row($dato->codigo,$dato->monto,date ( 'd/m/Y' , strtotime($dato->fecha)),$dato->nombre,$dato->nroRecibo); //agregamos la celda a la tabla por cada iteracion endforeach; } echo $this->table->generate(); //cuando termina generamos la tabla a partir del vector echo $this->pagination->create_links(); ?> <br> </form> </div> <script type="text/javascript"> document.onkeydown = function(){ if (window.event && (window.event.keyCode == 8)) { valor = document.activeElement.value; if (valor==undefined) { return false; } //Evita Back en página. else { if (document.activeElement.getAttribute('type')=='sel ect-one') { return false; } //Evita Back en select. if (document.activeElement.getAttribute('type')=='but ton') { return false; } //Evita Back en button. if (document.activeElement.getAttribute('type')=='rad io') { return false; } //Evita Back en radio. if (document.activeElement.getAttribute('type')=='che ckbox') { return false; } //Evita Back en checkbox. if (document.activeElement.getAttribute('type')=='fil e') { return false; } //Evita Back en file. if (document.activeElement.getAttribute('type')=='res et') { return false; } //Evita Back en reset. if (document.activeElement.getAttribute('type')=='sub mit') { return false; } //Evita Back en submit. else //Text, textarea o password { if (document.activeElement.value.length==0) { return false; } //No realiza el backspace(largo igual a 0). else { document.activeElement.value.keyCode = 8; } //Realiza el backspace. } } } if(window.event && window.event.keyCode == 505){ window.event.keyCode = 505; } } </script>
|