aboutsummaryrefslogtreecommitdiff
path: root/public/product.php
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-05-13 15:36:20 +0200
committerlonkaars <loek@pipeframe.xyz>2023-05-13 15:36:20 +0200
commited0594f8f73c6eee8c6eca6ecf6208952ea26cdc (patch)
tree188fb61811a67a9f3d69e7429e45e9b6fa198237 /public/product.php
parentd99d91293fe9e9ad683bbd079848df4031f0a77a (diff)
add products working (no image upload working yet)
Diffstat (limited to 'public/product.php')
-rw-r--r--public/product.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/public/product.php b/public/product.php
index 172a30c..70c511d 100644
--- a/public/product.php
+++ b/public/product.php
@@ -26,13 +26,17 @@ $product = $res->fetch_object();
<div class="column left">
<?php
$img = "/img/product/".$product->id."-full.jpg";
- echo "<a href='$img'><img src='$img' alt=''></a>";
+ echo <<<"EOF"
+ <a href="$img" target="_blank">
+ <img src="$img" alt="$product->name">
+ </a>
+ EOF;
?>
</div>
<div class="column right">
<h2><?php echo $product->name ?></h2>
<span class="price"><?php echo $product->price ?></span>
- <span class="info"><?php echo $product->description ?></span>
+ <p class="info"><?php echo $product->description ?></p>
<form action="/cart.php" method="post">
<input type="number" value="<?php echo $product->id ?>" hidden name="product_id">
<input type="submit" value="Toevoegen aan winkelwagen" class="button filled">