Viewing file: 19seminario.php (12.32 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php //inclui o template de cabecalho
include("cabecalho.php"); $title="IRPEN | Instituto de Registro Civil de Pessoas Naturais do Paraná - 2016"; $not=$_GET['not'];
?> <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; } </script>
<div id="cont_geral">
<div id="cont_esq">
<h2 class="tit4">19º SEMINÁRIO DE TRABALHO REGISTRAL CIVIL</h2> <br /> <div align="center">
<!-- <p style="margin: 0 0 0 85px;"><a style="font-size: 15px;" href="inscricao2.php"><u><b>CLIQUE AQUI PARA ACESSAR O FORMULÁRIO DE INSCRIÇÃO</b></u></a></p> --> <br /> <img src="eventos/19seminario/af_irpen_19_seminario_programacao.jpg" border="0" title="18° Seminário de Trabalho Registral Civil" width="700"/> <p> <!-- <p style="margin: 0 0 0 85px;"><a style="font-size: 15px;" href="inscricao2.php"><u><b>CLIQUE AQUI PARA ACESSAR O FORMULÁRIO DE INSCRIÇÃO</b></u></a></p> </p> --> <p> </p> <div class="container_fotos">
<?php /* // pega o endereço do diretório $diretorio = 'imagens/16_seminario/'; // abre o diretório $ponteiro = opendir($diretorio); // monta os vetores com os itens encontrados na pasta while ($nome_itens = readdir($ponteiro)) { $itens[] = $nome_itens; } // ordena o vetor de itens sort($itens); // percorre o vetor para fazer a separacao entre arquivos e pastas foreach ($itens as $listar) { // retira "./" e "../" para que retorne apenas pastas e arquivos if ($listar!="." && $listar!=".."){ // checa se o tipo de arquivo encontrado é uma pasta if (!is_dir($listar)) { // caso FALSO adiciona o item à variável de arquivos $arquivos[]=$listar; } } } // lista os arquivos se houverem if ($arquivos != "") { foreach($arquivos as $listar){ if ($listar != 'thumbs' && $listar != 'Thumbs.db') { echo '<div class="foto"> <a class="lightbox" href="'.$diretorio.$listar.'" rel="lightbox[seminario]"> <img width="75%" src="'.$diretorio.'thumbs/'.str_replace('JPG','jpg',$listar).'"/> </a> </div>'; } } } */ ?>
<br> <br> </div> <!-- a href="index.php"><span class="texto"><strong>Voltar</strong></span></a --> </div> <?php //die(); ?> <p> <?php $sqlConta = " SELECT * FROM inscricao_seminario WHERE INS_Evento = '19seminario' AND INS_AtivoSN = 'S' "; $rsConta = $conexao->query($sqlConta); $total = $rsConta->num_rows; //$total = 150; $disp = 0; if ($total >= $disp) { echo "<b><h2 align='center'>Inscrições Encerradas</b></h2>"; } else { ?> </p> <center> <h3 style="font-size:18px;">FICHA DE INSCRIÇÃO</h3> </center> <div style="width:590px; margin:0px auto;"> <p><b>Inscrições Disponíveis: <?= ($disp-$total)?></b></p> </div> <form name="frmInscricao" id="frmInscricao" method="post" action="inscricao_grava.php" onsubmit="return valida_formulario()"> <fieldset> <p><strong><span class="obrigatorio">*</span> Campos obrigatórios</strong></p> <label for="txtNome">Nome para identificação <span class="obrigatorio">*</span>:</label> <input type="text" name="txtNome" id="txtNome" size="50" /> <br> <label for="txtCartorio">Cartório <span class="obrigatorio">*</span>:</label> <input type="text" name="txtCartorio" id="txtCartorio" size="50" /> <br> <label for="txtEndereco">Endereço <span class="obrigatorio">*</span>:</label> <input type="text" name="txtEndereco" id="txtEndereco" size="50" /> <br> <label for="txtCidade">Cidade <span class="obrigatorio">*</span>:</label> <input type="text" name="txtCidade" id="txtCidade" size="50" /> <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="50" /> <br> <!-- <p><strong>Nome do acompanhante</strong></p> <label for="txtAcompanhante1">Acompanhante:</label> <input type="text" name="txtAcompanhante1" id="txtAcompanhante1" size="50" /> --> <!-- <br> <label for="txtAcompanhante2">Acompanhante 2:</label> <input type="text" name="txtAcompanhante2" id="txtAcompanhante2" size="50" /> <br> <label for="txtAcompanhante3">Acompanhante 3:</label> <input type="text" name="txtAcompanhante3" id="txtAcompanhante3" size="50" /> --> <br><br> <div align="center"> <input type="submit" name="btnInscrever" id="btnInscrever" value="Inscrever-se" class="button" /> <input type="button" name="btnLimpar" id="btnLimpar" value="Limpar" class="button" /> </div> </fieldset> </form> <?php } ?> </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"); ?>
|