Commit 010f3933 authored by Elias's avatar Elias

Login arrumado

parent c6786186
......@@ -33,7 +33,6 @@
<br />
<br />
<?php
session_start();
$Matricula = $_SESSION["Matricula"];
if(isset($_SESSION["Logado"])==true){
$Login = $_SESSION["Logado"];
......
......@@ -4,9 +4,6 @@ echo "<script>
function Update(){
VerificarDados($Ano,'Ano','ErroAno','Evento.php','CadSubmit');
}
function Redicionar(x){
document.getElementById('red').innerHTML = x;
}
</script>";
?>
<form action="Evento.php" method="Get" enctype="multipart/form-data" onchange="Update()" onmousemove="Update()">
......
......@@ -5,17 +5,11 @@ echo "<script>
function Update(){
VerificarDados($Ano,'Ano','ErroAno','Evento.php','CadSubmit');
}
function Redicionar(x){
document.getElementById('red').innerHTML = x;
}
</script>";
echo "<script>
function Update(){
VerificarDados($idModalidade,'Modalidade','ErroModalidade','Evento.php','CadSubmit');
}
function Redicionar(x){
document.getElementById('red').innerHTML = x;
}
</script>";
?>
<form action="processaredicaomodalidade.php" method="POST" enctype="multipart/form-data" onchange="Update()" onmousemove="Update()">
......
......@@ -33,15 +33,36 @@
</div>
<div class="col-md-2"></div>
<div class="col-md-2">
<div class="form-group">
<?php
session_start();
if(isset($_SESSION["Logado"])==true){
include "Logado.php";
}else{
include "Login.php";
}
?>
<div class="form-group" align="Center">
<div class="form-group">
<button type="button" class="btn btn-success" data-toggle="modal" data-target=".bs-example-modal-sm">Logar</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 class="form-group">
<a class="btn btn-success" href="Cadastro.php" role="button">Cadastro</a>
</div>
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
<div class="modal-dialog modal-sm">
<div class="modal-content"style="background-color:#E2E2E2;">
<br />
<?php
session_start();
if(isset($_SESSION["Logado"])==true){
include "Logado.php";
}else{
include "Login.php";
}
?>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-1"></div>
......
<form action="processalogin.php" method="post">
<div class="form-group">
<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">
<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">
......@@ -12,7 +12,6 @@
<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>
<span class="ErroLogin" id="ErroLogin"> <h6><i>Matricula ou Senha incorreta*</i></h6></span>
<?php
if(isset($_GET["ErroLogin"])==true){
......
......@@ -32,7 +32,11 @@
<h1>Votação</h1>
<br />
<br />
<p>Modalidade x: <input type="button" class="btn btn-default" value="Votar" onclick="Votar('x')"></p>
<p>Modalidade x: <input type="button" class="btn btn-default" value="Votar" onclick="Votar('x')" disabled>
<button type="button" class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="right" title="Tooltip on right">
<span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>
</button>
</p>
<p>Número de votos: x</p>
<br />
<br />
......
......@@ -106,3 +106,6 @@ function VerificarDados(Valor,idElemento,idMsgErro,Site,Submit){
document.getElementById(idMsgErro).style.position = "absolute";
}
}
function Redicionar(x){
document.getElementById('red').innerHTML = x;
}
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