!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/antonellaServer/application/views/   drwxr-xr-x
Free 10.13 GB of 29.4 GB (34.45%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     gestPedido_view.php (8.7 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
 <div id="page-wrapper">
 <div class="container-fluid">
 <div class="row" style="margin-bottom: 15px;">
    <h1 ><?= $titulo ?></h1>
<form method="post"  name="gestionFactura" class="form-horizontal">
<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">
          Datos Cliente
        </a>
      </h4>
    </div>
    <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
      <div class="panel-body">

      <div>    
           <input class="form-control input-sm" type="hidden" name="idCliente" id="idCliente" value="<?php  echo ($datosCliente->id)?>" readonly>
   <div class="estiloForm col-md-12">
             <div class="col-md-6">
             <b>Nombre:</b>&nbsp;<input class="form-control input-sm" type="text" name="nombre" id="nombre" value="<?php  echo ($datosCliente->nombre)?>" readonly>


         <b>Mail:</b>&nbsp;<input class="form-control input-sm" type="text" name="mail" id="mail" value="<?php  echo ($datosCliente->mail)?>" readonly>

        <b>Direccion:</b>&nbsp;<input class="form-control input-sm " type="text" name="DireccionCliente" id="DireccionCliente" value="<?php  echo ($datosCliente->direccion)?>" readonly>
    </div>
        <div class="col-md-6">
                      <b>Localidad:</b>&nbsp;<input class="form-control input-sm" type="text" name="localidad" id="localidad" value="<?php  echo ($datosCliente->localidad)?>" readonly>

 
        <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>


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

        </div>


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

  </div>

</div>

    
        
    <!--  <button type="button" class="btn btn-success btn-large" data-toggle="modal" data-target="#listaProd" >Agregar Producto</button> -->
<br>
           <div class="col-md-12" align="right">
                   <input class="btn btn-success btn-large" type="button" name="pedidopdf" id="pedidopdf" value="IMPRIMIR A PDF" onclick="enviarPDF();">
           </div>

<input type="hidden" name="numeroPedido" id="numeroPedido" value="<?php  echo ($datosPedido->id_pedido)?>" > </input>
        <h1>PEDIDO CARGADO</h1>
        <div id="tablaPrincipal" width="60%">
            
            <?php
            $array
=array();
            
$totalNeto=0;

            
$this->table->set_heading('Chequeo','Producto''Descripcion''Cantidad','Precio'); //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);
            
$iva=0;
            
$total=0;
            
$detallesPedido=$this->consultas_model->getDetallesPedidoById($datosPedido->id_pedido);
            if(
$detallesPedido !=null){
                  foreach(
$detallesPedido as $file):
                    
$this->table->add_row('<input type="checkbox" name="seleccionar">',$file->nombre,$file->descripcion,$file->cantidad,$file->precio); //agregamos la celda a la tabla por cada iteracion
                    
$totalNeto +=($file->cantidad*$file->precio);
                  endforeach;
            }
            
$iva =round($totalNeto*0.21,2);
            
$total=round($totalNeto+$iva);
            echo 
$this->table->generate();
            
?>
           </div>
          
  
           <div class="col-md-12" align="right">
             <label><b>Total:    </b></label><input type="text" name="totalDefinitivo" id="totalDefinitivo" value="<?php echo ($totalNeto);?>"readonly> 
             <br><br>
             
             <br>

               <br> <br>  <br> 
               
   </div>

               <br><br> 

        <br>      
           <br>  <br>
           <div class="col-md-12" align="center">
           <input class="btn btn-large" type="button" value="Volver" onclick="volver();">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

               </div>
    
    </form>
   </div>
   </div>
    <script type="text/javascript">
     function aplicarDescuento(descuento){
         descuento1=descuento.split('%');
         valor=document.getElementById("totalDefinitivo").value;
         descuentoFinal=parseInt(descuento1);
         descuentoF=descuentoFinal*valor*0.01;
         valorFinal=(valor-descuentoF);
         $('#totalDefinitivo').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));

     }
    
     function borrarPedido(){
            nroPedido=document.getElementById("numeroPedido").value;
            $.ajax({
               type: 'POST',
               url: '<?= base_url("pedido/deletePedido")?>',
               data: {nroPedido:nroPedido},
               success: function(data){
                   location.href='<?php echo base_url()?>pedido/index';
               }
            });
        
         }
     
    function regPago(){
        nroPedido=document.getElementById("numeroPedido").value;
        $.ajax({
           type: 'POST',
           url: '<?= base_url("pedido/registrarPago")?>',
           data: {nroPedido:nroPedido},
           success: function(data){
               location.href='<?php echo base_url()?>pedido/index';
           }
        });
    
     }
    function volver(){
    
          location.href='<?php echo base_url()?>pedido/index';
    }



      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){
                    //sacar de la table el registro qeu me pasan por id
                 }
                 });
            // sacar el redirect
            window.location.reload();
        }
    
    
      function elinminarRegistro(producto) {
          nroPedido=document.getElementById('numeroPedido').value;
          //tengo que averiguar el registro que estoy borrando de la tabla y de la base de datos
            $.ajax({
                 type: 'POST',
                 url: '<?php echo site_url("pedido/eliminar");?>',
                 data: {producto:producto,nroPedido:nroPedido},
                 success:function(data){
                    //sacar de la table el registro qeu me pasan por id
                 }
                 });
            // sacar el redirect
            window.location.reload();
        }

        
      function buscar_op(obj,cadena){ 
          var puntero=cadena.length; 
          var encontrado=false; 
          var opcombo=0; 
             while (!encontrado && (opcombo < obj.length)){ 
               if(obj[opcombo].text.substr(0,puntero).toLowerCase()==cadena.toLowerCase()){ 
                  obj.selectedIndex=opcombo; 
                  encontrado=true; 
                  llenarPrecio();
                  }else{ 
                   opcombo++; 
                } 
             } 
       } 

     function enviarPDF(){
            numeroPedido=document.getElementById('numeroPedido').value;
            nroCliente=document.getElementById('idCliente').value;
            location.href='<?php echo base_url()?>pedido/enviarPedidoPDF?id_pedido='+numeroPedido+'&nroCliente='+nroCliente;
      }

       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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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