-
Notifications
You must be signed in to change notification settings - Fork 3
/
resultados-selecoes.php
44 lines (40 loc) · 1.07 KB
/
resultados-selecoes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Meu perfil</title>
<link rel="stylesheet" type="text/css" href="css/base.css">
<!-- <link rel="stylesheet" type="text/css" href="css/aluno.css"> -->
</head>
<body>
<div id="global">
<?php
include("php/menu.php");
include("php/main.php");
?>
<div class="content">
<section>
<h1>Resultados das Seleções</h1>
</section>
<?php
include("php/conexao_banco.php");
echo "<ul class='informativo'>";
$conexao_consulta = new Conexao();
$consulta = $conexao_consulta->conectar()->query("select * from informativo where tipo = 'resultado' ORDER by data desc");
while ($linha = $consulta->fetch(PDO::FETCH_ASSOC)) {
echo "<li>
<div>
<h2>{$linha['titulo']}</h2><br>
<p>{$linha['texto']}</p><br>
<a download href='docs/{$linha['arquivo']}'>Baixar Anexo</a>
</div>
</li>";
}
echo '</ul>';
?>
</div>
</body>
</html>