!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.4.18 (Ubuntu). PHP/7.0.33-0ubuntu0.16.04.16 

uname -a: Linux digifus 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/almazen2/application/views/   drwxr-xr-x
Free 9.95 GB of 29.4 GB (33.83%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     pedido_new_view.php (23.4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div>
  <form method="post"  name="gestionPedido" class="form-horizontal">
<br>
<input type="hidden" name="numeroPedido" id="numeroPedido" value="<?php  echo ($nroPedido)?>" > </input>
<ul class="nav nav-tabs" role="tablist" id="myTab">
          <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab"><strong> ARMADO DE PEDIDO</strong></a></li>
          <li role="presentation" ><a href="#productosCarrito" aria-controls="productosCarrito" role="tab" data-toggle="tab"><strong> PEDIDO</strong></a></li>
          
      </ul>
      
    <div class="tab-content">
    <div role="tabpanel" class="tab-pane active estiloForm" id="home">

        <form method="post" action="<?php echo base_url()?>pedido/paginacionClientes/">
    <div class="container">
         <div id="buscador">

        <strong>Cliente: </strong>
            <input placeholder="INGRESAR RAZON SOCIAL"  type="text" name="buscando" class="med" id="buscando" />&nbsp;&nbsp;&nbsp;
             <input type="button" class="btn btn-success btn-lg" value="SELECCIONAR"  onclick="agregarCliente()"/>
        </div>            
        <br>
    </div>
    </form>

    <div role="tabpanel" class="tab-pane active estiloForm" id="home">
     <div class="estiloForm" >    
        <input class="form-control input-sm" type="hidden" name="id_cliente" id="id_cliente" value="<?php  echo ($datosCliente->id)?>" readonly>
         <b>Nombre:</b>&nbsp;<input class="form-control input-sm" type="text" name="nombre" id="nombre" value="<?php  echo ($datosCliente->nombre)?>" readonly>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <b>Razon Social:</b>&nbsp;<input class="form-control input-sm" type="text" name="razon_social" id="razon_social" value="<?php  echo ($datosCliente->razon_social)?>" readonly>
        &nbsp;&nbsp;&nbsp;&nbsp;
         <b>Mail:</b>&nbsp;<input class="form-control input-sm" type="text" name="mail" id="mail" value="<?php  echo ($datosCliente->mail)?>" readonly>
        &nbsp;&nbsp;&nbsp;&nbsp;
     <br> <br>
        <b>Direccion:</b>&nbsp;<input class="form-control input-sm " type="text" name="DireccionCliente" id="DireccionCliente" value="<?php  echo ($datosCliente->direccion)?>" readonly>

        <b>Provincia:</b>&nbsp;<input class="form-control input-sm" type="text" name="provincia" id="provincia" value="<?php  echo ($datosCliente->provincia)?>"readonly>
        &nbsp;&nbsp;&nbsp;&nbsp;
        
        <b>Localidad:</b>&nbsp;<input class="form-control input-sm" type="text" name="localidad" id="localidad" value="<?php  echo ($datosCliente->localidad)?>" readonly>
        &nbsp;&nbsp;&nbsp;&nbsp;
            <br> <br>
        <b>Telefono:</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="form-control input-sm" type="text" name="telefonoCliente" id="telefonoCliente" value="<?php  echo ($datosCliente->telefono)?>" readonly>
            &nbsp;&nbsp;&nbsp;&nbsp;

        <b>Cuit:</b>&nbsp;<input class="form-control input-sm" type="text" name="CuitCliente" id="CuitCliente" value="<?php  echo ($datosCliente->cuit)?>"readonly>
        &nbsp;&nbsp;&nbsp;&nbsp;
        
        <b>Expreso:</b>&nbsp;<input class="form-control input-sm" type="text" name="expreso" id="expreso" value="<?php  echo ($datosCliente->expreso)?>" readonly>
        &nbsp;&nbsp;&nbsp;&nbsp;
        
    </div>    
          
    </div>    

    <strong>Vendedor: </strong>
            <select name="comboVendedor" id="comboVendedor" >
            <option><?php echo($datosPedido[0]->vendedor); ?></option>
             <?php $respuestaCombo=$this->consultas_model->getVendedores(); foreach($respuestaCombo as $file):?>
                         <option><?= $file->nombre ?></option>
            <?php endforeach;?>
            </select> 
    <br><br><br>

    <!--  <button type="button" class="btn btn-success btn-large" data-toggle="modal" data-target="#listaProd" >Agregar Producto</button> -->
    <div>
         <div id="buscador2">

        <form method="post" action="<?php echo base_url()?>pedido/paginacionProductos/">
        <strong>Producto: </strong>
            <input type="text" name="buscandoProductos" id="buscandoProductos" />&nbsp;&nbsp;&nbsp;
            <input type="button" class="btn btn-primary btn-lg" value="Buscar Producto"  onclick="busquedaProductos()"/>
        </form>
        </div>
        <br>
            <div id="div_noticias">
            </div>
    </div>
 </div>
 

    <div class="modal fade bs-example-modal-lg" id="listaProd" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
          <div class="modal-dialog modal-lg">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="exampleModalLabel">Productos a Agregar</h4>
              </div>
              <div class="modal-body">
                <br>

              </div>
              <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
              </div>
            </div>
          </div>
        </div>

         <div role="tabpanel" class="tab-pane estiloForm" id="productosCarrito">
         
         <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
          <div class="panel panel-default">
            <div class="panel-heading" role="tab" id="headingOne">
              <h4 class="panel-title">
                <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                  <h1>REGISTRAR OBSERVACION</h1>
                </a>
              </h4>
            </div>
            <div id="collapseOne" class="panel-collapse collapse out" role="tabpanel" aria-labelledby="headingOne">
              <div class="panel-body">
                         <b>ESCRIBIR COMENTARIO: </b>&nbsp;<textarea class="form-control input-sm" style="margin: 0px; width: 1145px; height: 40px;" type="text" name="observacion" id="observacion" ><?php  echo ($datosPedido[0]->observacion);?></textarea>
                         <br>  <br> 
                        <div class="col-md-12" align="right">
                           <input class="btn btn-default" type="button" name="observ" id="observ" value="REGISTRAR COMENTARIO" onclick="registraComentario();">
                   </div>
                </div>
              </div>
            </div>

             <h1>PRODUCTOS AGREGADOS AL CARRITO</h1>
            <div id="tablaPrincipal3" width="60%">
            <?php
                $array
=array();
                
$subtotal1=0;
                
$total=0;
                
$iva=0;
                
$totalNeto=0;
                
$cantidadItems=0;
                
$descuento=0;
                if(
$datosPedido[0]->descuento != null){
                    
$descuento=$datosPedido[0]->descuento;
                }
                
                
$this->table->set_heading('Chequeo','Producto''Descripcion''Cantidad','Precio','Accion'); //crea la primera fila de la tabla con el encabezado
                
$tmp = array ( 'table_open'  => '<table class="table table-bordered table-striped" border="0" cellpadding="2" cellspacing="1" id="detalleTabla" width="60%">' );
                
$this->table->set_template($tmp);
                if(
$nroPedido !=NULL){
                    
$detallesPedido=$this->consultas_model->getDetallesPedidoById($nroPedido);
                    if(
$detallesPedido !=null){
                          foreach(
$detallesPedido as $file):
                              
$cantidadProdTabla=$cantidadProdTabla+1;
                            
$this->table->add_row('<input type="checkbox" name="seleccionar">',$file->nombre,$file->descripcion,$file->cantidad,$file->precio_venta,'<input  class="btn btn-danger" type="button" name="eliminar" id="eliminar" value="Eliminar" onclick="elinminarRegistro('$file->id.','.$file->cantidad.')">'); //agregamos la celda a la tabla por cada iteracion
                            
$cantidadItems +=$file->cantidad;
                            
$valorParcialSinDesc=round($file->cantidad*$file->precio_venta,2);
                            
                            
$subtotal1 += $valorParcialSinDesc;
                            
$valorParcial=($valorParcialSinDesc - ($valorParcialSinDesc*$descuento/100));
                            
$totalNeto +=round($valorParcial,2);
                          endforeach;
                          
$iva =round($totalNeto*0.21,2);
                          
$total=round($totalNeto+$iva,2);
    
                      }
                      echo 
$this->table->generate();
                }
                
?>
            </div>
        <div class="col-md-12 form-inline" align="right">
            <b>PRODUCTOS AGREGADOS (CANT TOTALES):</b>&nbsp;  
                 <input type="text" name="cantidadRegistros" id="cantidadRegistros" value="<?php echo ($cantidadItems);?>" readonly> 
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                 <label><b> Sub:     $</b></label><input type="text" name="subtotal" id="subtotal" value="<?php echo ($subtotal1);?>"readonly> 
                            <label><b> Sub C/DESCUENTO:     $</b></label><input type="text" name="totalAlternativo" id="totalAlternativo" value="<?php echo ($totalNeto);?>"readonly> 
           
             <br><br>
             
            <div class="col-md-12 form-inline" align="right">
                    <label><b>Descuento:</b></label>
                    <select name="comboDescuentos" id="comboDescuentos"  class="form-control">
                    <option><?php if($datosPedido[0]->descuento !=null) echo($datosPedido[0]->descuento ."%"); ?></option>
                                        <option></option>
                   <?php $respuestaCombo=$this->consultas_model->getDescuentos(); foreach($respuestaCombo as $file):?>
                         <option><?= $file ?>%</option>
                    <?php endforeach;?>
                    </select>
                    <input class="btn" type="button" name="descuentoBoton" id="descuentoBoton" value="Aplicar Descuento" onclick="aplicarDescuento(document.getElementById('comboDescuentos').value);">
                </div>
               <br>       
              <label><b>IVA:     $</b></label><input type="text" name="iva" id="iva" value="<?php echo ($iva);?>" readonly> 
              <br><br>
              <label><b>TOTAL:    $</b></label><input type="text" name="totalfinal" id="totalfinal" value="<?php echo ($total);?>"readonly> 
         </div>

         
         
        <h1>REGISTRACION DE PAGOS</h1>
        
         <button type="button" class="btn btn-success btn-lg" data-toggle="modal" data-target="#myModal">REGISTRAR CANCELACION PEDIDO</button>
       

               <input type="hidden" name="cantidadRegistros" id="cantidadRegistros" value="<?php echo ($cantidadProdTabla);?>"> 
               <input type="hidden" name="descuentoBase" id="descuentoBase" value="<?php echo ($datosPedido[0]->descuento);?>"> 
               
         <input type="hidden" name="vieneDentro" id="vieneDentro" value=""> </input>
    </div>
                   <br> <br>
             </div>
    </div>
               <div class="col-md-12" align="center">
                    <input class="btn btn-large btn-lg" type="button" value="Volver" onclick="volver();">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                       <input class="btn btn-primary btn-large" type="button" name="guardar" id="guardar" value="GUARDAR" onclick="guardarPedido();">
               </div>
       <!-- Modal -->
<div id="myModal" class="modal fade" style=" position: relative;" role="dialog">
  <div class="modal-dialog">
    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">CANCELACION PEDIDO</h4>
      </div>
      <div class="modal-body">
            <label><b>TIPO PAGO:</b></label>
            <select name="comboTipoPago" id="comboTipoPago"  class="form-control">
                    <option></option>
                   <?php $respuestaCombo=$this->consultas_model->getTiposPagos(); foreach($respuestaCombo as $file):?>
                         <option><?= $file ?></option>
                    <?php endforeach;?>
            </select>&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="text" placeholder="DATOS RELACIONADOS" id="datoOperacion" name="datoOperacion" value="" />
         <br>
                 <input type="number" placeholder="MONTO" id="valor" name="valor" value="" />
&nbsp;&nbsp;&nbsp;&nbsp;

                 <input type="text" placeholder="NRO RECIBO" id="recibo" name="recibo" value="" />
&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="button" class="btn btn-primary btn-lg" id="registrar" value="REGISTRAR PAGO" onclick="registrarPago();" />
        <br>
                
            <?php
            $this
->table->set_heading'Tipo Pago' ,'Fecha','Dato','MONTO','Saldo'); //crea la primera fila de la tabla con el encabezado
            
$tmp = array ( 'table_open'  => '<table class="table table-bordered table-striped" id="busquedaRecibo" width="100%">' ); //modifica el espaciado
            
$this->table->set_template($tmp); //aplico los cambios de modificacion anterior
            
$results2 $this->consultas_model->getDatosPagoPedido($nroPedido);
            if(
$results2 !=null){
                foreach(
$results2 as $dato):
                
$fechaReal=explode(" ",$dato->fechaPago);
                
$fecha=$fechaReal[0];
                
$fecha=date('d/m/Y',strtotime($fecha));
                        
$this->table->add_row($dato->tipoPago,$fecha,$dato->datoPago,$dato->valor,$dato->saldo); //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();
            
        
             
?>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
      </div>
    </div>

  </div>
</div>
    </form>

</div>
 
    <script type="text/javascript">
      $(this).ready( function() {
             $("#buscando").autocomplete({
                 minLength: 1,
                 source:'<?php echo site_url("pedido/autocompletar");?>',
    
             });
             $("#buscandoProductos").autocomplete({
                 minLength: 1,
                 source:'<?php echo site_url("pedido/autocompletarProductos");?>',
    
             });
         });
         
    $().ready(function(){
        $.ajax({
           type: 'POST',
           url: '<?= base_url("pedido/paginacionProductos")?>',
           success: function(data){
                $("#div_noticias").html(data);
           }
        });
    });

    function busquedaProductos(){
        buscando=document.getElementById("buscandoProductos").value;
        $.ajax({
           type: 'POST',
           url: '<?= base_url("pedido/paginacionProductos")?>',
           data: {buscando:buscando},
           success: function(data){
                $("#div_noticias").html(data);
           }
        });
     }

    function volver(){
          location.href='<?php echo base_url()?>pedido/index';
    }

    function registrarPago(){
         nroPedido=document.getElementById("numeroPedido").value;
         total=document.getElementById('totalfinal').value;
         tipo=document.getElementById("comboTipoPago").value;
         dato=document.getElementById("datoOperacion").value;
         recibo=document.getElementById("recibo").value;
         valor=document.getElementById("valor").value;
         if(tipo != null){
             if( valor !=null){
                 $.ajax({
                        type: 'POST',
                        url: '<?= base_url("pedido/registrarPagoWeb")?>',
                        data: {nroPedido:nroPedido,tipo:tipo,dato:dato,valor:valor,total:total,recibo:recibo},
                        success: function(data){
                               alert("PAGO REGISTRADO");
                             $('#myModal').modal('hide');
                        }
                     });
             }
             else{
                alert("Monto mayor a cero, por favor");
             }

             }
         else{
                 alert("Debe Ingresar tipo de Pago");
         }

        }
    
     function aplicarDescuento(descuento){
         if(descuento.length !=0){
             descuento1=descuento.split('%');
             valor=document.getElementById("totalAlternativo").value;
             nroPedido=document.getElementById("numeroPedido").value;
             subTotal=document.getElementById('subtotal').value;
             descuentoFinal=parseInt(descuento1);
             descuentoF=descuentoFinal*valor*0.01;
             valorFinal=(valor-descuentoF);
             $('#totalAlternativo').val(valorFinal.toFixed(2));
             valorIva=parseFloat(valorFinal.toFixed(2)*1.21-valorFinal.toFixed(2));
               $('#iva').val(valorIva.toFixed(2));
               total=valorIva+valorFinal;
             $('#totalfinal').val(total.toFixed(2));
             $('#comboDescuentos').val(descuento);
             vendedor=document.getElementById("comboVendedor").value;
             $.ajax({
                    type: 'POST',
                    url: '<?= base_url("pedido/registrarDescuento")?>',
                    data: {descuentoFinal:descuentoFinal,nroPedido:nroPedido,total:total,vendedor:vendedor,subTotal:subTotal},
                    success: function(data){
                    }
                 });
         }
         
     }
    
    function registraComentario() {
          comentario=document.getElementById('observacion').value;
          nroPedido=document.getElementById('numeroPedido').value;
            $.ajax({
                 type: 'POST',
                 url: '<?php echo site_url("pedido/registrarComentario");?>',
                 data: {comentario:comentario,nroPedido:nroPedido},
                 success:function(data){
                    alert("Comentario Registrado");
                 }
                 });
    }
    
    function agregarCliente(){
        cliente=document.getElementById("buscando").value;
        pedido=document.getElementById("numeroPedido").value;
        $.ajax({
            type: 'POST',
            url: '<?= base_url("pedido/getCliente")?>',
            data: {cliente:cliente,pedido:pedido},
            success: function(data){
                calculo=data.split(';');
                $('#razon_social').val(calculo[2]);
                $('#DireccionCliente').val(calculo[3]);
                $('#telefonoCliente').val(calculo[5]);
                $('#id_cliente').val(calculo[0]);
                $('#CuitCliente').val(calculo[7]);
                $('#mail').val(calculo[8]);
                $('#expreso').val(calculo[12]);
            }
         });
        
      }

      function ingresarCarrito(producto,i,precio){

          subTotal=document.getElementById('subtotal').value;
          total=document.getElementById('totalfinal').value;
          cliente=document.getElementById("id_cliente").value;
          vendedor=document.getElementById("comboVendedor").value;
            desc=document.getElementById("comboDescuentos").value;
             descto=desc.split('%');
             descuento=descto[0];
          cant="cantidadProd_"+i;
          nombre="ingresado_"+i;
          document.getElementById(nombre).checked = true;
         // document.getElementById('busquedaProductos').getElementsByTagName('input')[i].checked=true;

          cantidad=document.getElementById(cant).value;
          pedido=document.getElementById("numeroPedido").value;
          suma=(cantidad*precio);
          cantidadProductos=document.getElementById("cantidadRegistros").value;
          cantProd=parseInt(cantidadProductos,10);
          cantidadSumafinal=parseInt(cantidad,10);
         //descuento aplicado en teoria desde php
          descuentoBase=document.getElementById("descuentoBase").value;
          if (cantidad>0){
             document.getElementById("cantidadRegistros").value=(cantProd+cantidadSumafinal);
             $.ajax({
                     type: 'POST',
                     url: '<?php echo site_url("pedido/registrarDetalle");?>',
                     data: {pedido:pedido,producto:producto, cantidad:cantidad,precio:precio,cliente:cliente,vendedor:vendedor,total:total,subTotal:subTotal,descuento:descuento},
                     success:function(data){
                         respuesta=data.split(';');
                         valorSinDesc=parseFloat(cantidad*precio);
                         valorParcial=(parseFloat(cantidad*precio)-parseFloat(cantidad*precio*descuentoBase/100));
                          $('#totalAlternativo').val(parseFloat(parseFloat(document.getElementById("totalAlternativo").value)+parseFloat(valorParcial.toFixed(2))).toFixed(2));
                          $('#subtotal').val(parseFloat(parseFloat(document.getElementById("subtotal").value)+parseFloat(valorSinDesc.toFixed(2))).toFixed(2));
                          $('#iva').val(parseFloat(parseFloat(document.getElementById("iva").value)+parseFloat(valorParcial.toFixed(2)*0.21)).toFixed(2));
                          $('#totalfinal').val((parseFloat(document.getElementById("totalfinal").value)+parseFloat(valorParcial.toFixed(2)*0.21)+parseFloat(valorParcial.toFixed(2))).toFixed(2));
                          $("#detalleTabla").append("<tr><td><input type='checkbox' name='seleccionar'></td>"+"<td>" + respuesta[0] + "</td><td>" + respuesta[1] + "</td><td>" + cantidad + "</td><td>" +  precio+ "</td><td><input class='btn btn-danger' type='button' name='eliminar' id='eliminar' value='Eliminar' onclick='elinminarRegistro("+respuesta[2]+","+respuesta[3]+")'></td></tr>");
                     }
             });
          }
          else{
                  alert("Debe ingresar un valor mayor a 0 para poder ingresar al carrito");
            }
       }

      function elinminarRegistro(id,cantidad) {

        numeroPedido=document.getElementById("numeroPedido").value;
        subTotal=document.getElementById('subtotal').value;
        total=document.getElementById('totalfinal').value;
        cliente=document.getElementById("id_cliente").value;
        vendedor=document.getElementById("comboVendedor").value;
        desc=document.getElementById("comboDescuentos").value;
         descto=desc.split('%');
         descuento=descto[0];
         cantidadProductos=document.getElementById("cantidadRegistros").value;
         cantProd=parseInt(cantidadProductos,10);
         cantidadSumafinal=parseInt(cantidad,10); 
         cantProd=parseInt(cantidadProductos,10);
         cantidadSumafinal=parseInt(cantidad,10);

          descuentoBase=document.getElementById("descuentoBase").value;
          //tengo que averiguar el registro que estoy borrando de la tabla y de la base de datos
           document.getElementById("cantidadRegistros").value=(cantProd-cantidadSumafinal);
            $.ajax({
                 type: 'POST',
                 url: '<?php echo site_url("pedido/eliminar");?>',
                 data: {id:id,numeroPedido:numeroPedido,cliente:cliente,vendedor:vendedor,total:total,descuento:descuento,subTotal:subTotal},
                 success:function(data){
                     respuesta=data.split(';');
                     valorSinDto=parseFloat(respuesta[0]*respuesta[1]);
                     valorParcial=(parseFloat(respuesta[0]*respuesta[1])-parseFloat(respuesta[0]*respuesta[1]*descuentoBase/100));
                      $('#subtotal').val(parseFloat(parseFloat(document.getElementById("subtotal").value)-parseFloat(valorSinDto.toFixed(2))).toFixed(2));
                      $('#totalAlternativo').val((parseFloat(parseFloat(document.getElementById("totalAlternativo").value))-parseFloat(valorParcial)));
                      $('#iva').val((parseFloat(parseFloat(document.getElementById("iva").value))-parseFloat(valorParcial*0.21)));
                      $('#totalfinal').val((parseFloat(document.getElementById("totalfinal").value)-parseFloat(valorParcial*0.21)-parseFloat(valorParcial)));

                        }
                 });
            // sacar el redirect
             window.location.reload();
        }

         
     function guardarPedido(){
            var r=confirm("Desea guardar el Pedido Creado?");
            if (r == true) {
                numeroPedido=document.getElementById("numeroPedido").value;
                total=document.getElementById('totalfinal').value;
                subtotal=document.getElementById('subtotal').value;
                cliente=document.getElementById("id_cliente").value;
                vendedor=document.getElementById("comboVendedor").value;
                if(total != '0'){
                    if(cliente != ''){
                        if(numeroPedido != ""){
                            location.href='<?php echo base_url()?>pedido/guardarPedido?nroPedido='+numeroPedido+'&total='+total+'&vendedor='+vendedor+'&subTotal='+subtotal;
                        }
                    }
                    else{
                        alert('Ingrese un Cliente');
                        }
                }
                else{
                    alert('Ingrese Productos al pedido');
                    }
            }
        }

       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>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0075 ]--