Default en imagenes
Browse files- app/pages/compras.php +5 -3
app/pages/compras.php
CHANGED
|
@@ -9,16 +9,18 @@ $imagenes = [
|
|
| 9 |
"zapato" => "https://m.media-amazon.com/images/I/61G2pdzvrcL._AC_.jpg",
|
| 10 |
"camisa" => "https://yazbek.com.mx/cdn/shop/products/C0604-camisa-oxford-liso-mc-caballero-75algodon-25poliester-azul-cielo_1.jpg?v=1693281090",
|
| 11 |
"calcetin" => "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcThSuHrWfyHN2SrCjhRkamdE8w4ymaWtRKavQ&s",
|
| 12 |
-
"lentes" => "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTnNxKaxTz_A0kwyqlEsN8zp9OZ7fkqdPAmNg&s"
|
|
|
|
| 13 |
];
|
| 14 |
?>
|
| 15 |
|
| 16 |
<article class="container d-flex flex-column justify-content-center mb-5">
|
| 17 |
<header class="text-center">
|
| 18 |
-
<h2 class="text-uppercase"><?php echo $_GET["articulo"] ?></h2>
|
| 19 |
</header>
|
| 20 |
<div class="text-center">
|
| 21 |
-
<img class="img-thumbnail rounded" width="300" height="300"
|
|
|
|
| 22 |
alt="<?php echo $_GET["articulo"]; ?>">
|
| 23 |
</div>
|
| 24 |
<div class="text-center">
|
|
|
|
| 9 |
"zapato" => "https://m.media-amazon.com/images/I/61G2pdzvrcL._AC_.jpg",
|
| 10 |
"camisa" => "https://yazbek.com.mx/cdn/shop/products/C0604-camisa-oxford-liso-mc-caballero-75algodon-25poliester-azul-cielo_1.jpg?v=1693281090",
|
| 11 |
"calcetin" => "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcThSuHrWfyHN2SrCjhRkamdE8w4ymaWtRKavQ&s",
|
| 12 |
+
"lentes" => "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTnNxKaxTz_A0kwyqlEsN8zp9OZ7fkqdPAmNg&s",
|
| 13 |
+
"default" => "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR1zOK-ROmya5CO4wjRr18MbzcYa_cahJAcdA&s"
|
| 14 |
];
|
| 15 |
?>
|
| 16 |
|
| 17 |
<article class="container d-flex flex-column justify-content-center mb-5">
|
| 18 |
<header class="text-center">
|
| 19 |
+
<h2 class="text-uppercase"><?php echo $_GET["articulo"]; ?></h2>
|
| 20 |
</header>
|
| 21 |
<div class="text-center">
|
| 22 |
+
<img class="img-thumbnail rounded" width="300" height="300"
|
| 23 |
+
src="<?php echo $imagenes[$_GET["articulo"]] || $imagenes["default"]; ?>"
|
| 24 |
alt="<?php echo $_GET["articulo"]; ?>">
|
| 25 |
</div>
|
| 26 |
<div class="text-center">
|