-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtipoconta-consulta.php
45 lines (44 loc) · 1.56 KB
/
tipoconta-consulta.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
<?php include("tipoconta-c.php");
$grupo = selectTodosTC();
//var_dump($grupo);
?>
<html lang="pt-br">
<head>
<title>Consulta - Tipos de Conta</title>
<meta charset="utf-8">
</head>
<body>
<table border="1">
<thead>
<tr>
<th>Código:</th>
<th>Descrição:</th>
<th>Editar</th>
<th>Excluir</th>
</tr>
</thead>
<tbody>
<?php foreach ($grupo as $TiposDeConta) { ?>
<tr>
<td><?=$TiposDeConta["idTipoConta"]?></td>
<td><?=$TiposDeConta["descricaoTipoConta"]?></td>
<td>
<form nome="alterar" action="tipoconta-a.php" method="POST">
<input type="hidden" name="idTipoConta" value=<?=$TiposDeConta["idTipoConta"]?> />
<input type="submit" name="Editar" value="Editar" />
</form>
</td>
<td>
<form name="excluir" action="tipoconta-c.php" method="POST">
<input type="hidden" name="idTipoConta" value=<?=$TiposDeConta["idTipoConta"]?> />
<input type="submit" name="acao" value="Excluir" onclick="alert('Cadastro excluído com sucesso.');"/>
</form>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<br>
<a href="index.html">Voltar ao início</a>
</body>
</html>