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/hering/application/plugins/module_fleet/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_apps/hering/application/plugins/module_fleet/assets/js/alocation_out.js
/* global bootbox, ib_date_format_picker */

$(document).ready(function () {
    $('.clockpicker').clockpicker({
        donetext: 'Done'

    });

     
    $("#emsg").hide();
    $(".progress").hide();
    var _url = $("#_url").val();
   

    loadVehicle();
    loadEmployee();
    

//////////////////////////////FIM, VEHICLE TYPES

    //select2
    $(".select2").select2({
            theme: "bootstrap"
            });
    //amount para valor numérico        
  //  $('.amount').autoNumeric('init');
    
////////////////////////SUBMIT FORM

    $("#submit").click(function (e) {
        e.preventDefault();
        $('#ibox_form').block({message: null});
        var _url = $("#_url").val();
        var url_post = 'module_fleet/alocation_vehicle/out-post/';
        $.post(_url + url_post, $("#rform").serialize())
                .done(function (data) {
                    setTimeout(function () {
                        var _url = $("#_url").val();
                        if ($.isNumeric(data)) {
                            var body = $("html, body");
                            body.animate({scrollTop: 0}, '1000', 'swing');
                            location.reload();
                        } else {
                            $('#ibox_form').unblock();
                            $("#emsgbody").html(data);
                            $("#emsg").show("slow");
                            var body = $("html, body");
                            body.animate({scrollTop: 0}, '1000', 'swing');
                        }
                    }, 2000);
                });
    });
    

});

function loadVehicle(){
    //carrega os segmentos
    $.getJSON($("#_url").val()+'module_fleet/vehicles/ajax-list/alocation',function (j) {
        options = '<option value="">' +$('#select').val(); + '</option>';
        for (var i = 0; i < j.length; i++) {
            options += '<option value="' + j[i].id + '">'+ j[i].brand +" | "+j[i].model +" | "+j[i].board + '</option>';
        }
        $('#module_fleets_vehicle_id').html(options);
       
    });
}

function loadEmployee(value){
    //carrega os segmentos
    $.getJSON($("#_url").val()+'contacts/ajax-listbygroup/Employee',function (j) {
        options = '<option value="">' +$('#select').val(); + '</option>';
        for (var i = 0; i < j.length; i++) {
            options += '<option value="' + j[i].id + '">'+ j[i].account+ '</option>';
        }
        $('#employee_id').html(options);
       
    });
}

Anon7 - 2022
AnonSec Team