-
Notifications
You must be signed in to change notification settings - Fork 3
/
criar-selecao.php
55 lines (47 loc) · 1.4 KB
/
criar-selecao.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
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Cadastrar seleção</title>
<link rel="stylesheet" type="text/css" href="css/base.css">
</head>
<body>
<div id="global">
<?php
include("php/menu.php");
include("php/main.php");
$id_prog = isset($_GET['idProg']) ? $_GET['idProg'] : NULL;
?>
<div class="content">
<section>
<h1>Cadastrar nova seleção</h1>
</section>
<section>
<form method="post" action="php/criar-selecao.php">
<!-- Input do id do programa -->
<?php
echo "<input type='hidden' name='idProg' value='$id_prog' />";
?>
<label for="_nome">Nome:</label><br/>
<input type="text" name="nome" id="_nome" maxlength="30" required />
<br/>
<label for="_descricao">Descrição:</label><br/>
<textarea rows="5" name="descricao" id="_descricao" maxlength="300"></textarea>
<br/>
<label for="_dtInicio">Data de Início:</label><br/>
<input type="date" name="dtInicio" id="_dtInicio" required />
<br/>
<label for="_dtTermino">Data de Término:</label><br/>
<input type="date" name="dtTermino" id="_dtTermino" required />
<br/>
<input type="submit" value="Cadastrar">
<input type="reset" value="Cancelar">
</form>
</section>
</div>
</div>
</body>
</html>