AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.192
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/www/lrsys_apps/leve/application/plugins/module_hr/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_apps/leve/application/plugins/module_hr/assets/js/list.js
//lpillon - 23/01/2017
$(function(){
    
    // Advanced
	$('#items_per_page').on('change', function(event) {
		event.preventDefault();

		var items = $(this).find('option:selected').val();
		$("input[name=items_per_page]").val(items);

		$('#form-filter').submit();
	});
        
        // Clear
	$('#filter-clear').on('click', function(event) {
		event.preventDefault();
		$("input[name=search]").val('');
		$("input[name=items_per_page]").val('');
		$("input[name=type]").val('');
		$("input[name=function]").val('');
		$("input[name=sector]").val('');
		$('#form-filter').submit();
	});
        
        
        // sector
        $('#filter-sector a').on('click', function(event) {
                event.preventDefault();

                var situation = $(this).data('val');
                $("input[name=sector]").val(situation);

                // coloco o filtro como ativo
                $('#filter-sector li').removeClass('active');
    //            $('#filter-type_aux').html('');
                $(this).parent().addClass('active');

                if(situation != 'all')
                {
                    $('#filter-sector_aux').html('('+$(this).html()+')');
                }


                console.log(situation);
                    $('#form-filter').submit();
        });
        
        
        // Function
        $('#filter-function a').on('click', function(event) {
                event.preventDefault();

                var situation = $(this).data('val');
                $("input[name=function]").val(situation);

                // coloco o filtro como ativo
                $('#filter-function li').removeClass('active');
    //            $('#filter-type_aux').html('');
                $(this).parent().addClass('active');

                if(situation != 'all')
                {
                    $('#filter-function_aux').html('('+$(this).html()+')');
                }


                console.log(situation);
                    $('#form-filter').submit();
        });

//    var pbar = $('#progressbar');
//    var $modal = $('#ajax-modal');
//    var sysrender = $('#application_ajaxrender');
//
//    pbar.hide();
//
//    pbar.progressbar({
//        warningMarker: 100,
//        dangerMarker: 100,
//        maximum: 100,
//        step: 15
//    });
//
//    $("#application_ajaxrender").hide();
//
//    function updateDiv(search=null){
//
//        $('#ibox_form').block({ message: null });
//        $('#progressbar').show();
//
//        var timer = setInterval(function () {
//            pbar.progressbar('stepIt');
//
//        }, 100);
//
//        var btnsearch = $("#search");
//        $('.progress').show();
//        $('.progress .progress-bar').progressbar();
//        var _url = $("#_url").val();
//        $.post(_url + 'module_stock/stock/load_list', {
//            txtsearch: $('#txtsearch').val(),
//            stype: 'Product',
//            search: search
//        })
//        .done(function (data) {
//            setTimeout(function () {
//                var sbutton = $("#search");
//                var result =  $("#tbody");
//                $('.progress').hide();
//                $('#ibox_form').unblock();
//                result.html(data);
//                $("#application_ajaxrender").show();
//            }, 100);
//        });
//    }

});

Anon7 - 2022
AnonSec Team