| Server IP : 20.75.53.88 / Your IP : 216.73.217.72 [ Web Server : Apache System : Linux VMRALP-3 4.4.0-256-generic #290~14.04.1-Ubuntu SMP Thu Jun 20 09:24:50 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29+esm15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Domains : 3 Domains MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/apitce/dev/js/ |
Upload File : |
$(document).ready(function () {
$('.dtabelas').DataTable(
{
"oLanguage": {
"sProcessing": "Processando...",
"sLengthMenu": "Mostrar _MENU_ registros",
"sZeroRecords": "Não foram encontrados resultados",
"sInfo": "Mostrando de _START_ até _END_ de _TOTAL_ registros",
"sInfoEmpty": "Mostrando de 0 até 0 de 0 registros",
"sInfoFiltered": "(filtrado de _MAX_ registros no total)",
"sInfoPostFix": "",
"sSearch": "Buscar:",
"sUrl": "",
"oPaginate": {
"sFirst": "Primeiro",
"sPrevious": "Anterior",
"sNext": "Seguinte",
"sLast": "Último"
}
}//,paging:false, bLengthChange:false, info:false, bFilter: false
});
//$('.celular').mask("(99)99999-9999");
});
$(document).ready(function() {
$('#example').DataTable( {
dom: 'Bfrtip',
buttons: [
{
extend: 'copyHtml5',
text: '<i class="fa fa-files-o"></i>',
titleAttr: 'Copy'
},
{
extend: 'excelHtml5',
text: '<i class="fa fa-file-excel-o"></i>',
titleAttr: 'Excel'
},
{
extend: 'csvHtml5',
text: '<i class="fa fa-file-text-o"></i>',
titleAttr: 'CSV'
},
{
extend: 'pdfHtml5',
text: '<i class="fa fa-file-pdf-o"></i>',
titleAttr: 'PDF'
}
]
} );
} );
function deletar(tabela, valor) {
var r = confirm("Deseja Realmente excluir?");
if (r == true) {
$.ajax({
type: "GET",
url: './ajax.php?a=deletar&valor=' + valor + '&tabela=' + tabela,
dataType: "html",
success: function (resultado) {
//alert(resultado);
location.reload();
}
});
} else {
alert('Cancelado com sucesso');
}
}
function combo(id, acao, valor) {
$.ajax({
type: "GET",
url: './ajax.php?a=' + acao + '&valor=' + valor,
dataType: "html",
success: function (resultado) {
//alert(resultado);
$('#' + id).html(resultado);
}
});
}
function ComboTresValores(id, acao, valor, valor2, valor3) {
$.ajax({
type: "GET",
url: './ajax.php?a=' + acao + '&valor=' + valor + '&valor2=' + valor2 + '&valor3=' + valor3,
dataType: "html",
success: function (resultado) {
// alert(resultado);
$('#' + id).html(resultado);
}
});
}
function NovaJanela(pagina, nome, w, h, scroll) {
LeftPosition = (screen.width) ? (screen.width - w) / 2 : 0;
TopPosition = (screen.height) ? (screen.height - h) / 2 : 0;
settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',resizable'
win = window.open(pagina, nome, settings);
}
function timedRefresh() {
setTimeout("location.reload(true); window.close();", 0001);
}
function formatavalor(val) {
var valor = new String(val);
if (val.length > 2){
var tam = (val.length - 2);
var dec = new String(valor.substr(tam,2));
var int = new String(valor.substr(0,tam-1));
vlrint = int.replace(/\./g,'','');
var newval = vlrint + '.'+ dec;
return newval;
}else
return val;
}
function trocarEexMun(exercicio, municipio) {
$.ajax({
url: './form/inicio/ajax.php?a=trocarEexMun',
method: "GET",
data: {
exercicio: exercicio,
municipio : municipio
},
success: function (data) {
//$('#elemento').html(data);
// document.getElementById('elemento').className = 'selectpicker';
//console.log(data);
location.reload();
}
});
}