Commit a82ce658 authored by Elias's avatar Elias

Evento

parent 657f7943
......@@ -44,9 +44,9 @@
?>
<br />
<form action="processaratleta.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<div class="form-group" align="Center">
<label>Número de Matricula:</label>
<input type="number" class="form-control" placeholder="Matricula" name="Matricula" id="Matricula" required max="99999999999" onchange="VerificarMatricula();"/>
<input type="number" class="form-control ABC" 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!">
......@@ -57,9 +57,9 @@
</div>
</div>
<br />
<div class="form-group">
<div class="form-group" align="Center">
<label>Equipe(id):</label>
<input type="text" class="form-control" placeholder="Time" name="Time" id="Time" required maxlength="45" />
<input type="text" class="form-control ABC" placeholder="Time" name="Time" id="Time" required maxlength="45" />
</div>
<br />
<input type="submit" class="btn btn-success" id="CadSubmit"/>
......
......@@ -35,9 +35,9 @@
<br />
<br />
<form action="processarcad.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<div class="form-group" align="Center">
<label>Número de Matricula:</label>
<input type="number" class="form-control" placeholder="Matricula" name="Matricula" id="Matricula" required max="99999999999" onchange="VerificarMatricula();"/>
<input type="number" class="form-control ABC" 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!">
......@@ -48,39 +48,39 @@
</div>
</div>
<br />
<div class="form-group">
<div class="form-group" align="Center">
<label>Nome completo:</label>
<input type="text" class="form-control" placeholder="Nome" name="Nome" id="Nome" required maxlength="45" />
<input type="text" class="form-control ABC" placeholder="Nome" name="Nome" id="Nome" required maxlength="45" />
</div>
<br />
<div class="form-group">
<div class="form-group" align="Center">
<label>Email:</label>
<input type="Email" class="form-control" placeholder="Email" name="Email" id="Email" required maxlength="100" />
<input type="Email" class="form-control ABC" placeholder="Email" name="Email" id="Email" required maxlength="100" />
</div>
<br />
<div class="form-group">
<div class="form-group" align="Center">
<label>Telefone:</label>
<input type="tel" class="form-control" placeholder="Telefone" name="Telefone" id="Telefone" required maxlength="20" />
<input type="tel" class="form-control ABC" placeholder="Telefone" name="Telefone" id="Telefone" required maxlength="20" />
</div>
<br />
<div class="form-group">
<div class="form-group" align="Center">
<label>Telefone do Responsável:</label>
<input type="tel" class="form-control" placeholder="Telefone do Responsável" name="TelefoneR" id="TelefoneR" required maxlength="20" />
<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">
<div class="form-group" align="Center">
<label>Data de Nascimento</label>
<input type="Date" class="form-control" name="Nasc" id="Nasc" required />
<input type="Date" class="form-control ABC" name="Nasc" id="Nasc" required />
</div>
<br />
<div class="form-group">
<div class="form-group" align="Center">
<label>Senha:</label>
<input type="password" class="form-control" placeholder="Senha" name="Senha" id="Senha" required maxlength="25" onchange="VerificarSenha('Senha');"/>
<input type="password" class="form-control ABC" placeholder="Senha" name="Senha" id="Senha" required maxlength="25" onchange="VerificarSenha('Senha');"/>
</div>
<br />
<div class="form-group">
<div class="form-group" align="Center">
<label>Confirmar senha:</label>
<input type="password" class="form-control" placeholder="Confirmar senha" name="CSenha" id="CSenha" required maxlength="25" onchange="VerificarSenha('CSenha');"/>
<input type="password" class="form-control ABC" 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!">
......
......@@ -34,9 +34,9 @@
<br />
<br />
<form action="processamodalidade.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<div class="form-group" align="Center">
<label>Modalidade:</label>
<input type="text" class="form-control" placeholder="Modalidade" name="Modalidade" id="Modalidade" required maxlength="45" />
<input type="text" class="form-control ABC" placeholder="Modalidade" name="Modalidade" id="Modalidade" required maxlength="45" />
</div>
<br />
<div class="form-group">
......
<form action="processaredicao.php" method="post" enctype="multipart/form-data">
<div class="form-group" align="Center">
<label>Tema:</label>
<input type="text" class="form-control ABC" placeholder="Tema" name="Tema" id="Tema" required maxlength="45" />
</div>
<br />
<div class="form-group" align="Center">
<label>Ano:</label>
<input type="number" class="form-control ABC" placeholder="YYYY" name="Ano" id="Ano" required max="9999" onchange="VerificarAno();"/>
<div class="ErroAno" id="ErroAno">
<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>(4)</b></p>
</div>
</div>
</div>
<br />
<input type="submit" class="btn btn-success" id="CadSubmit"/>
</form>
<div class="alert alert-danger" id="AvisoEvento"role="alert">
Evento já cadastrado nesse <b>Ano</b>! <button onclick="Fechar('Evento')" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button>
</div>
<?php
$Pagina = "Cadastro";
?>
<!--Começa Header-->
<?php
session_start();
session_destroy();
$Titulo = "Cadastro de Eventos";
include 'Header.php';
?>
<!--Termina Header-->
<!--Começa Menu-->
<?php
include 'Menu.php';
?>
<!--Termina Menu-->
</div>
</div>
</div>
</div>
<div class="col-md-3"></div>
</div>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<div class="Area">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6 text-center" align="center">
<br />
<h1>Cadastro de Eventos</h1>
<br />
<?php
if(isset($_GET["Erro"])){
if($_GET["Erro"]=="Ano"){
include 'ErroEvento.php';
}
}
?>
<br />
<?php
if(isset($_GET["Ano"])==false){
include 'Edicao.php';
}else{
if(isset($_GET["Ano"])){
include 'EdicaoModalidade.php';
}
}
?>
<br />
</div>
<div class="col-md-3"></div>
</div>
</div>
</div>
<div class="col-md-3"></div>
</div>
</body>
</html>
<form action="processalogin.php" method="post">
<div class="form-group">
<input type="number" id="MatriculaLogin" class="form-control" name="MatriculaLogin" placeholder="Matricula" required />
<input type="number" id="MatriculaLogin" class="form-control ABC" name="MatriculaLogin" placeholder="Matricula" required />
</div>
<div class="form-group">
<input type="password" class="form-control" name="SenhaLogin" id="SenhaLogin" placeholder="Senha" required />
<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">
<div class="form-group" align="Center">
<div class="BotaoHeader">
<input type="submit" class="btn btn-success"/>
<a class="btn btn-success" href="Cadastro.php" role="button">Cadastro</a>
......
......@@ -48,9 +48,9 @@
?>
<br />
<form action="processartime.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<div class="form-group" align="center">
<label>Nome do Time:</label>
<input type="text" class="form-control" placeholder="Nome do Time" name="NomeTime" id="NomeTime" required maxlength="45" />
<input type="text" class="form-control ABC" placeholder="Nome do Time" name="NomeTime" id="NomeTime" required maxlength="45" />
</div>
<br />
<div class="form-group">
......
body{
background-color: #629C44;
}
.ABC{
width: 45%;
-webkit-transition: width .35s ease-in-out;
transition: width 1s ease-in-out;
}
.ABC:hover, .ABC:focus {
width: 100%;
}
.Div_Form{
background-color: #E2E2E2;
border: inset;
......@@ -101,6 +109,12 @@ nav{
.Center{
margin:auto;
text-align: center;
align: center;
}
#ErroAno{
text-align:center;
position:absolute;
visibility:hidden;
}
#ErroMatricula{
text-align:center;
......
......@@ -6,6 +6,19 @@ function Explandir(Parametro){
function Votar(Parametro){
alert("No momento não é possivel votar para a modalidade '"+Parametro+"'.");
}
function VerificarAno(){
Ano = document.getElementById("Ano").value;
if(Ano.length != 4){
document.getElementById("ErroAno").style.visibility = "visible";
document.getElementById("ErroAno").style.position = "static";
document.getElementById("CadSubmit").disabled=true;
}
else{
document.getElementById("ErroAno").style.visibility = "hidden";
document.getElementById("ErroAno").style.position = "absolute";
document.getElementById("CadSubmit").disabled=false;
}
}
function VerificarMatricula(){
Matricula = document.getElementById("Matricula").value;
if(Matricula.length != 11){
......
......@@ -47,15 +47,15 @@
</div>
</div>
<hr />
<div class="form-group">
<div class="form-group" align="Center">
<label>Horário do jogo:</label>
<input type="Time" class="form-control" name="Horario" id="Horario" required />
<input type="Time" class="form-control ABC" name="Horario" id="Horario" required />
</div>
<br />
<div class="form-group">
<div class="form-group" align="Center">
<label>Data do jogo</label>
<input type="Date" class="form-control" name="Data" id="Data" required />
<input type="Date" class="form-control ABC" name="Data" id="Data" required />
</div>
<hr />
<input type="submit" class="btn btn-success" id="CadSubmit" disabled />
......
<?php
require 'Conexao.php';
$Ano = $_POST['Ano'];
$Tema = $_POST['Tema'];
$sqlVerifica = "select Ano from Edicao where Ano = $Ano;";
$resultadoVerifica = mysqli_query($conexao,$sqlVerifica);
while($row = mysqli_fetch_assoc($resultadoVerifica)){
$AnoR = $row["Ano"];
}
if($AnoR==$Ano){
header("location:Evento.php?Erro=Ano");
}else{
$sqledicao = "insert into Edicao(Ano,Tema) value($Ano,'$Tema');";
$resultadoedicao = mysqli_query($conexao,$sqledicao);
header("location:Evento.php?Ano=$Ano");
}
?>
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