-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathestabelecimento-lista.php
50 lines (37 loc) · 1.26 KB
/
estabelecimento-lista.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
<?php include("header.php");
include("banco-estabelecimento.php");
include("conecta.php"); ?>
<table class="table table-bordered">
<thead class="thead-inverse">
<tr>
<th> ID </th>
<th> Razao Social</th>
<th> CNPJ </th>
<th> Alterar Dados</th>
<th> Remover </th>
</tr>
</thead>
<?php
$estabelecimentos = listaEstabelecimento($conexao);
foreach($estabelecimentos as $estabelecimento):
?>
<tbody>
<tr>
<th scope="row"> <?= $estabelecimento['id'] ?> </th>
<th><?= $estabelecimento['razao']?></th>
<th><?=$estabelecimento['CNPJ']?></th>
<th><a class="btn btn-primary" href="altera-estabelecimento-formulario.php?id=<?=$estabelecimento['id']?>"> alterar </a> </th>
<th>
<form action="remove-estabelecimento.php" method="post">
<input type="hidden" name="id" value="<?=$estabelecimento['id']?>">
<button class="btn btn-danger"> remover </button>
</form>
</th>
</tr>
</tbody>
<?php
endforeach
?>
</table>
<button class="btn btn-primary" id="voltar" onclick="voltar()"> voltar </button>
<?php include("footer.php"); ?>