| Server IP : 20.75.53.88 / Your IP : 216.73.217.138 [ 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/form/analises/ |
Upload File : |
function excluirCert(cert, id) {
$.ajax({
url: './form/analises/ajax.php?a=excluir_cert',
method: "GET",
data: {
setCod_certidao: cert,
setCod_analise: id
},
success: function (data) {
// $('#recebe').html(data);
//alert(data);
location.reload();
}
})
}
function excluirDoc(doc, id) {
$.ajax({
url: './form/analises/ajax.php?a=excluir_doc',
method: "GET",
data: {
setCod_dcumento: doc,
setCod_analise: id
},
success: function (data) {
// $('#recebe').html(data);
//alert(data);
location.reload();
}
})
}
function habilitar() {
if ($("#regular").is(":checked")) {
setCheck();
} else {
removCheck();
}
}
function removCheck() {
$("#fielddados").removeAttr('disabled');
}
function setCheck() {
var b = document.querySelector("fieldset");
b.setAttribute("disabled", "disabled");
}
function myFunction() {
document.getElementById("myForm").reset();
}
function CheckAll() {
if ($("#todos").is(":checked")) {
marcardesmarcar(true);
} else {
marcardesmarcar(false);
}
}
function marcardesmarcar(bool) {
$('.campo').each(
function () {
$(this).prop("checked", bool);
}
);
}
function CheckAll2() {
if ($("#todos2").is(":checked")) {
marcardesmarcar2(true);
} else {
marcardesmarcar2(false);
}
}
function marcardesmarcar2(bool) {
$('.campo2').each(
function () {
$(this).prop("checked", bool);
}
);
}
function Check(id) {
if ($("#todo" + id).is(":checked")) {
marcar(id, true);
} else {
marcar(id, false);
}
}
function marcar(id, bool) {
$("#doc" + id).each(
function () {
$(this).prop("checked", bool);
}
);
}
function Check1(id) {
if ($("#tod" + id).is(":checked")) {
marcar1(id, true);
} else {
marcar1(id, false);
}
}
function marcar1(id, bool) {
$("#cert" + id).each(
function () {
$(this).prop("checked", bool);
}
);
}
function regular() {
}
$(function () {
$(".money").maskMoney({
symbol: '',
showSymbol: true, thousands: '', decimal: '.', symbolStay: true
});
});
document.onkeyup = function () {
var evt = window.event;
if (evt.ctrlKey && evt.keyCode == 66) {
if (confirm("DESEJA REALMENTE SALVAR!?")) {
document.getElementById('analiseadd').submit();
} else {
return false;
}
}
if (evt.ctrlKey && evt.keyCode == 8) {
if (confirm("DESEJA REALMENTE VOLTAR!?\n'SEUS DADOS SERAO PERDIDOS'")) {
history.go(-1)
} else {
return false;
}
}
};
function isButton(i) {
data = "<button class=\"btn btn-info\" onclick=\"history.go(-1)\"><i class=\"fa fa-reply\"></i> VOLTAR </button> " +
" <button class=\"btn btn-danger\" type=\"submit\"><i class=\"fa fa-save\"></i> SALVAR</button>";
if (i == 1) {
$('#button_analise').html(data);
}else{
$('#button_analise').html('');
}
}