-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcliente-consulta.php
53 lines (51 loc) · 1.83 KB
/
cliente-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
46
47
48
49
50
51
52
53
<?php include("cliente-c.php");
$grupo = selectTodosClientes();
//var_dump($grupo);
?>
<html lang="pt-br">
<head>
<title>Consulta - Cliente</title>
<meta charset="utf-8">
</head>
<body>
<table border="1">
<thead>
<tr>
<th>Nome:</th>
<th>CPF:</th>
<th>Cidade:</th>
<th>Tipo de Cliente: F=Físico/J=Jurídico</th>
<th>Situação do Cliente: A=Ativo/I=Inativo</th>
<th>Editar</th>
</tr>
</thead>
<tbody>
<?php foreach ($grupo as $Clientes) { ?>
<tr>
<td><?=$Clientes["nomeCliente"]?></td>
<td><?=$Clientes["cpfCliente"]?></td>
<td><?=$Clientes["cidadeCliente"]?></td>
<td><?=$Clientes["tipoCliente"]?></td>
<td><?=$Clientes["situacaoCliente"]?></td>
<td>
<form nome="alterar" action="cliente-a.php" method="POST">
<input type="hidden" name="idCliente" value=<?=$Clientes["idCliente"]?> />
<input type="submit" name="Editar" value="Editar" />
</form>
</td>
<!--
<td>
<form name="excluir" action="cliente-c.php" method="POST">
<input type="hidden" name="idCliente" value=<?=$Clientes["idCliente"]?> />
<input type="submit" name="acao" value="Excluir" />
</form>
</td>
-->
</tr>
<?php } ?>
</tbody>
</table>
<br>
<a href="index.html">Voltar ao início</a>
</body>
</html>