diff options
Diffstat (limited to 'public/products.php')
-rw-r--r-- | public/products.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/public/products.php b/public/products.php index ce0ada5..326d9fb 100644 --- a/public/products.php +++ b/public/products.php @@ -9,6 +9,11 @@ function product_template($product) { <img src="$image_path" alt=""> <span class="price">$product->price</span> <span class="name">$product->name</span> + <form action="/cart.php" method="post"> + <input type="hidden" name="type" value="add"> + <input type="hidden" name="product_id" value="$product->id"> + <input type="submit" class="button filled" value="Toevoegen aan winkelwagen"> + </form> </a> EOF; } @@ -69,7 +74,7 @@ EOF; <?php do { if (($user_privileges & PRIVILEGE_ADMIN) == 0) break; echo <<<"EOF" - <div class="center"> + <div class="center skipafter"> <form action="/admin-product.php" method="get" class="d-ib"> <input type="submit" value="Nieuw product toevoegen" class="button filled"> </form> |