-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshop-single.php
More file actions
202 lines (184 loc) · 8.27 KB
/
shop-single.php
File metadata and controls
202 lines (184 loc) · 8.27 KB
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
<?php
session_start();
include("./php/conexion.php");
if(!isset($_SESSION['datos_login'])){
}
$arregloUsuario = $_SESSION['datos_login'];
if( isset($_GET['id'])){
$resultado = $conexion ->query("select * from productos where id=".$_GET['id'])or die($conexion->error);
if(mysqli_num_rows($resultado) > 0 ){
$fila = mysqli_fetch_row($resultado);
}else{
header("location: ./index.php");
}
}else{
//redireccionar
header("location: ./index.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tienda</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Mukta:300,400,700">
<link rel="stylesheet" href="fonts/icomoon/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/jquery-ui.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/aos.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/cookies.css">
</head>
<body>
<div class="site-wrap">
<?php include("./layouts/header.php"); ?>
<div class="site-section">
<div class="container">
<div class="row">
<div class="col-md-6">
<img src="images/<?php echo $fila[4];?>" alt="<?php echo $fila[1];?>" class="img-fluid">
</div>
<div class="col-md-6">
<h2 class="text-black"><?php echo $fila[1];?></h2>
<P><?php echo $fila[2];?></P>
<p><strong class="text-primary h4">$<?php echo $fila[3];?></strong></p>
<div class="mb-1 d-flex">
<label for="option-sm" class="d-flex mr-3 mb-3">
<span class="d-inline-block mr-2" style="top:-2px; position: relative;"><input type="radio" id="option-sm" name="shop-sizes"></span> <span class="d-inline-block text-black">Small</span>
</label>
<label for="option-md" class="d-flex mr-3 mb-3">
<span class="d-inline-block mr-2" style="top:-2px; position: relative;"><input type="radio" id="option-md" name="shop-sizes"></span> <span class="d-inline-block text-black">Medium</span>
</label>
<label for="option-lg" class="d-flex mr-3 mb-3">
<span class="d-inline-block mr-2" style="top:-2px; position: relative;"><input type="radio" id="option-lg" name="shop-sizes"></span> <span class="d-inline-block text-black">Large</span>
</label>
<label for="option-xl" class="d-flex mr-3 mb-3">
<span class="d-inline-block mr-2" style="top:-2px; position: relative;"><input type="radio" id="option-xl" name="shop-sizes"></span> <span class="d-inline-block text-black"> Extra Large</span>
</label>
</div>
<div class="mb-5">
<div class="input-group mb-3" style="max-width: 120px;">
<div class="input-group-prepend">
<button class="btn btn-outline-primary js-btn-minus" type="button">−</button>
</div>
<input type="text" class="form-control text-center" value="1" placeholder="" aria-label="Example text with button addon" aria-describedby="button-addon1">
<div class="input-group-append">
<button class="btn btn-outline-primary js-btn-plus" type="button">+</button>
</div>
</div>
</div>
<p><a href="cart.php?id=<?php echo $fila[0];?>" class="buy-now btn btn-sm btn-primary">Agregar al carrito</a></p>
</div>
</div>
</div>
</div>
<div class="site-section block-3 site-blocks-2 bg-light">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-7 site-section-heading text-center pt-4">
<h2>Featured Products</h2>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="nonloop-block-3 owl-carousel">
<div class="item">
<div class="block-4 text-center">
<figure class="block-4-image">
<img src="images/cloth_1.jpg" alt="Image placeholder" class="img-fluid">
</figure>
<div class="block-4-text p-4">
<h3><a href="#">Tank Top</a></h3>
<p class="mb-0">Finding perfect t-shirt</p>
<p class="text-primary font-weight-bold">$50</p>
</div>
</div>
</div>
<div class="item">
<div class="block-4 text-center">
<figure class="block-4-image">
<img src="images/shoe_1.jpg" alt="Image placeholder" class="img-fluid">
</figure>
<div class="block-4-text p-4">
<h3><a href="#">Corater</a></h3>
<p class="mb-0">Finding perfect products</p>
<p class="text-primary font-weight-bold">$50</p>
</div>
</div>
</div>
<div class="item">
<div class="block-4 text-center">
<figure class="block-4-image">
<img src="images/cloth_2.jpg" alt="Image placeholder" class="img-fluid">
</figure>
<div class="block-4-text p-4">
<h3><a href="#">Polo Shirt</a></h3>
<p class="mb-0">Finding perfect products</p>
<p class="text-primary font-weight-bold">$50</p>
</div>
</div>
</div>
<div class="item">
<div class="block-4 text-center">
<figure class="block-4-image">
<img src="images/cloth_3.jpg" alt="Image placeholder" class="img-fluid">
</figure>
<div class="block-4-text p-4">
<h3><a href="#">T-Shirt Mockup</a></h3>
<p class="mb-0">Finding perfect products</p>
<p class="text-primary font-weight-bold">$50</p>
</div>
</div>
</div>
<div class="item">
<div class="block-4 text-center">
<figure class="block-4-image">
<img src="images/shoe_1.jpg" alt="Image placeholder" class="img-fluid">
</figure>
<div class="block-4-text p-4">
<h3><a href="#">Corater</a></h3>
<p class="mb-0">Finding perfect products</p>
<p class="text-primary font-weight-bold">$50</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include("./layouts/footer.php"); ?>
</div>
<div class="cookies-box">
<div class="container-cookies">
<div class="parrafo">
<p>Si desea saber sobre nuestras politicas haga click en politicas, sino quiere ver este mensaje pulse en cerrar
para saber de nuestras ofertas, de nuestras membresias, reclamos y de algunas operaciones de la empresa por favor leer las politicas.<a href="MOGJI Virtual Shop - Politicas de devoluciones y Garantia (1).pdf">Politicas</a></p>
</div>
<div class="botones">
<button>Aceptar</button>
<button id="close">Cerrar</button>
</div>
</div>
</div>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/aos.js"></script>
<script src="js/main.js"></script>
<script>
const btn_close = document.querySelector('#close')
const cont_cookies =document.querySelector('.cookies-box')
btn_close.addEventListener('click',() =>{
cont_cookies.style.display = 'none'
})
</script>
</body>
</html>