| Server IP : 23.254.227.96 / Your IP : 216.73.216.183 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/cwpsrv/var/services/users/cwp_theme/original/js/modules2/ |
Upload File : |
$("#domain_stats").change(function () {
if($("#domain_stats").val()!=''){
$("#frecuen").attr('disabled',false);
$("#file").attr('disabled',true);
$("#frecuen").removeClass('disabled');
$("#file").html('');
$("#file").addClass('disabled');
}else{
$("#frecuen").attr('disabled',true);
$("#file").attr('disabled',true);
$("#frecuen").addClass('disabled');
$("#file").html('');
$("#file").addClass('disabled');
}
});
$("#frecuen").change(function () {
if($("#frecuen").val()!=''){
$("#file").html('<option>loading...!</option>');
$.ajaxSetup({ headers: { 'csrftoken' : '{{ tokenajax }}' } });
$.ajax({
type: "POST",
url: "./{{users}}/index.php?module=statistics&acc=files",
data:"domain="+$("#domain_stats").val()+"&frecuen="+$("#frecuen").val(),
complete: function(datos){
console.log(datos.responseText);
if(datos.responseText==0){
$("#file").html('');
noti_bubble('{{langmod.SLABEL12}}','{{langmod.SLABEL11}}','error',false,false,'3000',true);
}else{
$("#file").html(datos.responseText);
$("#file").attr('disabled',false);
$("#file").removeClass('disabled');
}
return false;
}
});
}else{
$("#file").attr('disabled',true);
$("#file").html('');
$("#file").addClass('disabled');
}
});
$("#file").change(function () {
if($("#file").val()!=''){
$("#btn-generate").removeClass('disabled');
$("#btn-generate").attr('disabled',false);
}else{
$("#btn-generate").addClass('disabled');
$("#btn-generate").attr('disabled',true);
}
});
$("#btn-generate").click(function () {
window.open('?module=statistics&view=1&domain='+$("#domain_stats").val()+'&frecuen='+$("#frecuen").val()+'&file='+$("#file").val(), 'Nombre Ventana','_blank');
});