144
| <![CDATA[<img class="hidden-xs hidden-sm pull-left" style="height: 45px; padding: 0; margin-right: 5px;" src="//siapegov.pindamonhangaba.sp.gov.br/pmpinda/websis/_images/siapegov//cabecalhos/brasao.pmpinda.jpg" border="0" />]]>
|
165
| <![CDATA[<input type="text" id="inscricao" name="inscricao" style="max-width: 100%;" maxlength="24" size="32" autofocus="" required>]]>
|
171
| <![CDATA[<input type="text" required name="cpf_cnpj" id="cpf_cnpj" style="max-width: 100%;" size="32" maxlength="19" placeholder="Digite seu CPF ou CNPJ" required>]]>
|
196
| <![CDATA[<img src="//siapegov.pindamonhangaba.sp.gov.br/pmpinda/websis/captcha/images/5a79d51163e9ec82ef83142db83cc516.png" style="margin-top: 10px" class=" no-padding-right" />]]>
|
206
| <![CDATA[<div class='btn-group btn-group-sm' role='group' style="margin-top: 2px">
<input type='button' name='ok' value='Consultar' id='btn_iptu_consulta_pagamentos' class='btn btn-primary'>
</div>]]>
|
209
| <![CDATA[<div class="clearfix" style="margin-bottom: 30px">
</div>]]>
|
42
| <![CDATA[<script type="text/javascript">
window.jQuery || document.write("<script src='//siapegov.pindamonhangaba.sp.gov.br/websis/../siap-lib/ace13/assets/js/jquery.min.js'>" + "<" + "/script>");
</script>]]>
|
66
| <![CDATA[<script type="text/javascript">
//Load content via ajax
var settings = {
WEBSIS_LIB_URL: '//siapegov.pindamonhangaba.sp.gov.br/websis/../siap-lib/',
WEBSIS_URL: '//siapegov.pindamonhangaba.sp.gov.br/pmpinda/websis/'
};
function MM_openBrWindow(theURL, winName = "Prefeitura Municipal de Pindamonhangaba", larg) { //v3.0
if ($('#modal').length == 0) {
$('.page-content').append("<div id='modal' class='modal' tabindex='-1' aria-labelledby='myModalLabel' aria-hidden='false'><div class='modal-dialog'><div class='modal-content'><div class='modal-header'><button type='button' class='close' data-dismiss='modal' aria-hidden='true'>�</button><h4 class='modal-title text-center' id='myModalLabel'>" + winName + "</h4></div><div id='printSection' class='modal-body'></div><div class='modal-footer no-margin hidden-xs'><button type='button' class='btn btn-default' data-dismiss='modal'>Fechar</button><button class='btn btn-info' aria-hidden='true' id='imprimeModal'><i class='fa fa-print'></i> Imprimir</button></div></div></div></div>");
}
spin = "<div class='text-center'><i class='ace-icon fa fa-circle-o-notch fa-spin blue bigger-250'></i></div>";
$('#modal .modal-body').html(spin);
$('#modal').modal('show');
$.ajax({
type: 'get',
url: theURL,
beforeSend: function( xhr ) {
xhr.overrideMimeType( "text/plain; charset=ISO-8859-1" ); },
success: function(conteudo){
$('#modal .modal-body').html(conteudo);
$('#modal .modal-dialog').css('width', '95%');
$('#modal .modal-body').css('max-height', function () {
return String(($(window).height()) - 200) + 'px';
});
$('#modal .modal-body').css('overflow', 'auto');
}
});
$("#imprimeModal").off();
$("#imprimeModal").on("click", function(){
PrintContent("printSection");
});
}
function PrintContent(div_to_print,css = null) {
if (css === null) {
var css1 = "<link rel='stylesheet' type='text/css' href='"+settings.WEBSIS_LIB_URL+"siap-lib/ace-template/assets/css/bootstrap.min.css' media='all'>\n";
var css2 = "<link rel='stylesheet' type='text/css' href='"+settings.WEBSIS_URL+"_css/egov/print.css' media='all'>\n";
var css = css1 + css2;
}
var DocumentContainer = document.getElementById(div_to_print);
var UniqueName = new Date();
var WindowObject = window.open("", "PrintWindow" + UniqueName.getTime(), "width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes");
WindowObject.document.writeln("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html lang=\"en\">\n<head>\n" + css + "</head>\n<body>\n" + DocumentContainer.innerHTML.replace("", "") + "\n</body>\n</html>");
WindowObject.document.close();
WindowObject.focus();
setTimeout(function() {
WindowObject.print()
setTimeout(function() {
WindowObject.close()
}, 1000);
}, 1000);
}
$.ajaxSetup({ // Força os scripts a serem carregados com o encoding ISO-8859-1 (padrão dos fontes do Siap e-Gov), evitando assim, problemas de acentuação.
beforeSend: function(jqXHR) {
jqXHR.overrideMimeType('application/x-www-form-urlencoded; charset=ISO-8859-1');
}
});
</script>]]>
|
222
| <![CDATA[<script>
$("#btn_iptu_consulta_pagamentos").on('click', function() {
let input = $(".input_iptu_consulta_pagamento_captcha").val()
if (input.length >= 4) {
id = $("#captcha_val").val();
console.log(input, id);
$.ajax({
type: "post",
url: "../2via/valida_captcha.php",
data: {
captcha: {
input,
id
}
},
dataType: "json",
success: function(response) {
if (response.success) {
if (response.valido) {
$("#form_iptu_consulta_pagamentos").submit();
} else {
alert('Captcha inválido')
location.reload(true);
}
} else {
alert('erro!');
}
}
});
} else {
alert('Preencha o Captcha')
}
})
window.onload = function() {
// verifica se a página foi acessada pela primeira vez ou se o usuário está retornando de uma página anterior
if (performance.navigation.type == 2) {
// recarrega a página
location.reload(true);
}
}
</script>]]>
|