Viewing file: retenc_view.php (3.79 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div> <h1><?= $titulo ?></h1> <div class="col-md-12 form-inline"> <form action="<?php echo base_url()?>recibo/listarRetenciones/" method="post"> <strong>Tipo de Retencion:</strong> <select name="comboRetencion" id="comboRetencion" class="form-control"> <option> </option> <?php $respuestaCombo=$this->consultas_model->getTipoRetencion(); foreach($respuestaCombo as $file):?> <option><?= $file->descripcion ?></option> <?php endforeach;?> </select> <strong>Periodo de Busqueda:</strong> <select name="comboPeriodo" id="comboPeriodo" class="form-control"> <option></option> <?php $array = [ "ENERO", "FEBRERO","MARZO","ABRIL","MAYO","JUNIO","JULIO","AGOSTO","SEPTIEMBRE","OCTUBRE","NOVIEMBRE","DICIEMBRE"]; foreach($array as $file):?> <option><?= $file ?></option> <?php endforeach;?> </select> <input type="submit" class="btn btn-primary btn-lg" value="Filtrar" /> <strong>TOTAL:</strong> <input style="text-align:right;" type="text" name="total" id="total" value="<?php echo ($total); ?>"><br> </form> </div> <form method="post" name="factura" >
<?php $this->table->set_heading('Nro','Monto','Tipo Retencion','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->id,$dato->monto,$dato->descripcion,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>
|