| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?php
- include("session_check.php");
- include("header.php");
- include("menu.php");
- require_once("util.php");
- ?>
- <a href="javascript: history.back();">Zurück</a>
- <div width="100%" align="center">
- <table border="0" width="80%" class="product_details">
- <?php
- require_once("DataBase/Product.php");
- require_once("DataBase/Customer.php");
- require_once("DataBase/Price.php");
- require_once("DataBase/Priceset.php");
- $product= new Product();
- $customer = new Customer();
- $price = new Price();
- $priceset = new Priceset();
- $customer_data = $customer->get($_SESSION['username']);
- $priceset_id = 0;
- if(count($customer_data) > 0)
- $priceset_id = $customer_data[0][11];
- $tmp_priceset = $priceset->get($priceset_id);
- $netto = 0;
- if(count($tmp_priceset) > 0)
- $netto = $tmp_priceset[0][2];
- // prepare search/filter params
- $product_id = var_get_post("product_id", "");
- $list = $product->get($product_id);
- // $count = $product->getCountByFilter($search_product, $search_category);
- for($i = 0; $i < count($list); $i++)
- {
- $tmp_price = $price->getPrice($priceset_id, $list[$i][0]);
- ?>
- <tr>
- <td align="center"><b><big><?php echo $list[$i][1]; ?></big></b><br><br></td>
- </tr>
- <tr>
- <td><font color="#8C8C8C">Produktnummer:</font> <?php echo $list[$i][0]; ?></td>
- </tr>
- <tr>
- <td><font color="#8C8C8C">Anmerkungen:</font> <?php echo $list[$i][8]; ?></td>
- </tr>
- <tr>
- <td align="right" colspan="2"><font color="#8C8C8C">Preis:</font> <big><?php echo number_format($price->getPriceTax($priceset_id, $list[$i][0], $netto, $list[$i][4]), 2); ?> EUR</big></td>
- </tr>
- <tr>
- <td align="right" colspan="2"> </td>
- </tr>
- <tr>
- <td align="right" colspan="2">
- <form action="#" method="post" name="product_details_to_cart">
- <input type="hidden" name="action" value="add_product_to_cart">
- <input type="hidden" name="product_id" value="<?php echo $list[$i][0]; ?>">
- <input type="text" name="amount" value="1.0" size="7">
- <input type="submit" value="" class="invisible_submit">
- <a href="javascript: document.forms['product_details_to_cart'].submit();">In den Warenkorb</a>
- </form>
- </td>
- </tr>
- <?php
- }
- ?>
- </table>
- </div>
- <?php
- include("footer.php");
- ?>
|