-
Notifications
You must be signed in to change notification settings - Fork 0
/
movimento-f.php
64 lines (61 loc) · 2.45 KB
/
movimento-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
<?php
//Cliente
include("cliente-c.php");
$Clientes = selectIdCliente($_POST["idCliente"]);
//Conta
include("conta-c.php");
$grupoConta = selectTodosConta();
//Tipomov
include("tiposmovimento-c.php");
$grupoTipoMov = selectTodosTipoMov();
?>
<DOCTYPE html>
<html lang="pt-br">
<head>
<title>Gerar Movimento</title>
<meta charset="utf-8">
</head>
<form name="Movimentos" action="movimento-c.php" method="POST">
<table border="1">
<tbody>
<tr>
<td>Cliente:</td>
<td><input type="text" name="<?=$Clientes["idCliente"]?>" value="<?=$Clientes["idCliente"]?>" disabled="true" /></td>
</tr>
<tr>
<td>Conta:</td>
<td>
<select name="idConta">
<?php
foreach ($grupoConta as $Contas)
echo '<option name="' . $Contas['idConta'] . '" value=" ' . $Contas['idConta'] . '"> ' . $Contas['idConta'] . ' </option>';
?>
</select>
</td>
</tr>
<tr>
<td>Tipo de Movimento:</td>
<td>
<select name="idTipoMov">
<?php
foreach ($grupoTipoMov as $TiposMovimento)
echo '<option name="' . $TiposMovimento['idTipoMov'] . '" value=" ' . $TiposMovimento['idTipoMov'] . '"> ' . $TiposMovimento['idTipoMov'] . ' </option>';
?>
</select>
</td>
</tr>
<tr>
<td>Data Movimento - AAAA-MM-DD</td>
<td><input type="text" name="dataMovimento" value="" /></td>
</tr>
<tr>
<td>Valor do Movimento:</td>
<td><input type="text" name="valorMovimento" value="" /></td>
</tr>
<tr>
<td><input type="submit" name="acao" value="Enviar" /></td>
</tr>
</tbody>
</table>
</form>
</html>