Commit d971f24c authored by Elias's avatar Elias

login/cadastro

parent 29729841
<div class="alert alert-success" id="AvisoAtleta"role="alert">
<b><?php echo $Atleta; ?></b> cadastrado no time <b><?php echo $Time; ?></b> com sucesso! <button onclick="Fechar('Atleta')" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button>
<b><?php echo $Atleta; ?></b> cadastrado no time <b><?php echo $Time; ?></b> com sucesso! <span class="glyphicon glyphicon-remove" aria-hidden="true" onclick="Fechar('Atleta')" style="cursor:pointer;"></span>
</div>
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10">
<h1>Cadastro</h1>
<br />
<br />
<form action="processarcad.php" method="post" enctype="multipart/form-data">
<div class="form-group" align="Center">
<label>Número de Matricula:</label>
<label><span class="glyphicon glyphicon-user"></span> Número de Matricula:</label>
<input type="number" class="form-control ABC" placeholder="Matricula" name="Matricula" id="Matricula" required max="99999999999" onchange="VerificarMatricula();"/>
<div class="ErroMatricula" id="ErroMatricula">
<br />
......@@ -19,38 +16,45 @@
</div>
<br />
<div class="form-group" align="Center">
<label>Nome completo:</label>
<label><span class="glyphicon glyphicon-user"></span> Nome completo:</label>
<input type="text" class="form-control ABC" placeholder="Nome" name="Nome" id="Nome" required maxlength="45" />
</div>
<br />
<div class="form-group" align="Center">
<label>Email:</label>
<label><span class="glyphicon glyphicon-envelope"></span> Email:</label>
<input type="Email" class="form-control ABC" placeholder="Email" name="Email" id="Email" required maxlength="100" />
</div>
<br />
<div class="form-group" align="Center">
<label>Telefone:</label>
<label><span class="glyphicon glyphicon-phone"></span> Telefone:</label>
<input type="tel" class="form-control ABC" placeholder="Telefone" name="Telefone" id="Telefone" required maxlength="20" />
</div>
<br />
<div class="form-group" align="Center">
<label>Telefone do Responsável:</label>
<label><span class="glyphicon glyphicon-phone-alt"></span> Telefone do Responsável:</label>
<input type="tel" class="form-control ABC" placeholder="Telefone do Responsável" name="TelefoneR" id="TelefoneR" required maxlength="20" />
</div>
<br />
<div class="form-group" align="Center">
<label>Data de Nascimento</label>
<label><span class="glyphicon glyphicon-calendar"></span> Data de Nascimento</label>
<input type="Date" class="form-control ABC" name="Nasc" id="Nasc" required />
</div>
<br />
<div class="form-group" align="Center">
<label>Senha:</label>
<input type="password" class="form-control ABC" placeholder="Senha" name="Senha" id="Senha" required maxlength="25" onchange="VerificarSenha('Senha');"/>
<label><span class="glyphicon glyphicon-eye-open"></span> Senha:</label>
<div class="input-group ABC">
<span class="input-group-addon"><span class="glyphicon glyphicon-eye-open" id="glypSenha" onclick="Mostrar('Senha');" style="cursor:pointer;"></span></span>
<input type="password" class="form-control ABC" placeholder="Senha" name="Senha" id="Senha" required maxlength="25" onchange="VerificarSenha('Senha');"/>
</div>
</div>
<br />
<div class="form-group" align="Center">
<label>Confirmar senha:</label>
<input type="password" class="form-control ABC" placeholder="Confirmar senha" name="CSenha" id="CSenha" required maxlength="25" onchange="VerificarSenha('CSenha');"/>
<label><span class="glyphicon glyphicon-eye-open"></span> Confirmar senha:</label>
<div class="input-group ABC">
<span class="input-group-addon"><span class="glyphicon glyphicon-eye-open" id="glypCSenha" onclick="Mostrar('CSenha');" style="cursor:pointer;"></span></span>
<input type="password" class="form-control ABC" placeholder="Confirmar senha" name="CSenha" id="CSenha" required maxlength="25" onchange="VerificarSenha('CSenha');">
</div>
<div class="ErroCSenha" id="ErroCSenha">
<br />
<div class="alert alert-danger" role="alert" title="Erro!">
......@@ -60,16 +64,17 @@
</div>
</div>
</div>
<div class="form-group">
<label>Imagem do Usuário</label>
<br />
<div class="form-group" align="Center">
<label><span class="glyphicon glyphicon-picture"></span> Imagem do Usuário</label>
<input type="hidden" class="form-control" name="ImagemCad" id="ImagemCad" value="" />
<table class="TableImg">
<tr>
<table class="TableImg" align="Center">
<tr align="Center">
<td class="TrImg" id="Tr1"><img src="imagem/Anonimo.png" alt="Anonimo" class="img-rounded" onclick="EscolheuImagem('Anonimo');"></td>
<td class="TrImg" id="Tr2"><img src="imagem/Anonimo.png" alt="Anonimo" class="img-rounded" onclick="EscolheuImagem('Anonimo');"></td>
<td class="TrImg" id="Tr3"><img src="imagem/Anonimo.png" alt="Anonimo" class="img-rounded" onclick="EscolheuImagem('Anonimo');"></td>
</tr>
<tr>
<tr align="Center">
<td class="TrImg" id="Tr4"><img src="imagem/Anonimo.png" alt="Anonimo" class="img-rounded" onclick="EscolheuImagem('Anonimo');"></td>
<td class="TrImg" id="Tr5"><img src="imagem/Anonimo.png" alt="Anonimo" class="img-rounded" onclick="EscolheuImagem('Anonimo');"></td>
<td class="TrImg" id="Tr6"><img src="imagem/Anonimo.png" alt="Anonimo" class="img-rounded" onclick="EscolheuImagem('Anonimo');"></td>
......
......@@ -52,9 +52,10 @@
</div>";
echo "<div class='modal fade cadastropop' tabindex='-1' role='dialog' aria-labelledby='cadastropop'>
<div class='modal-dialog modal-lg'>
<div class='modal-content' style='background-color:#E2E2E2;'>
<div class='modal-content' style='background-color:#f9f9f9;'>
<div class='modal-header'>
<button type='button' class='close' data-dismiss='modal' aria-label='Close'><span aria-hidden='true'>&times;</span></button>
<button type='button' class='close' data-dismiss='modal'>&times;</button>
<h4><span class='glyphicon glyphicon-lock'></span> Cadastro</h4>
</div>
<br />";
include "Cadastropop.php";
......@@ -69,19 +70,26 @@
}
?>
<div class="modal fade login" tabindex="-1" role="dialog" aria-labelledby="login">
<div class="modal-dialog modal-sm">
<div class="modal-content"style="background-color:#E2E2E2;">
<div class="modal-dialog modal-lg">
<div class="modal-content"style="background-color:#f9f9f9;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4><span class="glyphicon glyphicon-lock"></span> Login</h4>
</div>
<br />
<?php
if(isset($_SESSION["Logado"])==true){
echo "Você já está logado";
}else{
include "Login.php";
}
?>
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10">
<?php
if(isset($_SESSION["Logado"])==true){
echo "Você já está logado";
}else{
include "Login.php";
}
?>
</div>
<div class="col-md-1"></div>
</div>
</div>
</div>
</div>
......
<form action="processalogin.php" method="post">
<div class="form-group" align="Center">
<input type="number" id="MatriculaLogin" class="form-control ABC" name="MatriculaLogin" placeholder="Matricula" required />
</div>
<div class="form-group" align="Center">
<input type="password" class="form-control ABC" name="SenhaLogin" id="SenhaLogin" placeholder="Senha" required />
</div>
<div class="form-group">
<input type="hidden" name="Pagina" id="Pagina" placeholder="Site" value="<?php echo $Pagina; ?>" required />
</div>
<div class="form-group" align="Center">
<div class="BotaoHeader">
<input type="submit" class="btn btn-success"/>
<span class="ErroLogin" id="ErroLogin"> <h6><i>Matricula ou Senha incorreta*</i></h6></span>
<?php
if(isset($_GET["ErroLogin"])==true){
echo "<script>
ErroLogin();
</script>";
}
?>
</div>
</div>
</form>
<form action="processalogin.php" method="post">
<div class="form-group">
<label for="matricula"><span class="glyphicon glyphicon-user"></span> Matrícula</label>
<input type="number" id="MatriculaLogin" class="form-control ABC" name="MatriculaLogin" placeholder="Matricula" required />
</div>
<div class="form-group">
<label for="password"><span class="glyphicon glyphicon-eye-open"></span> Senha</label>
<div class="input-group ABC">
<span class="input-group-addon"><span class="glyphicon glyphicon-eye-open" id="glypSenhaLogin" onclick="Mostrar('SenhaLogin');" style="cursor:pointer;"></span></span>
<input type="password" class="form-control ABC" name="SenhaLogin" id="SenhaLogin" placeholder="Senha" required />
</div>
</div>
<div class="form-group">
<input type="hidden" name="Pagina" id="Pagina" placeholder="Site" value="<?php echo $Pagina; ?>" required />
</div>
<div class="form-group" align="Center">
<div class="BotaoHeader">
<button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-off"></span> Login</button></button>
<span class="ErroLogin" id="ErroLogin"> <h6><i>Matricula ou Senha incorreta*</i></h6></span>
<?php
if(isset($_GET["ErroLogin"])==true){
echo "<script>
ErroLogin();
</script>";
}
?>
</div>
</div>
</form>
......@@ -146,6 +146,12 @@ nav{
position:absolute;
visibility:hidden;
}
.modal-header, h4, .close {
background-color: #5cb85c;
color:white !important;
text-align: center;
font-size: 30px;
}
/* Telas : */
@media screen and (max-width: 990px) {
.Logos{
......
......@@ -109,3 +109,15 @@ function VerificarDados(Valor,idElemento,idMsgErro,Site,Submit){
function Redicionar(x){
document.getElementById('red').innerHTML = x;
}
function Mostrar(idcampo){
x = document.getElementById(idcampo).type;
if(x=="password"){
document.getElementById(idcampo).type = "text";
document.getElementById("glyp"+idcampo).className= "glyphicon glyphicon-eye-close";
}else{
if(x=="text"){
document.getElementById(idcampo).type = "password";
document.getElementById("glyp"+idcampo).className = "glyphicon glyphicon-eye-open";
}
}
}
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