Download app/compras.php from PerlaHM/PERT20: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/spaces/PerlaHM/PERT20/resolve/main/app/compras.php
- Command line
-
hf download hf://spaces/PerlaHM/PERT20/app/compras.php
-
curl -L -o compras.php https://huggingface.co/spaces/PerlaHM/PERT20/resolve/main/app/compras.php
1.71 kB
| include("inc/header.php"); | |
| echo($_GET["articulo"]); | |
| $imagenArticulo = ""; | |
| if(strcmp("Zapatos",$_GET["articulo"])==0){ | |
| $imagenArticulo = "https://i.pinimg.com/originals/2a/f8/54/2af85472dfc431b481d85536cc034119.jpg"; | |
| } | |
| else if(strcmp("Camisas",$_GET["articulo"])==0){ | |
| $imagenArticulo = "https://i.pinimg.com/originals/c9/73/c5/c973c55c3f4a5b2dc34c2b1369fddc0f.jpg"; | |
| } | |
| else if(strcmp("Calcetines",$_GET["articulo"])==0){ | |
| $imagenArticulo = "https://www.podoactiva.com/wp-content/uploads/imagenes/calcetines_1.jpeg"; | |
| } | |
| else if(strcmp("Lentes",$_GET["articulo"])==0){ | |
| $imagenArticulo = "https://th.bing.com/th/id/OIP.k85uPL-tS7KlVfvIFl6P7QHaHX?rs=1&pid=ImgDetMain"; | |
| } | |
| else if(strcmp("Sueter",$_GET["articulo"])==0){ | |
| $imagenArticulo = "https://media.gq.com.mx/photos/5fc831672992af067131d440/master/w_1600%2Cc_limit/Su%25C3%25A9ter%2520tejido%2520Massimo%2520Dutti.jpg"; | |
| } | |
| else if(strcmp("Gorras",$_GET["articulo"])==0){ | |
| $imagenArticulo = "https://http2.mlstatic.com/D_NQ_NP_762934-MLM72111006498_102023-O.webp"; | |
| } | |
| else{ | |
| $imagenArticulo = "https://cdn-icons-png.flaticon.com/512/16/16410.png"; | |
| } | |
| <br> | |
| <img src="<?php echo $imagenArticulo; ?>"> | |
| <br> | |
| Cantidad: echo($_GET["cantidad"]); | |
| <br> | |
| Precio: $ echo($_GET["precio"]); | |
| <br> | |
| Color: <span style="background:<?php echo($_GET["color"]);?>"> </span> | |
| <br> | |
| Total: $ echo($_GET["precio"]*$_GET["cantidad"]); | |
| include("inc/footer.php"); |