-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
91 lines (79 loc) · 2.97 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
<!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">
<link rel="icon" type="image/x-icon" href="assets/images/icon.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
<link rel="stylesheet" type="text/css" href="assets/styles/bootstrap4/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/styles/main_styles.css">
<link rel="stylesheet" type="text/css" href="assets/styles/responsive.css">
<link rel="stylesheet" href="assets/styles/loader.css">
<title>Crea Tu Carrito de Compras Online con la Magia de PHP, JavaScript y MySQL :: Urian Viera </title>
</head>
<body>
<div class="page-loading active">
<div class="page-loading-inner">
<div class="page-spinner"></div>
<span>cargando...</span>
</div>
</div>
<?php
include('funciones/funciones_tienda.php');
include('header.php');
?>
<div class="super_container">
<div class="container mt-5 pt-5">
<div class="row align-items-center">
<div class="col-lg-12 text-center">
<div class="section_title">
<img class="img-fluid" src="assets/images/homepage-video-cropped.gif" alt="perros_y_gatos">
</div>
</div>
</div>
<div class="row align-items-center">
<div class="col-lg-12 text-center mt-5">
<div class="section_title">
<h2>La salud es única para cada mascota</h2>
</div>
</div>
</div>
<?php
$resultadoProductos = getProductData($con);
?>
<div class="row align-items-center">
<?php
while ($dataProduct = mysqli_fetch_array($resultadoProductos)) { ?>
<div class="col-6 col-md-3 mt-5 text-center Products">
<div class="card" style="max-height: 400px !important; min-height: 400px !important;">
<div>
<img class="card-img-top" src="<?php echo $dataProduct["foto1"]; ?>" alt="<?php echo $dataProduct['nameProd']; ?>" style="max-width: 200px;">
</div>
<div class=" card-body text-center">
<h5 class="card-title card_title"><?php echo $dataProduct['nameProd']; ?></h5>
<?php
$isEven = $dataProduct["prodId"] % 2 == 0;
for ($i = 1; $i <= 5; $i++) {
echo '<span><i class="bi bi-star-fill" style="padding: 0px 2px; color:' . ($isEven ? '#ffb90c' : ($i <= 3 ? '#ffb90c' : '')) . ';"></i></span>';
}
?>
<hr>
<p class="card-text p_puntos ">
$ <?php echo number_format($dataProduct['precio'], 0, '', '.'); ?>
</p>
</div>
<a href="detallesArticulo.php?idProd=<?php echo $dataProduct["prodId"]; ?>" class="red_button btn_puntos" title="Ver <?php echo $dataProduct['nameProd']; ?>">
Ver Producto
<i class="bi bi-arrow-right-circle"></i>
</a>
</div>
</div>
<?php } ?>
</div>
</div>
<?php include('includes/footer.html'); ?>
</div>
<?php include('includes/js.html'); ?>
</body>
</html>