-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconta-f.php
86 lines (72 loc) · 3.21 KB
/
conta-f.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
//Agencia
include("agencia-c.php");
$grupo = selectTodos();
//Cliente
include("cliente-c.php");
$grupoCli = selectTodosClientes();
//TipoConta
include("tipoconta-c.php");
$grupoTC = selectTodosTC();
?>
<DOCTYPE html>
<html lang="pt-br">
<head>
<title>Adicionar Conta</title>
<meta charset="utf-8">
</head>
<form name="Contas" action="conta-c.php" method="POST">
<table border="1">
<tbody>
<tr>
<td>Código Conta</td>
<td><input type="text" name="idConta" value="" disabled="true" /></td>
</tr>
<tr>
<td>Agencia</td>
<td>
<select name="idAgencia">
<?php
foreach ($grupo as $Agencias)
echo '<option name=" '.$Agencias['idAgencia'].' " value=" ' . $Agencias['idAgencia'] . '"> ' . $Agencias['nomeAgencia'] . ' </option>';
?>
</select>
</td>
</tr>
<tr>
<td>Cliente</td>
<td>
<select name="idCliente">
<?php
foreach ($grupoCli as $Clientes)
echo '<option name=" '.$Clientes['idCliente'].' " value=" ' . $Clientes['idCliente'] . '"> ' . $Clientes['nomeCliente'] . ' </option>';
?>
</select>
</td>
</tr>
<tr>
<td>Tipo Conta</td>
<td>
<select name="idTipoConta">
<?php
foreach ($grupoTC as $TiposDeConta)
echo '<option name=" '.$TiposDeConta['idTipoConta'].' " value=" ' . $TiposDeConta['idTipoConta'] . '"> ' . $TiposDeConta['descricaoTipoConta'] . ' </option>';
?>
</select>
</td>
</tr>
<tr>
<td>Limite de Conta</td>
<td><input type="text" name="limiteConta" value="" /></td>
</tr>
<tr>
<td>Data de Abertura - AAAA-MM-DD</td>
<td><input type="text" name="dataAbertura" value="" /></td>
</tr>
<tr>
<td><input type="submit" name="acao" value="Enviar" /></td>
</tr>
</tbody>
</table>
</form>
</html>