-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpgcadvend.html
152 lines (132 loc) · 6.42 KB
/
pgcadvend.html
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<title>Mensa Seminterrata | Cadastro de Produtos</title>
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
<link rel="icon" type="image/png" href="favicon.png" sizes="32x32">
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="./style2.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
</head>
<body background="fundo.jpg">
<!-- Link css -->
<link href='https://fonts.googleapis.com/css?family=Montserrat|Cardo' rel='stylesheet' type='text/css'>
<!-- Jundiaí Shopping -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="./script.js"></script>
<!-- Logão -->
<center>
<div class="hero">
<img src="logo3.png" width="25%"/>
<br><br>
<div class="hero2">
<br>
<ul class="nav justify-content-center">
<li class="nav-item">
<a class="nav-link active" href="#" style="color:#F1D076">INÍCIO</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#" style="color:#F1D076">•</a>
</li>
<li class="nav-item">
<a class="nav-link" href="vinhos.html" style="color:#F1D076">VINHOS</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#" style="color:#F1D076">•</a>
</li>
<li class="nav-item">
<a class="nav-link" href="cervejas.html" style="color:#F1D076">CERVEJAS</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#" style="color:#F1D076">•</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="espumantes.html" style="color:#F1D076">ESPUMANTES</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#" style="color:#F1D076">•</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#" style="color:#F1D076">DESTILADOS</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#" style="color:#F1D076">•</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" style="color:#F1D076">SOBRE NÓS</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" style="color:#F1D076">⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀</a>
</li>
<li class="nav-item">
<a class="nav-link" href="login.html" style="color:#F1D076">ENTRAR</a>
</li>
</ul>
<br>
</div>
</div>
</center>
<br><br>
<!-- Corpo -->
<center>
<div class="shadow-lg p-3 mb-5 bg rounded" style="background:rgb(255, 255, 255) ;width: 45%;">
<img src="dados.png" width="70%">
<br><br>
<div class="input-group mb-3" style="width: 70%;">
<input style="border-color: #DDB33B" name="login" type="text" class="form-control" placeholder="Nome de Usuário" aria-label="Username" aria-describedby="basic-addon1">
<input style="border-color: #DDB33B" name="senha" type="text" class="form-control" placeholder="Senha" aria-label="Username" aria-describedby="basic-addon1">
</div>
<div class="input-group mb-3" style="width: 70%;">
<input style="border-color: #DDB33B" name="nome_corp" type="text" class="form-control" placeholder="Nome Corporativo" aria-label="Username" aria-label="Username" aria-describedby="basic-addon1">
</div>
<div class="input-group mb-3" style="width: 70%;">
<input style="border-color: #DDB33B" name="email_admin" type="text" class="form-control" placeholder="Email Administrativo" aria-label="Username" aria-label="Username" aria-describedby="basic-addon1">
</div>
<div class="input-group mb-3" style="width: 70%;">
<input style="border-color: #DDB33B" name="email_sac" type="text" class="form-control" placeholder="Email Sac" aria-label="Username" aria-label="Username" aria-describedby="basic-addon1">
</div>
<div class="input-group mb-3" style="width: 70%;">
<div class="custom-file">
<input type="file" class="custom-file-input" id="inputGroupFile01">
<label style="border-color: #DDB33B; text-align: left; color: #6C757D" class="custom-file-label" for="inputGroupFile01">Foto de Perfil</label>
</div>
</div>
<br>
<button onMouseOver="style.backgroundColor ='#EBC854'; style.borderColor ='#EBC854'" onMouseOut="style.backgroundColor ='#fff'; style.borderColor ='#DDB33B'" style="border-color: #DDB33B; margin-bottom: 2%;" type="button" name="acao" class="btn btn-outline-secondary">Cadastrar</button>
</div>
</center>
</body>
</html>
<!--
<?php
include("connection.php");
@$login = $_POST["login"];
@$senha = $_POST["senha"];
@$email_admin = $_POST["email_admin"];
@$nome_corp = $_POST["nome_corp"];
@$imagem = $_FILES["imagem"];
@$email_sac = $_POST["email_sac"];
@$acao = $_POST["acao"];
if(empty($nome) or empty($preco) or empty($imagem) or empty($categoria)){
echo' <script>alert("faltou algum campo obrigatório"</script>';
}else{
if($imagem != NULL) {
$nomeFinal = time().'.jpg';
if (move_uploaded_file($imagem['tmp_name'], $nomeFinal)) {
$tamanhoImg = filesize($nomeFinal);
$mysqlImg = addslashes(fread(fopen($nomeFinal, "r"), $tamanhoImg));
mysqli_query($con, "insert into usersvend(login, senha, email_admin, nome_corp, imagem, email_sac)
values ('$login','$senha','$email_admin','$nome_corp','$mysqlImg','$email_sac')");
session_start();
$_SESSION["login"]=$login;
$_SESSION["senha"]=$senha;
header("location:index.php");
}else {
echo"Você não realizou o upload de forma satisfatória.";
}
}
}
?>