-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcad_filme.php
75 lines (54 loc) · 1.9 KB
/
cad_filme.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
<?php
require_once "classes/Diretor.php";
$diretor = new Diretor();
$lista = $diretor->listar();
?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Top Filmes</title>
</head>
<body>
<h1>Top Filmes</h1>
<h3> Novo Filme </h3>
<form enctype="multipart/form-data" action="filme-gravar.php" method="POST">
<label for="titulo"> Titulo : </label>
<input type="text" name="titulo">
<br><br>
<label for="cartaz"> Imagem : </label>
<input type="file" name="imgcartaz">
<br><br>
<label for="sinopse"> Sinopse : </label><br>
<textarea type="text" name="sinopse" rows="6" cols="45"></textarea>
<br><br>
<label for="ano_lancamento"> Ano de Lançamento : </label>
<input type="number" name="ano_lancamento">
<br><br>
<label for="seldiretor">Diretor : </label>
<select name="seldiretor">
<option value="">Selecione...</option>
<?php
foreach ($lista as $linha):
echo "<option value='{$linha['id']}'>
{$linha['nome']}
</option>";
endforeach
?>
</select>
<br><br>
<label for="duracao"> Duração em minutos : </label>
<input type="number" name="duracao">
<br><br>
<label for="nota_imdb"> Nota IMDB : </label>
<input type="text" name="nota_imdb">
<br><br>
<input type="submit" value="Gravar">
<br><br>
<button type="button"><a href="filme-listar.php">Listar Filmes</a></button>
<br><br>
<button type="button"><a href="index.html">Menu Principal</a></button>
</form>
</body>
</html>