forked from AdelinedeNazare/MaisHistoria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postimagem.php
76 lines (73 loc) · 2.65 KB
/
postimagem.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
<?php
include_once 'connection.php';
include_once 'util.php';
?>
<!DOCTYPE html>
<html lang="pt-br">
<body>
<header>
<?php
include_once 'login.php';
include_once 'homeadm.php';
?>
</header>
<div class="container conteudo">
<?php
include_once 'carrosel.php';
if (isset($_POST['enviar'])) {
uploadFile($conn, 'tb_imagens', 'nome');
}
?>
<div id="gtco-started" style="background-color: #A54812 ">
<div class="row animate-box">
<div class="col-md-8 col-md-offset-2 text-center gtco-heading ">
<h2>Insira aqui seu imagem:</h2>
<hr>
</div>
<div class="col-sm-4 col-sm-offset-4">
<form class="form-inline" action="" method="post" enctype="multipart/form-data">
<div class="form-group">
<label for="nome" class="col-sm-2 control-label">Nome:</label><br>
<div class="col-sm-8">
<input type="text" class="form-control" name="nome" placeholder="Guerra dos Farrapos">
</div>
</div>
<div class="form-group">
<label for="descricao" class="col-sm-2 control-label">Descrição:</label><br>
<div class="col-sm-8">
<input type="text" class="form-control" name="descricao"
placeholder="Na imagem cena da Guerra dos Farrapos.">
</div>
</div>
<div class="form-group">
<label for="assunto" class="col-sm-2 control-label">Assunto:</label><br>
<div class="col-sm-8">
<select title="assunto" name="assunto">
<?php showSubjects($conn); ?>
</select>
</div>
</div>
<div class="col-md-12 col-sm-12">
<div class="form-group">
<br><input type="file" class="form-control" name="arquivo" required="">
</div>
</div>
</div>
<br>
<br>
<div class="col-md-2 col-sm-offset-5">
<Br>
<button type="submit" name="enviar" class="btn btn-default btn-block"><b>Enviar Imagem</b></button>
<br>
</div>
<div class="col-md-4 col-sm-offset-5">
<a href="postsgeral.php">Volte para a página anterior...</a>
</div>
</div>
</div>
</div>
<?php
include_once 'footer.php';
?>
</body>
</html>