Commit 24f56029 authored by Elias's avatar Elias

Correção do Menu e Cadastro

parent 81d74ab4
......@@ -33,45 +33,61 @@
<form action="processarCad.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<label>Número de Matricula:</label>
<input type="number" class="form-control" placeholder="Matricula" name="Matricula" required maxlength="11" />
<input type="number" class="form-control" placeholder="Matricula" name="Matricula" id="Matricula" required max="99999999999" onchange="VerificarMatricula();"/>
<div class="ErroMatricula" id="ErroMatricula">
<br />
<div class="alert alert-danger" role="alert" title="Erro!">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
<span class="sr-only">Erro:</span>
<p>- Verifique o número de digitos! <b>(11)</b></p>
</div>
</div>
</div>
<br />
<div class="form-group">
<label>Nome completo:</label>
<input type="text" class="form-control" placeholder="Nome" name="Nome" required maxlength="45" />
<input type="text" class="form-control" placeholder="Nome" name="Nome" id="Nome" required maxlength="45" />
</div>
<br />
<div class="form-group">
<label>Email:</label>
<input type="Email" class="form-control" placeholder="Email" name="Email" required maxlength="100" />
<input type="Email" class="form-control" placeholder="Email" name="Email" id="Email" required maxlength="100" />
</div>
<br />
<div class="form-group">
<label>Telefone:</label>
<input type="tel" class="form-control" placeholder="Telefone" name="Telefone" required maxlength="20" />
<input type="tel" class="form-control" placeholder="Telefone" name="Telefone" id="Telefone" required maxlength="20" />
</div>
<br />
<div class="form-group">
<label>Telefone do Responsável:</label>
<input type="tel" class="form-control" placeholder="Telefone do Responsável" name="TelefoneR" required maxlength="20" />
<input type="tel" class="form-control" placeholder="Telefone do Responsável" name="TelefoneR" id="TelefoneR" required maxlength="20" />
</div>
<br />
<div class="form-group">
<label>Data de Nascimento</label>
<input type="Date" class="form-control" placeholder="Nasc" name="Nasc" required />
<input type="Date" class="form-control" name="Nasc" id="Nasc" required />
</div>
<br />
<div class="form-group">
<label>Senha:</label>
<input type="password" class="form-control" placeholder="Senha" name="Senha" required maxlength="25" />
<input type="password" class="form-control" placeholder="Senha" name="Senha" id="Senha" required maxlength="25" onchange="VerificarSenha('Senha');"/>
</div>
<br />
<div class="form-group">
<label>Confirmar senha:</label>
<input type="password" class="form-control" placeholder="Confirmar senha" name="CSenha" required maxlength="25" />
<input type="password" class="form-control" placeholder="Confirmar senha" name="CSenha" id="CSenha" required maxlength="25" onchange="VerificarSenha('CSenha');"/>
<div class="ErroCSenha" id="ErroCSenha">
<br />
<div class="alert alert-danger" role="alert" title="Erro!">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
<span class="sr-only">Erro:</span>
<p>- Senhas não coincidem!</p>
</div>
</div>
</div>
<br />
<input type="submit" class="btn btn-success" />
<input type="submit" class="btn btn-success" id="CadSubmit"/>
</form>
<br />
</div>
......
......@@ -7,7 +7,7 @@
<?php
echo $Titulo;
?></title>
<link href="bootstrap/css/estilo.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="bootstrap/css/estilo.css" rel="stylesheet">
<script src="bootstrap/js/jquery.min.js"></script>
......@@ -26,31 +26,29 @@
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-4">
<img src="imagem/ifc.png" class="Logos"/>
<img src="imagem/ifc.png" class="Logos" alt="LogoIFC" />
</div>
<div class="col-md-2">
<img src="imagem/olimpiada.png" class="Logos"/>
<img src="imagem/olimpiada.png" class="Logos" alt="LogoOlimpiada" />
</div>
<div class="col-md-2"></div>
<div class="col-md-2">
<div class="form-group">
<section>
<form action="#logar.php" method="post">
<div class="form-group">
<input type="Number" id="Matricula" class="form-control" name="Matricula" placeholder="Matricula" required />
</div>
<div class="form-group">
<input type="password" class="form-control" name="Senha" placeholder="Senha" required />
</div>
<div class="form-group">
<div class="BotaoHeader">
<input type="submit" class="btn btn-success"/>
<a class="btn btn-success" href="Cadastro.php" role="button">Cadastro</a>
</div>
</div>
</form>
</section>
<div class="form-group">
<form action="#logar.php" method="post">
<div class="form-group">
<input type="number" id="MatriculaLogin" class="form-control" name="Matricula" placeholder="Matricula" required />
</div>
<div class="form-group">
<input type="password" class="form-control" name="Senha" id="SenhaLogin" placeholder="Senha" required />
</div>
<div class="form-group">
<div class="BotaoHeader">
<input type="submit" class="btn btn-success"/>
<a class="btn btn-success" href="Cadastro.php" role="button">Cadastro</a>
</div>
</div>
</form>
</div>
</div>
<div class="col-md-1"></div>
......
This diff is collapsed.
......@@ -45,6 +45,19 @@ nav{
margin:auto;
text-align: center;
}
#ErroMatricula{
text-align:center;
position:absolute;
visibility:hidden;
}
#ErroCSenha{
text-align:center;
position:absolute;
visibility:hidden;
}
/* Telas : */
@media screen and (max-width: 990px) {
.Logos{
margin-left:35%;
......
......@@ -3,4 +3,44 @@ function Explandir(Parametro){
}
function Votar(Parametro){
alert("No momento não é possivel votar para a modalidade '"+Parametro+"'.");
}
\ No newline at end of file
}
function VerificarMatricula(){
Matricula = document.getElementById("Matricula").value;
if(Matricula.length != 11){
document.getElementById("ErroMatricula").style.visibility = "visible";
document.getElementById("ErroMatricula").style.position = "static";
document.getElementById("CadSubmit").disabled=true;
}
else{
document.getElementById("ErroMatricula").style.visibility = "hidden";
document.getElementById("ErroMatricula").style.position = "absolute";
document.getElementById("CadSubmit").disabled=false;
}
}
function VerificarSenha(ParSenha){
if(ParSenha=="Senha" && SenhaConf=="Habilitado"){
if(document.getElementById("CSenha").value != document.getElementById("Senha").value){
document.getElementById("ErroCSenha").style.visibility = "visible";
document.getElementById("ErroCSenha").style.position = "static";
document.getElementById("CadSubmit").disabled=true;
}
else{
document.getElementById("ErroCSenha").style.visibility = "hidden";
document.getElementById("ErroCSenha").style.position = "absolute";
document.getElementById("CadSubmit").disabled=false;
}
}
if(ParSenha=="CSenha"){
SenhaConf="Habilitado";
if(document.getElementById("CSenha").value != document.getElementById("Senha").value){
document.getElementById("ErroCSenha").style.visibility = "visible";
document.getElementById("ErroCSenha").style.position = "static";
document.getElementById("CadSubmit").disabled=true;
}
else{
document.getElementById("ErroCSenha").style.visibility = "hidden";
document.getElementById("ErroCSenha").style.position = "absolute";
document.getElementById("CadSubmit").disabled=false;
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment