!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_tdfonline/proyectos/tdfonline/php/ci/   drwxr-xr-x
Free 14.78 GB of 61.93 GB (23.87%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ci_encuestas.php (5.21 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class ci_encuestas extends tdfonline_ci
{
    
//-----------------------------------------------------------------------------------
    //---- Configuraciones --------------------------------------------------------------
    //-----------------------------------------------------------------------------------

    
protected $s__datos_filtro;

    function 
conf()
    {
        
$this->pantalla()->tab('pant_edicion')->ocultar();
    }

    
//-----------------------------------------------------------------------------------
    //---- cuadro -----------------------------------------------------------------------
    //-----------------------------------------------------------------------------------

    
function conf__cuadro(tdfonline_ei_cuadro $cuadro)
    {
          if (isset(
$this->s__datos_filtro)) {
                                
//ei_arbol($this->s__datos_filtro);
                                
$datos $this->dep('datos')->tabla('encuesta')->get_listado($this->s__datos_filtro);
                        }else{
                                
$datos $this->dep('datos')->tabla('encuesta')->get_listado();
                        }

                        
$cuadro->set_datos($datos);   
    }

    function 
evt__cuadro__seleccion($datos)
    {
        
         
$this->dep('datos')->cargar($datos);
         
$this->set_pantalla('pant_edicion');
    }
    
    
//-----------------------------------------------------------------------------------
    //---- encabezado -------------------------------------------------------------------
    //-----------------------------------------------------------------------------------

    
function conf__encabezado(tdfonline_ei_formulario $form)
    {
        if (
$this->dep('datos')->esta_cargada()) {//Entran a modificar
                                    
                
$datos $this->dep('datos')->tabla('encuesta')->get();
                
$form->set_datos($datos);
                
        }else{
//Entran a dar alta
                
                
return $this->dep('datos')->tabla('encuesta')->get();
        }
    }

    function 
evt__encabezado__modificacion($datos)
    {
         
$datos['usuario_alta']=toba::usuario()->get_id();
         
$datos['fecha_alta']=date("Y-m-d"); 
         
$s__idencuesta=$datos['id_encuesta'];
         
$this->dep('datos')->tabla('encuesta')->set($datos);   
    }

    
//-----------------------------------------------------------------------------------
    //---- detalle ----------------------------------------------------------------------
    //-----------------------------------------------------------------------------------

    
function conf__detalle(tdfonline_ei_formulario_ml $form_ml)
    {
        if (
$this->dep('datos')->esta_cargada()) {//Entran a modificar
                                    
                
$datos $this->dep('datos')->tabla('detalle_encuesta')->get_filas(nulltrue);
                
                
$form_ml->set_datos($datos);                                
                
        }else {
//Entran a dar alta
                
                
return $this->dep('datos')->tabla('detalle_encuesta')->get_filas(nulltrue);
        }
    }

    function 
evt__detalle__modificacion($datos)
    {
       
//$datos['id_encuesta']=$s__idencuesta;
       
$this->dep('datos')->tabla('detalle_encuesta')->procesar_filas($datos);
    }


    
//-----------------------------------------------------------------------------------
    //---- filtro_grafico ---------------------------------------------------------------
    //-----------------------------------------------------------------------------------
  

    
function conf__filtro_grafico(tdfonline_ei_formulario $filtro)
    {
       if (isset(
$this->s__datos_filtro)) {
            
$filtro->set_datos($this->s__datos_filtro);
       }
    }

    function 
evt__filtro_grafico__filtrar($datos)
    {
       
$this->s__datos_filtro $datos;
    }

    function 
evt__filtro_grafico__cancelar()
    {
       unset(
$this->s__filtro);
    }

    
//-----------------------------------------------------------------------------------
    //---- grafico ----------------------------------------------------------------------
    //-----------------------------------------------------------------------------------

    
function conf__grafico(tdfonline_ei_cuadro $cuadro)
    {
        if (isset(
$this->s__datos_filtro)){ 

        
$datos[0]['html']=$this->dep('datos')->tabla('encuesta')->get_grafico_cantidad($this->s__datos_filtro['id_encuesta']);
        
$datos[0]['html'].='<div id="chart_div" ></div>';
        
$cuadro->set_datos($datos);
         }
        
    }

    function 
resetear()
    {
        
$this->dep('datos')->resetear();
        
$this->set_pantalla('pant_seleccion');
    }

    
//-----Eventos ci----------------------------------------------------------------------------------------------
    
function evt__agregar()
    {

        
//-----------------------
        
$this->set_pantalla('pant_edicion');
    }
    
    function 
evt__volver()
    {
        
$this->resetear();
    }
    
    function 
evt__eliminar()
    {
        
$this->dep('datos')->eliminar_todo();
        
$this->resetear();
    }
    
    function 
evt__guardar()
    {
        
$this->dep('datos')->sincronizar();          
        
$this->set_pantalla('pant_seleccion');
        
$this->resetear();                          
    }


}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.8445 ]--