Logo CEWEB.br Logo NIC.br Logo CGI.br
Home Sobre o projeto

Sites Atualizados

Lista dos novos sites adicionados a plataforma na última atualização

Recomendações Avaliadas
1.1 Respeitar os Padrões Web.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
1.1.3 Presença de CSS(s) in-line 1 93
1.1.4 Presença de CSS(s) interno 1 72
1.1.6 Presença de javascript(s) interno 7 19 29 86 153 163 386 548
93 <![CDATA[<div id="la1" style="position:absolute; left:300px; top:100px; width:376px; height:148px; z-index:1; background-color: #CCCCCC; layer-background-color: #0066cc; border: 0px none #000000; visibility: hidden;"> <table width="384" height="209" border="0"> <tr> <td height="123"> <div align="center"> <iframe name="ifrm" src="./alertar.php" height="200" width="380" ></iframe> </div> </td> </tr> <tr> <td height="10"> <div align="right"> <input type="button" name="Submit" value="Fechar" onClick="javascript:document.getElementById('la1').style.visibility='hidden';"> </div> </td> </tr> </table> </div>]]>
72 <![CDATA[<style> .controle { color: #000000; font-size: 10px; font-family: Verdana; background-color: #ffffff } </style>]]>
19 <![CDATA[<SCRIPT> function janela(local,tamanho,altura) { jan1=window.open(local,'janela1','scrollbars=yes,status=yes,resizable=yes,location=no,toolbar=no,width=400,height=200') } function rel(local) { jan1=window.open(local,'recibo','scrollbars=yes,status=yes,resizable=yes,location=no,toolbar=no,width=680,height=550') } </SCRIPT>]]>
29 <![CDATA[<script> function aviso() { if (document.getElementById('la1').style.visibility=='hidden') { document.getElementById('la1').style.visibility='visible';} else { document.getElementById('la1').style.visibility='hidden'; } } </script>]]>
86 <![CDATA[<script> function alertas() { } </script>]]>
153 <![CDATA[<script> function validaent_nome(){ if (document.formmtc_entidade.ent_nome.value==""){ alert("O preenchimento do campo << Nome >> é obrigatório!"); document.formmtc_entidade.ent_nome.focus(); return(false); } else {return true;} } </script>]]>
163 <![CDATA[<script> function validacnpj(){ if(VerifyCNPJ(document.formmtc_entidade.ent_cnpj.value) == 1) {ok=true;} else {alert("CNPJ não é válido!");document.formmtc_entidade.ent_nome.focus();return false;} return; if(ok) {return true;} } function valida_cpf(){ if (document.formmtc_entidade.ent_cpf_dirigente.value=="") {return true;} var i; s = document.formmtc_entidade.ent_cpf_dirigente.value; s = s.replace( ".", "" ); s = s.replace( ".", "" ); s = s.replace( "-", "" ); var c = s.substr(0,9); var dv = s.substr(9,2); var d1 = 0; for (i = 0; i < 9; i++) { d1 += c.charAt(i)*(10-i); } if (d1 == 0) { alert("CPF Invalido") document.formmtc_entidade.ent_cpf_dirigente.focus(); return false; } d1 = 11 - (d1 % 11); if (d1 > 9) d1 = 0; if (dv.charAt(0) != d1) { document.formmtc_entidade.ent_cpf_dirigente.focus(); alert("CPF Invalido") return false; } d1 *= 2; for (i = 0; i < 9; i++) { d1 += c.charAt(i)*(11-i); } d1 = 11 - (d1 % 11); if (d1 > 9) d1 = 0; if (dv.charAt(1) != d1) { document.formmtc_entidade.ent_ent_cpf_dirigente.focus(); alert("CPF Invalido") return false; } } function FormataCpf(campo,tammax,teclapres) { var tecla = teclapres.keyCode; vr = event.srcElement.value; vr = vr.replace( "/", "" ); vr = vr.replace( "/", "" ); vr = vr.replace( ",", "" ); vr = vr.replace( ".", "" ); vr = vr.replace( ".", "" ); vr = vr.replace( ".", "" ); vr = vr.replace( ".", "" ); vr = vr.replace( "-", "" ); vr = vr.replace( "-", "" ); vr = vr.replace( "-", "" ); vr = vr.replace( "-", "" ); vr = vr.replace( "-", "" ); tam = vr.length; if (tam < tammax && tecla != 8){ tam = vr.length + 1 ; } if (tecla == 8 ){ tam = tam - 1 ; } if ( tecla == 8 || tecla >= 48 && tecla <= 57 || tecla >= 96 && tecla <= 105 ){ if ( tam <= 2 ){ event.srcElement.value = vr ; } if ( (tam > 2) && (tam <= 5) ){ event.srcElement.value = vr.substr( 0, tam - 2 ) + '-' + vr.substr( tam - 2, tam ) ; } if ( (tam >= 6) && (tam <= 8) ){ event.srcElement.value = vr.substr( 0, tam - 5 ) + '.' + vr.substr( tam - 5, 3 ) + '-' + vr.substr( tam - 2, tam ) ; } if ( (tam >= 9) && (tam <= 11) ){ event.srcElement.value = vr.substr( 0, tam - 8 ) + '.' + vr.substr( tam - 8, 3 ) + '.' + vr.substr( tam - 5, 3 ) + '-' + vr.substr( tam - 2, tam ) ; } if ( (tam >= 12) && (tam <= 14) ){ event.srcElement.value = vr.substr( 0, tam - 11 ) + '.' + vr.substr( tam - 11, 3 ) + '.' + vr.substr( tam - 8, 3 ) + '.' + vr.substr( tam - 5, 3 ) + '-' + vr.substr( tam - 2, tam ) ; } if ( (tam >= 15) && (tam <= 17) ){ event.srcElement.value = vr.substr( 0, tam - 14 ) + '.' + vr.substr( tam - 14, 3 ) + '.' + vr.substr( tam - 11, 3 ) + '.' + vr.substr( tam - 8, 3 ) + '.' + vr.substr( tam - 5, 3 ) + '-' + vr.substr( tam - 2, tam ) ;} } } function isNUMB(c) { if((cx=c.indexOf(","))!=-1) {c = c.substring(0,cx)+"."+c.substring(cx+1);} if((parseFloat(c) / c != 1)) { if(parseFloat(c) * c == 0) {return(1);} else {return(0);} } else {return(1);} } function LIMP(c) { while((cx=c.indexOf("-"))!=-1) {c = c.substring(0,cx)+c.substring(cx+1);} while((cx=c.indexOf("/"))!=-1) {c = c.substring(0,cx)+c.substring(cx+1);} while((cx=c.indexOf(","))!=-1) {c = c.substring(0,cx)+c.substring(cx+1);} while((cx=c.indexOf("."))!=-1) {c = c.substring(0,cx)+c.substring(cx+1);} while((cx=c.indexOf("("))!=-1) {c = c.substring(0,cx)+c.substring(cx+1);} while((cx=c.indexOf(")"))!=-1) {c = c.substring(0,cx)+c.substring(cx+1);} while((cx=c.indexOf(" "))!=-1) {c = c.substring(0,cx)+c.substring(cx+1);} return(c); } function VerifyCNPJ(CNPJ) { CNPJ = LIMP(CNPJ); if(isNUMB(CNPJ) != 1) {return(0);} else { if(CNPJ == 0) {return(0);} else { g=CNPJ.length-2; if(RealTestaCNPJ(CNPJ,g) == 1) { g=CNPJ.length-1; if(RealTestaCNPJ(CNPJ,g) == 1) {return(1);} else {return(0);} } else {return(0);} } } } function RealTestaCNPJ(CNPJ,g) { var VerCNPJ=0; var ind=2; var tam; for(f=g;f>0;f--) { VerCNPJ+=parseInt(CNPJ.charAt(f-1))*ind; if(ind>8) {ind=2;} else {ind++;} } VerCNPJ%=11; if(VerCNPJ==0 || VerCNPJ==1) {VerCNPJ=0;} else {VerCNPJ=11-VerCNPJ;} if(VerCNPJ!=parseInt(CNPJ.charAt(g))) {return(0);} else {return(1);} } function FormataCGC(Formulario, Campo, TeclaPres) { var tecla = TeclaPres.keyCode; var strCampo; var vr; var tam; var TamanhoMaximo = 14; eval("strCampo = document." + Formulario + "." + Campo); vr = strCampo.value; vr = vr.replace("/", ""); vr = vr.replace("/", ""); vr = vr.replace("/", ""); vr = vr.replace(",", ""); vr = vr.replace(".", ""); vr = vr.replace(".", ""); vr = vr.replace(".", ""); vr = vr.replace(".", ""); vr = vr.replace(".", ""); vr = vr.replace(".", ""); vr = vr.replace(".", ""); vr = vr.replace("-", ""); vr = vr.replace("-", ""); vr = vr.replace("-", ""); vr = vr.replace("-", ""); vr = vr.replace("-", ""); tam = vr.length; if (tam < TamanhoMaximo && tecla != 8) {tam = vr.length + 1;} if (tecla == 8) {tam = tam - 1;} if (tecla == 8 || tecla >= 48 && tecla <= 57 || tecla >= 96 && tecla <= 105) { if (tam <= 2) {strCampo.value = vr;} if ((tam > 2) && (tam <= 6)) {strCampo.value = vr.substr(0, tam - 2) + '-' + vr.substr(tam - 2, tam);} if ((tam >= 7) && (tam <= 9)) {strCampo.value = vr.substr(0, tam - 6) + '/' + vr.substr(tam - 6, 4) + '-' + vr.substr(tam - 2, tam);} if ((tam >= 10) && (tam <= 12)) {strCampo.value = vr.substr(0, tam - 9) + '.' + vr.substr(tam - 9, 3) + '/' + vr.substr(tam - 6, 4) + '-' + vr.substr(tam - 2, tam);} if ((tam >= 13) && (tam <= 14)) {strCampo.value = vr.substr(0, tam - 12) + '.' + vr.substr(tam - 12, 3) + '.' + vr.substr(tam - 9, 3) + '/' + vr.substr(tam - 6, 4) + '-' + vr.substr(tam - 2, tam);} if ((tam >= 15) && (tam <= 17)) {strCampo.value = vr.substr(0, tam - 14) + '.' + vr.substr(tam - 14, 3) + '.' + vr.substr(tam - 11, 3) + '.' + vr.substr(tam - 8, 3) + '.' + vr.substr(tam - 5, 3) + '-' + vr.substr(tam - 2, tam);} } } </script>]]>
386 <![CDATA[<script> var cpf = 0; </script>]]>
548 <![CDATA[<script> function valida_cpf_cnpj() { var vali = document.formmtc_entidade.ent_cnpj.value; ok=1; if ( vali.charAt( 11 ) == '-') { if ( vali.charAt( 3 ) == '.') { if ( vali.charAt( 7 ) == '.') { ok=0; // alert(document.formmtc_entidade.ent_cpf_dirigente.value); document.formmtc_entidade.ent_cpf_dirigente.value = vali; document.formmtc_entidade.ent_nome_dirigente.value = document.formmtc_entidade.ent_nome.value } } } if (ok==0) { document.formmtc_entidade.validado_cpf_cnpj.value=1; cpf=1; } else { document.formmtc_entidade.validado_cpf_cnpj.value=0; cpf=0; } document.formmtc_entidade.submit(); } function trf1(oque) { if (document.formmtc_entidade.validado_cpf_cnpj.value == '1') { document.formmtc_entidade.ent_endereco_dirigente.value = oque; //document.formmtc_editdade.ent_endereco_dirigente.disable = true; } } function trf2(oque) { if (document.formmtc_entidade.validado_cpf_cnpj.value == '1') { document.formmtc_entidade.ent_cidade_dirigente.value = oque; //document.formmtc_editdade.ent_cidade_dirigente.disable = true; } } function trf3(oque) { if (document.formmtc_entidade.validado_cpf_cnpj.value == '1') { document.formmtc_entidade.ent_uf_dirigente.value = oque; } } function validacao() { valida = 0; if (document.formmtc_entidade.ent_nome.value == '') { alert('Preencher o Nome da Entidade '); valida=1; } if (document.formmtc_entidade.ent_rg_dirigente.value == '') { alert('Preencher o RG do dirigente'); valida=1; } if (document.formmtc_entidade.ent_rg_expedicao_dirigente.value == '') { alert('Preencher a Expedição '); valida=1; } cnpj = document.formmtc_entidade.ent_cnpj.value; cnpj = cnpj.replace(/[^\d]+/g,''); if (cnpj.length != 14) ok = validarCPF(document.formmtc_entidade.ent_cnpj.value); else ok = validarCNPJ(document.formmtc_entidade.ent_cnpj.value); if (!ok) { alert('CNPJ/CPF INVALIDO !!'); valida=1; } if (valida==0) { document.all.formmtc_entidade.action='./entidade/insert_db.php'; document.formmtc_entidade.submit(); } } function site() { document.formmtc_entidade.ent_cargo_dirigente.focus(); } function validarCNPJ(cnpj) { // alert (document.formmtc_entidade.ent_cnpj.value); cnpj = cnpj.replace(/[^\d]+/g,''); // alert (cnpj); if(cnpj == '') return false; if (cnpj.length != 14) return false; // Elimina CNPJs invalidos conhecidos if (cnpj == "00000000000000" || cnpj == "11111111111111" || cnpj == "22222222222222" || cnpj == "33333333333333" || cnpj == "44444444444444" || cnpj == "55555555555555" || cnpj == "66666666666666" || cnpj == "77777777777777" || cnpj == "88888888888888" || cnpj == "99999999999999") return false; // Valida DVs tamanho = cnpj.length - 2 numeros = cnpj.substring(0,tamanho); digitos = cnpj.substring(tamanho); soma = 0; pos = tamanho - 7; for (i = tamanho; i >= 1; i--) { soma += numeros.charAt(tamanho - i) * pos--; if (pos < 2) pos = 9; } resultado = soma % 11 < 2 ? 0 : 11 - soma % 11; if (resultado != digitos.charAt(0)) return false; tamanho = tamanho + 1; numeros = cnpj.substring(0,tamanho); soma = 0; pos = tamanho - 7; for (i = tamanho; i >= 1; i--) { soma += numeros.charAt(tamanho - i) * pos--; if (pos < 2) pos = 9; } resultado = soma % 11 < 2 ? 0 : 11 - soma % 11; if (resultado != digitos.charAt(1)) return false; return true; } function validarCPF(cpf) { cpf = cpf.replace(/[^\d]+/g,''); if(cpf == '') return false; // Elimina CPFs invalidos conhecidos if (cpf.length != 11 || cpf == "00000000000" || cpf == "11111111111" || cpf == "22222222222" || cpf == "33333333333" || cpf == "44444444444" || cpf == "55555555555" || cpf == "66666666666" || cpf == "77777777777" || cpf == "88888888888" || cpf == "99999999999") return false; // Valida 1o digito add = 0; for (i=0; i < 9; i ++) add += parseInt(cpf.charAt(i)) * (10 - i); rev = 11 - (add % 11); if (rev == 10 || rev == 11) rev = 0; if (rev != parseInt(cpf.charAt(9))) return false; // Valida 2o digito add = 0; for (i = 0; i < 10; i ++) add += parseInt(cpf.charAt(i)) * (11 - i); rev = 11 - (add % 11); if (rev == 10 || rev == 11) rev = 0; if (rev != parseInt(cpf.charAt(10))) return false; return true; } </script>]]>