-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvisualiza_prof.php
64 lines (57 loc) · 1.99 KB
/
visualiza_prof.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Visualização de Professores</title>
<style>
#botaoVermelho{
background: red;
color:aliceblue;
width: 80px;
border: 0;
}
#botaoVerde{
background: green;
color:aliceblue;
width: 80px;
border: 0;
}
.centralizado{
text-align:center
}
</style>
</head>
<body>
<center>
<h1>Professores Cadastrados</h1>
<table border="0" >
<tr>
<td class="centralizado">Nome</td>
<td class="centralizado">Sobrenome</td>
<td class="centralizado">E-mail </td>
<td class="centralizado">Telefone </td>
<td></td>
<td></td>
</tr>
<?php
require("conecta.php");
$dados_select = mysqli_query($conn, "SELECT nome, sobrenome, email, tel FROM prof");
while($dado = mysqli_fetch_array($dados_select)) {
echo '<tr>';
echo '<td >'.$dado['nome'].'</td>';
echo '<td>'.$dado['sobrenome'].'</td>';
echo '<td>'.$dado['email'].'</td>';
echo '<td>'.$dado['tel'].'</td>';
echo '<td> <a href="atualizar.html"><input id="botaoVerde" type="button" value="Atualizar" /></a></td>';
echo '<td> <a href="conn/excluir_prof.php"><input id="botaoVermelho" type="button" value="Excluir" /></a></td>';
echo '</tr>';
}
?>
</table>
<br />
<a href="../index.html"><input type="button" value="Voltar"></a>
</center>
</body>
</html>