-
Notifications
You must be signed in to change notification settings - Fork 0
/
lacoste.php
155 lines (127 loc) · 6.81 KB
/
lacoste.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="estilos.css">
<title>inicio</title>
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand col-md-1" >
<img src="img/logo.png" alt="logo" width="170" height="67"> </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" id="inicio" aria-current="page" href="inicio.php">INICIO</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="agregar.html">PRODUCTOS</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="listar.php">CONTACTO</a>
</li>
</ul>
<a class="btn btn-secondary" id="inicio" aria-current="page" href="login.html">Acceso Vendedores</a>
</div>
</div>
</nav>
</header>
<h1>Tienda Online</h1>
<div class="texto"> ENVÍOS GRATIS EN COMPRAS MAYORES A $7000
</div> <br>
<div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1" aria-label="Slide 2"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="img/slider.jpg" alt="slider">
</div>
<div class="carousel-item">
<img src="img/slider2.png" alt="Remeras">
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<div class="texto"> 3, 6 y 12 CUOTAS SIN INTERÉS
</div>
<div class="iconografia"> <img src="img/iconografia.jpg" alt="logo" width="" height="">
</div>
<div class="container">
<div class="row">
<div class="col">
<p><strong>SELECCIONAR MARCA </strong> </p><hr>
<p> <button type="submit" class="btn btn-warning"> <a href="addidas.php" style="text-decoration:none">Addidas </a></button> <p>
<p> <button type="submit" class="btn btn-warning"> <a href="portsaid.php"style="text-decoration:none">Portsaid </a></button> </p>
<p> <button type="submit" class="btn btn-warning"> <a href="lacoste.php"style="text-decoration:none">Lacoste </a></button> </p>
</div>
<div class="col order-12">
<p><strong>SELECCIONAR PRECIO</strong> </p><hr>
<p> <button type="submit" class="btn btn-warning"><a href="prodmenor5000.php" style="text-decoration:none" > $0 - $5000 </a></button> </p>
<p> <button type="submit" class="btn btn-warning"><a href="prodmayor5000.php" style="text-decoration:none" > $5000 - $10000 </a></button> </p>
<p> <button type="submit" class="btn btn-warning"><a href="prodmayor10000.php" style="text-decoration:none" > $10000 - $25000 </a></button> </p>
</div>
<div class="col order-1">
<p><strong>SELECCIONAR TALLE </strong> </p><hr>
<p> <button type="submit" class="btn btn-warning"><a href="talles.php" style="text-decoration:none">S</a></button> </p>
<p> <button type="submit" class="btn btn-warning"><a href="tallem.php" style="text-decoration:none">M</a></button> </p>
<p> <button type="submit"class="btn btn-warning"><a href="tallel.php"style="text-decoration:none">L</a></button> </p>
</div>
</div>
</div>
<h1> Resultado de la búsqueda </h1>
<section>
<div class="container">
<div class="row">
<?php
// 1) Conexion y selección de base de datos
$conexion = mysqli_connect("127.0.0.1", "root", "");
mysqli_select_db($conexion, "tienda"); // esto lo podemos poner acá o mas abajo, no hay problema
// 2) Preparar la orden SQL
$consulta="SELECT * FROM `ropa` WHERE `marca` = 'Lacoste' ";
// 3) Ejecutar la orden y obtenemos los registros
$datos= mysqli_query($conexion, $consulta);
// recorro todos los registros y genero una CARD PARA CADA UNA
while ($reg = mysqli_fetch_array($datos)) {?>
<div class="card col-sm-12 col-md-6 col-lg-3">
<img class="card-img-top" src="data:image/jpg;base64, <?php echo base64_encode($reg['imagen'])?>" alt="" width="" height="")>
<h3 class="card-title" style="width: 100%; font-size:25px;"><?php echo ucwords($reg['marca']) ?></h3>
<span>$ <?php echo $reg['precio']; ?></span>
<script src="https://www.mercadopago.com.ar/integrations/v1/web-payment-checkout.js"
data-preference-id="533043428-bdf104de-3816-448d-95c1-1ac5a2ef3132" data-source="button">
</script>
</div>
<?php } ?>
</div>
</div>
</section>
<br>
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<footer>
<!-- Copyright -->
<div class="text-center p-3">
© 2022 Developed by
<a class="text-dark" href="https://wa.me/+542914131566?text=Hola,%20me%20interesa%20un%20producto.">Paferdu</a>
</div>
<!-- Copyright -->
</footer></body>
</html>