361
| <![CDATA[<span style="color: #f00;">Selecione acima sua opção de consulta ;</span>]]>
|
381
| <![CDATA[<span style="color: #999; size: 7px;">Repita os caracteres da imagem</span>]]>
|
69
| <![CDATA[<style>
@media screen and (max-width: 600px) {
div.example {
display: none;
}
}
</style>]]>
|
385
| <![CDATA[<input type="button" name="Submit" value="Imprimir" class="btn btn-primary" onclick="validar();" />]]>
|
200
| <![CDATA[<script>
/********************************************************************************************************************/
//Funções a serem carregadas ao abrir a página
window.onload = function () {
if (document.getElementById('cpf') != null) {
definirTipoPesquisa('cpf');
document.getElementById('cpf').checked = true;
} else if (document.getElementById('cnpj') != null) {
definirTipoPesquisa('cnpj');
document.getElementById('cnpj').checked = true;
} else {
definirTipoPesquisa('insc_munic');
document.getElementById('insc_munic').checked = true;
}
listarTipoAlvara(document.getElementById('tipo_inscricao').value);
}
/********************************************************************************************************************/
//Define tipo de pesquisa a ser passado no where do SQL para consulta do Alvará
function definirTipoPesquisa(clicado)
{
document.getElementById('resposta').innerHTML = '';
document.getElementById('resposta').style.display = 'none';
document.getElementById('tipo_clicado').value = clicado;
tipo_codigo = clicado;
switch (clicado)
{
case 'cnpj':
document.getElementById('label_codigo').innerHTML = 'CNPJ';
document.getElementById('tipo_certidao').value = 'P';
document.getElementById('codigo').value = '';
jQuery(function ($) {
$('#codigo').unmask();
$.mask.definitions['~'] = '[+-]';
$('#codigo').mask('99.999.999/9999-99');
});
break;
case 'cpf':
document.getElementById('label_codigo').innerHTML = 'CPF';
document.getElementById('tipo_certidao').value = 'P';
document.getElementById('codigo').value = '';
jQuery(function ($) {
$('#codigo').unmask();
$.mask.definitions['~'] = '[+-]';
$('#codigo').mask('999.999.999-99');
});
break;
case 'insc_munic':
document.getElementById('label_codigo').innerHTML = 'Inscrição (Digitar apenas números)';
document.getElementById('tipo_certidao').value = 'I';//
document.getElementById('codigo').value = '';
jQuery(function ($) {
$('#codigo').unmask();
});
break;
}
}
/********************************************************************************************************************/
function validar()
{
if (tipo_codigo == 'cgc')
{
if (!validaCNPJ(document.getElementById('codigo').value))
{
alert(erro);
return false;
}
} else if (tipo_codigo == 'cpf')
{
if (!validaCPF(document.getElementById('codigo').value))
{
alert(erro);
return false;
}
}
if (document.getElementById('codigo_seguranca').value) {
aguarde();
xajax_listarAlvara(document.getElementById('tipo_alvara').value, document.getElementById('tipo_certidao').value, document.getElementById('tipo_inscricao').value, document.getElementById('codigo').value, document.getElementById('codigo_seguranca').value, document.getElementById('tipo_clicado').value, document.getElementById('alvara_ano_corrente').value);
} else {
BootstrapDialog.alert('Preencha corretamente o campo dos caracteres da imagem!');
}
}
/********************************************************************************************************************/
//Lista tipo de Alvará disponível de acordo com o código tpc selecionado
function listarTipoAlvara(codigo_tpc) {
xajax_listarTipoAlvara(codigo_tpc);
}
/********************************************************************************************************************/
</script>]]>
|
297
| <![CDATA[<script type="text/javascript">
var xajaxRequestUri="https://services.domingosmartins.es.gov.br/services/alvara_retirada.php";
var xajaxDebug=false;
var xajaxStatusMessages=false;
var xajaxWaitCursor=true;
var xajaxDefinedGet=0;
var xajaxDefinedPost=1;
var xajaxLoaded=false;
function xajax_iniciar(){return xajax.call("iniciar", arguments, 1);}
function xajax_listarInscricoes(){return xajax.call("listarInscricoes", arguments, 1);}
function xajax_listarAlvara(){return xajax.call("listarAlvara", arguments, 1);}
function xajax_listarTipoAlvara(){return xajax.call("listarTipoAlvara", arguments, 1);}
</script>]]>
|
311
| <![CDATA[<script type="text/javascript">
window.setTimeout(function () { if (!xajaxLoaded) { alert('Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect?\nURL: syscontrol/classes/ajax/xajax/xajax_js/xajax.js'); } }, 6000);
</script>]]>
|
478
| <![CDATA[<script>
function votar(resposta) {
if (resposta == null) {
alerta('Escolha sua resposta para votar');
return false;
}
aguarde();
$.ajax({
type: 'post',
dataType: 'json',
url: 'enquete_votar.php?acao=votar',
data: {codigo_resposta: resposta},
success: function (response) {
if (response.valid) {
document.getElementById('resultado_votacao').innerHTML = response.resposta
fecha_aguarde();
alerta_ok('Obrigado por ajudar em nossa pesquisa, seu voto foi computado com sucesso!');
} else {
fecha_aguarde();
alerta_erro('Erro ao inserir sua resposta! Tente novamente mais tarde');
}
},
error: function (jqXHR, textStatus, errorThrown) {
fecha_aguarde();
}
});
}
</script>]]>
|