!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_ml/   drwxr-xr-x
Free 14.83 GB of 61.93 GB (23.95%)
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.56 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
php_referencia
::instancia()->agregar(__FILE__);

class 
extension_formulario extends toba_ei_formulario_ml
{

    function 
extender_objeto_js()
    {
        echo  
"
            /**
             *    Redefine la creación de una fila para agregarle valores por defecto
             */
            
{$this->objeto_js}.crear_fila_orig = {$this->objeto_js}.crear_fila;
            
{$this->objeto_js}.crear_fila = function() {
                //Invoca a la creacion original
                var nueva_fila = this.crear_fila_orig();
                
                //Coloca los valores por defecto
                var hoy = new Date();
                var hoy_texto = hoy.getDate() + '/' + (hoy.getMonth() +1)  + '/' + hoy.getFullYear();
                this.ef('fecha').ir_a_fila(nueva_fila).set_estado(hoy_texto)
                
                return nueva_fila;
            };

            
            /**
            *     Valida que la fecha no sea un lunes
            */            
            
{$this->objeto_js}.evt__fecha__validar = function (fila) {
                var lunes = 1;
                var ef_fecha = this.ef('fecha').ir_a_fila(fila);
                var fecha = ef_fecha.fecha();
                if (fecha != null && fecha.getDay() == lunes) {
                    ef_fecha.set_error('No está permitido ingresar días lunes');
                    return false;
                }
                return true;
            }

            /**
             * Cuando se modifica el valor del importe, recalcula el total
             */
            
{$this->objeto_js}.evt__importe__procesar = function(es_inicial, fila) {
                
{$this->objeto_js}.refrescar_importes(es_inicial, fila);
            }
            
            /**
             * Cuando se modifica el valor del descuento, recalcula el total
             */            
            
{$this->objeto_js}.evt__descuento__procesar = function(es_inicial, fila) {
                
{$this->objeto_js}.refrescar_importes(es_inicial, fila);
            }

            /**
             * Se escucha el checkbox 'con_descuento', cuando esta chequeado habilita el campo descuento
             * Y recalcula los totales
             */
            
{$this->objeto_js}.evt__con_descuento__procesar = function(es_inicial, fila) {
                //¿Puede tener descuento?
                var ef_descuento = this.ef('descuento').ir_a_fila(fila);
                if (this.ef('con_descuento').ir_a_fila(fila).chequeado()) {
                    ef_descuento.activar();
                } else { 
                    ef_descuento.desactivar();
                    ef_descuento.cambiar_valor(0);
                 }
            }
        
            /**
            *     Refresca el importe neto de una fila
            */        
            
{$this->objeto_js}.refrescar_importes = function(es_inicial, fila) {
                var importe = this.ef('importe').ir_a_fila(fila).valor();
                var descuento = this.ef('descuento').ir_a_fila(fila).valor();
                this.ef('neto').ir_a_fila(fila).cambiar_valor(importe - descuento);
            }


            
{$this->objeto_js}.evt__seleccionar_fila = function(fila) {
                    //alert('Voy a seleccionar la fila ' + fila);
            }
        "
;
    }    
    
    

}

?>

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