-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
203 lines (150 loc) · 7.32 KB
/
index.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
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!doctype html>
<html lang="pt-br">
<head>
<!-- meta tags requeridos -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Bem-vindo(a) ao Maets</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="node_modules/bootstrap/compiler/bootstrap.css">
<link rel="stylesheet" href="node_modules/bootstrap/compiler/style.css">
<!-- Meus Css -->
<link rel="stylesheet" href="public/styles/main.css">
<link rel="stylesheet" href="public/styles/index.css">
<link rel="stylesheet" href="public/styles/responsive.css">
<!-- Icone CSS -->
<link rel="icon" href="public/img/Icone-novo.png">
</head>
<body>
<?php
if(isset($_GET['sucess'])){
if($_GET['sucess'] == 'true'){
echo "
<script>
setTimeout(() => {
alert('Cadastrado com sucesso')
}, 500)
</script>";
}
}
require_once('src/global.php');
require_once('functions/client_functions.php');
//caminho para o public/
$path = '';
?>
<div class="login">
<a href="register.php">Iniciar sessão</a>
</div>
<?php
header_client($path, true);
?>
<!-- Carrosel -->
<div class="bd-example">
<div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleCaptions" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleCaptions" data-slide-to="1"></li>
<li data-target="#carouselExampleCaptions" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="public/img/death.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h3>DESTAQUES DA SEMANA</h3>
<p>De graça após a compra</p>
</div>
</div>
<div class="carousel-item">
<img src="public/img/lastofus.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h3>DESTAQUES DA SEMANA </h3>
<p>"I've struggled a long time with survivin', but no matter what you have to find something to
fight for" -Joel</p>
</div>
</div>
<div class="carousel-item">
<img src="public/img/thewitcher.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleCaptions" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleCaptions" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="porfora">
<div class="container pordentro">
<br>
<ul class="nav nav-tabs ">
<li class="nav-item">
<a class="nav-link disabled active" href="#" >Novos e Populares</a>
</li>
</ul>
<br>
<?php
$products = new Product();
listProducts($path, $products->list());
?>
</div>
</div>
<div class="trasicion"></div>
<!-- Footer Register -->
<footer class="page-footer font-small unique-color-dark">
<div class="footer-content">
<div class="container">
<!-- Grid row-->
<div class="row py-4 d-flex align-items-center">
<!-- Grid column -->
<div
class="col-md-12 col-lg-12 text-center text-md-left mb-4 mb-md-0 d-flex align-items-center justify-content-center form-register">
<h3>
CRIE SUA CONTA E JOGUE AGORA MESMO!
</h3>
<form class="register" action="src/controller/register-client.php" method='post'>
<div class="form-group">
<label for="exampleInputEmail1">Nome</label>
<input type="text" name="nome" class="form-control" id="exampleInputEmail1"
aria-describedby="emailHelp" placeholder="Digite seu nome" required>
</div>
<!-- Email -->
<div class="form-group">
<label for="exampleInputEmail1">Endereço de E-mail</label>
<input type="email" name="email" class="form-control" id="exampleInputEmail1"
aria-describedby="emailHelp" placeholder="Digite seu E-mail" required>
</div>
<!-- Senha -->
<div class="form-group">
<label for="exampleInputPassword1">Senha</label>
<input type="password" name="senha" class="form-control" id="exampleInputPassword1"
placeholder="Digite sua senha" required>
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1" required>
<label class="form-check-label" for="exampleCheck1">Você concorda com nossos
termos?</label>
</div>
<button type="submit" class="btn btn-default-color">Registre-se</button>
</form>
</div>
<!-- Grid column -->
</div>
<!-- Grid column -->
</div>
</footer>
<?php
footer_client();
contact_modal();
?>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<?php
scripts($path)
?>
</body>
</html>