Commit 41acded4 authored by Elias's avatar Elias

List User On

parent 29c9f628
<!--Começa Header-->
<?php
$Titulo = "Lista de Usuários";
include 'Header.php';
?>
<!--Termina Header-->
<!--Começa Menu-->
<?php
$Pagina = "Consulta";
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-1"></div>
<div class="col-md-10 text-center">
<br />
<h1>Lista De Usuário</h1>
<br />
<div class="DivTable">
<table class="table table-condensed ListUser">
<tr>
<th class="success th1 ListUser BorderD"></th>
<th class="success th2 ListUser BorderD">Matricula</th>
<th class="success th3 ListUser BorderD">Nome</th>
<th class="success th4 ListUser BorderD">Telefone</th>
<th class="success th5 ListUser BorderD">Telefone R.</th>
<th class="success th6 ListUser BorderD">Email</th>
<th class="success th6 ListUser BorderD">Equipe</th>
<th class="success th6 ListUser BorderD">Time</th>
<th class="success th6 ListUser">Tipo</th>
</tr>
<?php
$Cortabela = 1;
$sqlLista = "select Matricula,Nome,Telefone,TelefoneResponsavel,Email from Usuario;";
$resultado = mysqli_query($conexao, $sqlLista);
while ($row = mysqli_fetch_assoc($resultado)) {
$Matricula = $row['Matricula'];
$Nome = $row['Nome'];
$Tel = $row['Telefone'];
$TelR = $row['TelefoneResponsavel'];
$Email = $row['Email'];
$sqlET = "select Equipe.Nome, Time.Nome from
Usuario, Time, Atleta,Equipe
where Equipe.idEquipe = Usuario.idEquipe and
Usuario.Matricula = Atleta.Matricula and
Atleta.idTime = Time.idTime and Usuario.Matricula = '$Matricula';";
$resultadoET = mysqli_query($conexao, $sqlET);
while ($rowET = mysqli_fetch_assoc($resultadoET)) {
$Equipe = $rowET['Equipe.Nome'];
$Time = $rowET['Time.Nome'];
}
if($Equipe == null || $Equipe == ""){
$Equipe = "Não possui";
}
if($Time == null || $Time == ""){
$Time = "Não possui";
}
$sqlTU = "select Descricao from
Usuario, TipoUsuario
where Usuario.idTipoUsuario = TipoUsuario.idTipoUsuario
and Usuario.Matricula = '$Matricula';
;";
$resultadoTU = mysqli_query($conexao, $sqlTU);
while ($rowTU = mysqli_fetch_assoc($resultadoTU)) {
$Tipo = $rowTU['Descricao'];
}
if($Tipo == null || $Tipo == ""){
$Tipo = "Normal";
}
if($Cortabela==1){
echo "<tr class='FonteMenor'>
<td class='BorderD'><a href='EditarUsuario.php?Matricula=".$Matricula."'><span class='glyphicon glyphicon-pencil' aria-hidden='true'></span></a></td>
<td class='BorderD'>$Matricula</td>
<td class='BorderD'>$Nome</td>
<td class='BorderD'>$Tel</td>
<td class='BorderD'>$TelR</td>
<td class='BorderD'>$Email
<td class='BorderD'>$Equipe</td>
<td class='BorderD'>$Time</td>
<td class=''>$Tipo</td></td>
</tr>";
$Cortabela=2;
}else{
if($Cortabela==2){
echo "<tr class='active FonteMenor'>
<td class='active BorderD'><a href='EditarUsuario.php?Matricula=".$Matricula."'><span class='glyphicon glyphicon-pencil' aria-hidden='true'></span></a></td>
<td class='active BorderD'>$Matricula</td>
<td class='active BorderD'>$Nome</td>
<td class='active BorderD'>$Tel</td>
<td class='active BorderD'>$TelR</td>
<td class='active BorderD'>$Email</td>
<td class='active BorderD'>$Equipe</td>
<td class='active BorderD'>$Time</td>
<td class='active'>$Tipo</td>
</tr>";
$Cortabela=1;
}
}
}
?>
<td class="danger BorderD">ø</td>
<td class="danger BorderD">ø</td>
<td class="danger BorderD">ø</td>
<td class="danger BorderD">ø</td>
<td class="danger BorderD">ø</td>
<td class="danger BorderD">ø</td>
<td class="danger BorderD">ø</td>
<td class="danger BorderD">ø</td>
<td class="danger">ø</td>
</table>
</div>
</div>
<div class="col-md-1"></div>
</div>
</div>
</div>
<div class="col-md-3"></div>
</div>
</body>
</html>
......@@ -11,6 +11,24 @@ body{
#Pad10{
padding: 5px;
}
.DivTable{
width: 100%;
max-height: 250px;
overflow: scroll;
background: #ffffff;
}
.ListUser{
text-align:center;
}
.ListUser > table > td{
border:1px solid #000;
}
.BorderD{
border-right:1px solid #000;
}
.FonteMenor{
font-size:12px;
}
.TableImg{
width: 100%;
max-width: 100%;
......
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