-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
583 lines (472 loc) · 25.1 KB
/
search.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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
<?php
require_once("controller/controller.php");
class produtos
{
private $cod_cli;
private $logado;
public function __construct()
{
session_start();
if (isset($_SESSION['id_cliente']) && $_SESSION['id_cliente'] > 0) {
$cod_cli = $_SESSION['id_cliente'];
$logado = true;
$controller = new controller();
$cliente = $controller->captar($cod_cli);
$script2 = "javascript:document.location='carrinho.php'";
} else {
$script = "javascript:alert('Entre na sua conta para adicionar itens ao seu carrinho...');";
$script2 = "javascript:alert('Entre na sua conta para visualizar os itens do seu carrinho...');";
$logado = false;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Magic Hat</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="img/magichat/icone.ico" rel="icon">
<link href="img/magichat/icone.ico" rel="apple-touch-icon">
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<!-- Vendor CSS Files -->
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet">
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/glightbox/dist/css/glightbox.min.css"/>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css"/>
<!-- Template Main CSS File -->
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div vw class="enabled">
<div vw-access-button class="active"></div>
<div vw-plugin-wrapper>
<div class="vw-plugin-top-wrapper"></div>
</div>
</div>
<script src="https://vlibras.gov.br/app/vlibras-plugin.js"></script>
<script>
new window.VLibras.Widget('https://vlibras.gov.br/app');
</script>
<!-- ======= Header ======= -->
<header id="header" class="d-flex">
<div class="container d-flex align-items-center justify-content-between">
<div class="logo">
<h1><img src="img/magichat/logo.png">
<a href="index.php">Magic Hat</a></img>
</h1>
</div>
<nav id="navbar" class="navbar">
<ul>
<li><a class="nav-link scrollto" href="index.php">Home</a></li>
<li><a class="nav-link scrollto active" href="produtos.php">Brinquedos</a></li>
<li><a class="nav-link scrollto" href="index.php#flipcard">Porque brincar</a></li>
<li><a class="nav-link scrollto " href="faleconosco.php">Fale conosco</a></li>
<li class="dropdown"><a href="#"><span>
<ion-icon id="person" name="person"></ion-icon>
</span> </a>
<ul>
<?php
if($logado == 1){
?>
<li><a href="editarinfo.php">Editar informações</a></li>
<li><a href="model/destroy.php?id=1">Sair da conta</a></li>
<?php
}else{
?>
<li><a href="login.php">Login</a></li>
<li><a href="login_gerente.php">Login - Gerente</a></li>
<li><a href="cadastro.php">Cadastre-se</a></li>
<?php
}
?>
</ul>
</li>
</ul>
</ul>
<i class="bi bi-list mobile-nav-toggle"></i>
<button id="cart" class="navbar-toggler" type="button" data-bs-toggle="modal" onclick="<?php echo $script2; ?>">
<span>
<ion-icon id="cart" name="cart"></ion-icon>
</span>
</button>
</nav><!-- .navbar -->
</div>
</header><!-- End Header -->
<main id="main">
<!-- ====== Pesquisa =======-->
<div id="header">
<div class="col">
<nav class="navbar container text-center">
<div class="col order-first"></div>
<div class="col-9">
<form method="post" action="search.php" id="formPesq" name="formPesq">
<div class="input-group">
<input autofocus type="text" placeholder="Com o que vamos brincar?" class="form-control" name="txtPesquisa" required id="txtPesquisa">
<button style="background-color: #ED4442;" class="btn btn-outline-light" type="submit">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z" />
</svg>
</button>
</div>
</form>
</div>
<div class="col order-last"></div>
</nav>
</div>
</div>
<?php echo "<script>$('#txtPesquisa').val('" . $_POST['txtPesquisa'] . "');</script>"; ?>
<!-- ======= Container Section ======= -->
<section id="cta" class="cta">
<div class="container">
<div class="section-title" data-aos="zoom-out">
<p>Produtos</p>
<h2>RESULTADOS DA PESQUISA:</h2>
</div>
<center>
<div id="carouselExampleControls" data-aos-delay="5000" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img class="animate__animated animate__fadeInLeft ratio ratio-21x9" src="img/bannercategorias/bonecas.jpg">
</div>
<div class="carousel-item active">
<img class="animate__animated animate__fadeInLeft ratio ratio-21x9" src="img/bannercategorias/bonecos.jpg">
</div>
<div class="carousel-item">
<img class="animate__animated animate__fadeInLeft ratio ratio-21x9" src="img/bannercategorias/carrinhos.jpg">
</div>
<div class="carousel-item">
<img class="animate__animated animate__fadeInLeft ratio ratio-21x9" src="img/bannercategorias/herois.jpg">
</div>
<div class="carousel-item">
<img class="animate__animated animate__fadeInLeft ratio ratio-21x9" src="img/bannercategorias/jogos.jpg">
</div>
<div class="carousel-item">
<img class="animate__animated animate__fadeInLeft ratio ratio-21x9" src="img/bannercategorias/princesas.jpg">
</div>
</div>
</div>
</center>
</div>
</section>
<!-- End Cta Section -->
<!-- ======= Portfolio Section ======= -->
<section id="portfolio" class="portfolio">
<div class="container">
<ul id="portfolio-flters" class="d-flex justify-content-end" data-aos="fade-up">
<ul>
<li data-filter="*">Todos</li>
<li data-filter=".Bonecas">Bonecas</li>
<li data-filter=".Bonecos">Bonecos</li>
<li data-filter=".Jogos">Jogos</li>
</ul>
<ul style="margin-left: -20px;">
<li data-filter=".Carrinhos">Carrinhos</li>
<li data-filter=".Heróis">Heróis</li>
<li data-filter=".Princesas">Princesas</li>
</ul>
</ul>
<br>
<br>
<br>
<div class="row portfolio-container pricing" data-aos="fade-up">
<div class="row">
<?php
$controller = new controller();
$produtos = $controller->pesquisar($_POST['txtPesquisa'], 1);
for ($i = 0; $i < count($produtos); $i++) {
if ($logado != 0) {
$qttd = "var btn = document.getElementById('btnValue" . $produtos[$i]['id'] . "').innerHTML.toString();";
$script = "javascript:" . $qttd . "var result = confirm('Deseja adicionar ao carrinho?'); if(result == true){document.location='cart.php?produto=" . $produtos[$i]['id'] . "&qttd=' + btn}";
}
if($produtos[$i]['quant'] > 0){
?>
<div class="col-lg-3 col-md-6 mt-4 mt-md-0 portfolio-item <?php echo $produtos[$i]['categoria']; ?>">
<div class="box " data-aos="zoom-in" data-aos-delay="100">
<h3 style="height: 105px;"><?php echo $produtos[$i]['nome']; ?></h3>
<div><img style="height: 250px; width: 250px;" src="<?php echo $produtos[$i]['img1']; ?>"></div>
<h4><sup>R$</sup><?php echo $produtos[$i]['preco']; ?></h4>
<div>
<div class="btn-group me-2" role="group" aria-label="First group">
<button id="btnMenos" type="button" onclick="javascript:var btn = parseInt(document.getElementById('btnValue<?php echo $produtos[$i]['id']; ?>').innerHTML.toString()); if(btn > 1){document.getElementById('btnValue<?php echo $produtos[$i]['id']; ?>').innerHTML = btn - 1}" style="background-color: #ED4442; border-color: #ED4442;" class="btn btn-primary">-</button>
<button id="btnValue<?php echo $produtos[$i]['id']; ?>" type="button" style="background-color: white; color:black; border-color: #ED4442;" class="btn btn-primary">1</button>
<button id="btnMais" onclick="javascript:var btn = parseInt(document.getElementById('btnValue<?php echo $produtos[$i]['id']; ?>').innerHTML.toString()); if(btn < <?php echo $produtos[$i]['quant']; ?>){document.getElementById('btnValue<?php echo $produtos[$i]['id']; ?>').innerHTML = btn + 1}" type="button" style="background-color: #ED4442; border-color: #ED4442;" class="btn btn-primary">+</button>
</div>
</div>
<div class="btn-wrap">
<button type="button" class="btn btn-buy btn-primary" data-bs-target="#staticBackdrop" style="border: 0px;" onclick="<?php echo $script; ?>">
+ Carrinho
</button>
</div>
<div class="btn-wrap" style="margin-top: -10px;">
<button type="button" class="btn btn-buy btn-primary" data-bs-toggle="modal" data-bs-target="#staticBackdrop<?php echo $i; ?>" style="border: 0px;">
Detalhes
</button>
</div>
</div>
</div>
<?php
}
}
?>
</div>
</div>
</div>
</section><!-- End Portfolio Section -->
<!-- ======= Janela Modal ======= -->
<section>
<?php
for ($i = 0; $i < count($produtos); $i++) {
if ($logado != 0) {
$qttd = "var btn = document.getElementById('btnVar" . $produtos[$i]['id'] . "').innerHTML.toString();";
$script = "javascript:" . $qttd . "var result = confirm('Deseja adicionar ao carrinho?'); if(result == true){document.location='cart.php?produto=" . $produtos[$i]['id'] . "&qttd=' + btn}";
}
if($produtos[$i]['quant'] > 0){
?>
<div class="modal fade" id="staticBackdrop<?php echo $i; ?>" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered modal-dialog modal-xl">
<div class="modal-content">
<!-- Carros de imagens do produto -->
<div class="products modal-body">
<div class="row">
<div class="col-md-6">
<div id="carouselExampleIndicators<?php echo $i; ?>" class="carousel slide" data-bs-ride="true">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="<?php echo $produtos[$i]['img1']; ?>" class="d-block w-100">
</div>
<div class="carousel-item">
<img src="<?php echo $produtos[$i]['img2']; ?>" class="d-block w-100">
</div>
<div class="carousel-item">
<img src="<?php echo $produtos[$i]['img3']; ?>" class="d-block w-100">
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators<?php echo $i; ?>"
data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators<?php echo $i; ?>"
data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
</button>
</div>
</div>
<div class="text-center col-md-6">
<div>
<h2><?php echo $produtos[$i]['nome']; ?></h2>
<p></p>
</div>
<!-- Acordião -->
<div>
<!-- Acordião Descrição -->
<div class="accordion" id="accordionExample">
<div class="accordion-item">
<h2 class="accordion-header" id="headingOne">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Descrição
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="headingOne"
data-bs-parent="#accordionExample">
<div class="accordion-body">
<?php echo $produtos[$i]['descricao']; ?>
</div>
</div>
</div>
<!-- Acordião Detalhe -->
<div class="accordion-item">
<h2 class="accordion-header" id="headingThree">
<button class="Bara-button accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Detalhes
</button>
</h2>
<div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo"
data-bs-parent="#accordionExample">
<div class="accordion-body">
<table class="table">
<tbody>
<tr>
<th scope="row">Tipo:</th>
<td><?php echo $produtos[$i]['tipo1'] . " e " . $produtos[$i]['tipo2']; ?></td>
</tr>
<tr>
<th scope="row">Categoria(s):</th>
<td><?php echo $produtos[$i]['categoria']; ?></td>
<tr>
<th scope="row">Faixa etária:</th>
<td><?php echo $produtos[$i]['faixa']; ?></td>
</tr>
<tr>
<th scope="row">Marca</th>
<td><?php echo $produtos[$i]['marca']; ?></td>
</tr>
<tr>
<th scope="row">Material/Composição</th>
<td><?php echo $produtos[$i]['material']; ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<br>
<!-- parte do Preço do produto -->
<div class="row pricing">
<div class="col-md-12">
<h4 style="color: black"><sup>R$ <?php echo $produtos[$i]['preco']; ?></sup></h4>
</div>
</div>
<br>
<div class="product btn-group" role="group" aria-label="Basic example">
<button type="button" onclick="javascript:var btn = parseInt(document.getElementById('btnVar<?php echo $produtos[$i]['id']; ?>').innerHTML.toString()); if(btn > 1){document.getElementById('btnVar<?php echo $produtos[$i]['id']; ?>').innerHTML = btn - 1}" style="background-color: #ED4442; border-color: #ED4442;" class="btn btn-primary">-</button>
<button id="btnVar<?php echo $produtos[$i]['id']; ?>" type="button" style="background-color: white; color:black; border-color: #ED4442;" class="btn btn-primary">1</button>
<button onclick="javascript:var btn = parseInt(document.getElementById('btnVar<?php echo $produtos[$i]['id']; ?>').innerHTML.toString()); if(btn < <?php echo $produtos[$i]['quant']; ?>){document.getElementById('btnVar<?php echo $produtos[$i]['id']; ?>').innerHTML = btn + 1}" type="button" style="background-color: #ED4442; border-color: #ED4442;" class="btn btn-primary">+</button>
</div>
<br>
<!-- Botão de compra -->
<br>
<div class="product text-center">
<button type="button" class="btn btn-buy" onclick="<?php echo $script; ?>">+ Carrinho</button>
<button type="button" class=" btn-buy btn " data-bs-dismiss="modal">Voltar</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
}
}
?>
</section>
<!-- End Janela modal -->
</main>
<!-- End #main -->
<!-- ======= Footer ======= -->
<svg class="hero-waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 24 150 28 " preserveAspectRatio="none">
<defs>
<path id="wave-path" d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z">
</defs>
<g class="wave1">
<use xlink:href="#wave-path" x="50" y="4" fill="rgba(161,30,29, .1)">
</g>
<g class="wave2">
<use xlink:href="#wave-path" x="70" y="0" fill="rgba(161,30,29, .2)">
</g>
<g class="wave3">
<use xlink:href="#wave-path" x="50" y="7" fill="#A11E1D">
</g>
</svg>
<footer>
<!-- Seção de Mídias Sociais -->
<ul class="social_icon">
<li><a href="https://twitter.com/MagicHatOficial">
<ion-icon name="logo-twitter"></ion-icon>
</a>
</li>
<li><a href="https://www.instagram.com/magic.hat.of/">
<ion-icon name="logo-instagram"></ion-icon>
</a>
</li>
<li><a href="https://www.linkedin.com/in/magic-hat-45bb81257">
<ion-icon name="logo-linkedin"></ion-icon>
</a>
</li>
<li><a href="https://www.facebook.com/profile.php?id=100088264081232">
<ion-icon name="logo-facebook"></ion-icon>
</a>
</li>
</ul>
<div class="container text-center text-md-start mt-5">
<div class="row mt-3">
<!-- 1° Coluna -->
<div class="col-md-3 col-lg-4 col-xl-3 mx-auto mb-4">
<!-- Conteúdo sobre o Site -->
<h3 class="fw-bold">
Magic Hat
</h3>
<p>
A Magic Hat é uma loja virtual de brinquedos que visa atender seus clientes de forma rápida, interativa, com qualidade em seu atendimento e produtos e, principalmente, com segurança.
</p>
</div>
<!-- 3° Coluna -->
<div class="col-md-3 col-lg-2 col-xl-2 mx-auto mb-4">
<!-- Links Desenvolvedores -->
<h3 class="fw-bold">
Desenvolvedores
</h3>
<p class="txtCenter">
<a class="nav-link scrollto" href="https://github.com/joaopedro2602" target="_blank">João Pedro Cabral</a>
</p>
<p class="txtCenter">
<a class="nav-link scrollto" href="https://github.com/MarianeBS" target="_blank">Mariane Souza</a>
</p>
<p class="txtCenter">
<a class="nav-link scrollto" href="https://github.com/TamirisRC" target="_blank">Tamiris Carvalho</a>
</p>
<p class="txtCenter">
<a class="nav-link scrollto" href="https://github.com/vek03" target="_blank">Victor Cardoso</a>
</p>
<p class="txtCenter">
<a class="nav-link scrollto" href="https://github.com/VictordRoma" target="_blank">Victor Roma</a>
</p>
</div>
<!-- 3° Coluna -->
<div class="col-md-4 col-lg-3 col-xl-3 mx-auto mb-md-0 mb-4">
<!-- Links Contato -->
<h3 class="fw-bold">
Contato
</h3>
<p>
Endereço: Av. Águia de Haia, 2633 - Cidade Antônio Estêvão de Carvalho, São Paulo
</p>
<p>
CEP: 01311-000
</p>
<p>
Atendimento por: [email protected]
</p>
<p>
Contato: (11) 69318-8308
</p>
</div>
</div>
</div>
<p>©2022 Copyright <b>Magic Hat</b> | Todos os Direitos Reservados</p>
</footer>
<!-- End Footer -->
<a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>
<!-- Vendor JS Files -->
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/gh/mcstudios/glightbox/dist/js/glightbox.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.6/isotope.pkgd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.5/jquery.validate.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-IDwe1+LCz02ROU9k972gdyvl+AESN10+x7tBKgc9I5HFtuNz0wWnPclzo6p9vxnk" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<!-- Template Main JS File -->
<script src="js/main.js"></script>
</body>
</html>
<?php
}
}
new produtos();
?>