<?php																																									
session_start();
include_once("conexao.php");


if((!isset ($_SESSION['usuarioId']) == true))
{
  header('location:index.html');
  }
$logado = $_SESSION['usuario'];
?>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&display=swap" rel="stylesheet">
<title>Col&eacute;gio &Aacute;vila</title>

<script language="JavaScript1.2" src="Language.js" type="text/javascript"></script>

<style type="text/css">
body {
color: #000000;
font-family: arial; verdana;
font-size: 10pt;
background: url(images/fundo.jpg) no-repeat bottom -200px left -350px, url(images/atomo_genius.png) no-repeat  top -200px right -350px;
}
.button {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 0px 2px;
  cursor: pointer;
}

</style>
</head>
<body bgcolor="#BFCFE1" link="#3F5167" vlink="#3F5167" alink="#3F5167" onload="Default()">

<table border="0" align="center" width="320" cellspacing="1" bordercolorlight="#000080" bordercolordark="#000080" height="123">
    <tr>
    <td width="100%" bgcolor="#FFFFFF" height="171" >
		<table align=center border=0 cellspacing=4>
			<tr>
				<td align="center"><img src="images/logo.png" /><br/><br/></td>
				
 			</tr>
<tr>
    <td>
    <a href="https://avilagoiania.kaltekgoiania.com.br/sistema/index.html" class="button">SAIR</a>
    <!--a href="alterar_senha.php" class="button">ALTERAR SENHA</a></td-->
</tr>
			<tr>
			   
				<td>
  
  


<?php

	$pesquisar = $_SESSION['usuarioId'];
	$result_usuario = "SELECT * FROM cftv WHERE login = '$pesquisar' AND status_matricula = 'ativo'";
	$resultado_usuario = mysqli_query($conn, $result_usuario);
	while($row_usuario = mysqli_fetch_array($resultado_usuario)){
echo"<tr>"; 
			echo"<td><strong><a style='font-size:14px;text-transform:uppercase;font-family:'Open Sans', sans-serif;'>Matr&iacute;cula:&nbsp;".$row_usuario['matricula']."</a><br><hr></strong>";
			echo"<strong><a style='font-size:14px;text-transform:uppercase;font-family:'Open Sans', sans-serif;'>Aluno:&nbsp;".$row_usuario['nome_aluno']."</a><br><hr></strong>";
			echo"<strong><a style='font-size:14px;text-transform:uppercase;font-family:'Open Sans', sans-serif;'>S&eacute;rie:&nbsp;".$row_usuario['identificador_turma']." - Turno:&nbsp;".$row_usuario['turno']. "</a><br><hr></strong>";
			echo"</td>";
			echo"</tr>";
			echo"<tr>";
			echo"<td align='right'><iframe width='356' height='200' src=".$row_usuario['sala']." frameborder='0' allowfullscreen></iframe></td>";			
			echo"</tr>";
	}
?>

<tr>
				<td align="center" colspan=2>
				<hr size="1" />
				Sistema compat&iacute;vel com os seguintes browsers:<br/>
				<img src="images/browser.jpg" />
				<hr size="1" />
				Voc&ecirc; tamb&eacute;m pode acessar via celular, tablets entre outros, atravez do pr&oacute;prio brownser do aparelho.
				<img src="images/mobile.jpg" />
				</td>
			</tr>					
		</table>
    </td>
  </tr>
</table>
</body>
</html>

<?php
include_once("dados.php");
session_destroy();
?>
