Viewing file: pagos_edit_view.php (2.08 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="content-wrapper" style="min-height: 946px;"> <div style="margin-left:20px;"> <section class="content-header"> <h1><?php echo($titulo);?></h1> <br>
<div id="content"> <form method="post" class="form-inline" name="gestionPedido" class="form-horizontal"> <input type="hidden" style="font-family: Arial; font-size: 16pt;height: 40px;" name="id" id="id" value="<?php echo ($datos->id);?>"> <strong style="font-family: Arial; font-size: 16pt;height: 40px;">DATO: </strong> <input type="text" style="font-family: Arial; font-size: 16pt;height: 40px;" name="datoPago" id="datoPago" value="<?php echo ($datos->datoPago);?>"> <strong style="font-family: Arial; font-size: 16pt;height: 40px;">MONTO: </strong><input type="text" style="font-family: Arial; font-size: 16pt;height: 40px;" name="valor" id="valor" value="<?php echo ($datos->valor);?>"> <strong style="font-family: Arial; font-size: 16pt;height: 40px;">SALDO: </strong> <input type="text" style="font-family: Arial; font-size: 16pt;height: 40px;" name="saldo" id="saldo" value="<?php echo ($datos->saldo_pago);?>"> <br><br> <input class="btn btn-info btn-lg" type="button" value="VOLVER" onclick="volver();"> <input class="btn btn-primary btn-lg" type="button" name="registrar" id="registrar" value="GUARDAR CAMBIOS" onclick="registrarCambios();"> </form> </section><!-- /.content --> </div><!-- /.content-wrapper -->
<script type="text/javascript"> function volver(){ location.href='<?php echo base_url()?>pagos/index'; }
function registrarCambios(){ id=document.getElementById("id").value; datoPago=document.getElementById("datoPago").value; valor=document.getElementById('valor').value; saldo=document.getElementById('saldo').value; $.ajax({ type: 'POST', url: '<?php echo site_url("pagos/actualizar");?>', data: {id:id,datoPago:datoPago,valor:valor,saldo:saldo}, success:function(data){
} });
location.href='<?php echo base_url()?>pagos/index'; } </script>
|