Viewing file: _inscricao_congresso.php (9.34 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include('cabecalho.php');
$title="IRPEN | Instituto de Registro Civil de Pessoas Naturais do Paraná - 2011"; $not=$_GET['not']; ?> <meta http-equiv="pragma" content="no-cache"> <script language="javascript" type="text/javascript"> function checkMail(mail){ var er = new RegExp(/^[A-Za-z0-9_\-\.]+@[A-Za-z0-9_\-\.]{2,}\.[A-Za-z0-9]{2,}(\.[A-Za-z0-9])?/); if(typeof(mail) == "string"){ if(er.test(mail)){ return true; } }else if(typeof(mail) == "object"){ if(er.test(mail.value)){ return true; } }else{ return false; } } function txtBoxFormat(objeto, sMask, evtKeyPress) { var i, nCount, sValue, fldLen, mskLen,bolMask, sCod, nTecla; if(document.all) { // Internet Explorer nTecla = evtKeyPress.keyCode; } else if(document.layers) { // Nestcape nTecla = evtKeyPress.which; } else { nTecla = evtKeyPress.which; if (nTecla == 8) { return true; } } sValue = objeto.value; // Limpa todos os caracteres de formatação que // já estiverem no campo. sValue = sValue.toString().replace( "-", "" ); sValue = sValue.toString().replace( "-", "" ); sValue = sValue.toString().replace( ".", "" ); sValue = sValue.toString().replace( ".", "" ); sValue = sValue.toString().replace( "/", "" ); sValue = sValue.toString().replace( "/", "" ); sValue = sValue.toString().replace( ":", "" ); sValue = sValue.toString().replace( ":", "" ); sValue = sValue.toString().replace( "(", "" ); sValue = sValue.toString().replace( "(", "" ); sValue = sValue.toString().replace( ")", "" ); sValue = sValue.toString().replace( ")", "" ); sValue = sValue.toString().replace( " ", "" ); sValue = sValue.toString().replace( " ", "" ); fldLen = sValue.length; mskLen = sMask.length; i = 0; nCount = 0; sCod = ""; mskLen = fldLen; while (i <= mskLen) { bolMask = ((sMask.charAt(i) == "-") || (sMask.charAt(i) == ".") || (sMask.charAt(i) == "/") || (sMask.charAt(i) == ":")) bolMask = bolMask || ((sMask.charAt(i) == "(") || (sMask.charAt(i) == ")") || (sMask.charAt(i) == " ")) if (bolMask) { sCod += sMask.charAt(i); mskLen++; } else { sCod += sValue.charAt(nCount); nCount++; } i++; } objeto.value = sCod; if (nTecla != 8) { // backspace if (sMask.charAt(i-1) == "9") { // apenas números... return ((nTecla > 47) && (nTecla < 58)); } else { // qualquer caracter... return true; } } else { return true; } } function trim(str) { return str.replace(/^\s+|\s+$/g,""); }
function valida_formulario() { if (trim(document.getElementById("txtNome").value) == "") { alert("Por favor, preencha o nome!"); document.getElementById("txtNome").focus(); return false; } else if (trim(document.getElementById("txtCartorio").value) == "") { alert("Por favor, preencha o cartorio!"); document.getElementById("txtCartorio").focus(); return false; } else if (trim(document.getElementById("txtEndereco").value) == "") { alert("Por favor, preencha o endereco!"); document.getElementById("txtEndereco").focus(); return false; } else if (trim(document.getElementById("txtCidade").value) == "") { alert("Por favor, preencha a cidade!"); document.getElementById("txtCidade").focus(); return false; } else if (trim(document.getElementById("txtCep").value) == "") { alert("Por favor, preencha o CEP!"); document.getElementById("txtCep").focus(); return false; } else if (trim(document.getElementById("txtTelefone").value) == "") { alert("Por favor, preencha o telefone!"); document.getElementById("txtTelefone").focus(); return false; } else if (trim(document.getElementById("txtEmail").value) == "") { alert("Por favor, preencha o email!"); document.getElementById("txtEmail").value = ''; document.getElementById("txtEmail").focus(); return false; } else if (!checkMail(trim(document.getElementById("txtEmail").value))) { alert("Por favor, digite um email valido!"); document.getElementById("txtEmail").value = ''; document.getElementById("txtEmail").focus(); return false; } return true; } function avisoEstudante(t) { if (t == 'S') { if (confirm('<?=utf8_encode('Para participação no congresso, será necessário apresentar no dia do evento a sua carteirinha de estudante atualizada.\nVocê confirma ser realmente estudante?')?>')) { $('#investimento').html('<?=utf8_encode('Investimento: r$ 100,00 (na inscrição como estudante não está incluso a participação no jantar de encerramento)')?>'); } else { $('#nEstudante').attr('checked',true); $('#investimento').html('Investimento: r$ 200,00'); return false; } } else { $('#investimento').html('Investimento: r$ 200,00'); } document.recipiente.location = 'aboutBlank.php'; } </script> <div id="cont_geral"> <div id="cont_esq"> <h2 class="tit4">InscriÇÃo COERCI</h2> <br /> <div align="center"><img src="imagens/imagens_noticias/la_copreci_convite-digital-programacao.jpg" /></div> <!--<div align="center"><img src="eventos/conarci/af_conarci_convites_web_a01.jpg" /></div>--> <p> </p> <?php $total = 1; $disp = 101; if ($total >= $disp) { echo "<b><h2 align='center'>Inscrições Encerradas</b></h2>"; } else { ?> <center> <h3 style="font-size:18px;">FICHA DE INSCRIÇÃO</h3> </center> <form name="frmInscricao" id="frmInscricao" method="post" action="inscricao_congresso_grava.php" onsubmit="return valida_formulario()" onreset="avisoEstudante('N')" target="recipiente"> <fieldset> <p><strong><span class="obrigatorio">*</span> Campos obrigatórios</strong></p> <label for="txtNome"> </label> <label for="txtNome" style="text-align:left;"><input type="radio" id="nEstudante" name="tipoInsc" value="N" checked="checked" onclick="avisoEstudante('N');" /> Inteira <input type="radio" id="estudante" name="tipoInsc" style="margin-left:15px;" value="S" onclick="avisoEstudante('S');" /> Estudante </label> <label for="txtNome">Nome para identificação do cracha <span class="obrigatorio">*</span>:</label> <input type="text" name="txtNome" id="txtNome" size="45" /> <br> <label for="txtCartorio">Cartório <span class="obrigatorio">*</span>:</label> <input type="text" name="txtCartorio" id="txtCartorio" size="45" /> <br> <label for="txtEndereco">Endereço <span class="obrigatorio">*</span>:</label> <input type="text" name="txtEndereco" id="txtEndereco" size="45" /> <br> <label for="txtCidade">Cidade <span class="obrigatorio">*</span>:</label> <input type="text" name="txtCidade" id="txtCidade" size="45" /> <br> <label for="txtCep">CEP <span class="obrigatorio">*</span>:</label> <input type="text" name="txtCep" id="txtCep" size="11" /> <br> <label for="txtTelefone">Telefone <span class="obrigatorio">*</span>:</label> <input type="text" name="txtTelefone" id="txtTelefone" size="16" /> <br> <label for="txtFax">FAX:</label> <input type="text" name="txtFax" id="txtFax" size="16" /> <br> <label for="txtCelular">Celular:</label> <input type="text" name="txtCelular" id="txtCelular" size="16" /> <br> <label for="txtEmail">E-mail <span class="obrigatorio">*</span>:</label> <input type="text" name="txtEmail" id="txtEmail" size="45" /> <br> <div id="investimento" class="obrigatorio" style="width:400px; margin-left:180px; text-align:left;">Investimento: r$ 200,00</div> <br> <br> <div align="center"> <input type="submit" name="btnInscrever" id="btnInscrever" value="Inscrever-se" class="button" /> <input type="reset" name="btnLimpar" id="btnLimpar" value="Limpar" class="button" /> </div><br /> <div style="text-align:center">Após realizar sua inscrição, favor proceder com o pagamento do boleto bancário apresentado.</div> </fieldset> </form> <?php } ?> <div align="center" id="divRecipiente"> <iframe name="recipiente" width="600" height="50" frameborder="0"></iframe> </div> </div> <!--fecha a div "cont_esq"-->
<?php //inclui o template do menu da direita include("menu_direita.php");
//inclui o template de rodapé include("rodape.php"); ?>
|